command
module
Version:
v0.0.0-...-ae3a0e2
Opens a new window with list of versions in this module.
Published: Apr 26, 2023
License: MIT
Opens a new window with license information.
Imports: 4
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
go-pusher
English | 简体中文
go-pusher is a tool that can help you upload files to oss and backup file to vps regularly.
Requirements
Features
- upload file to OSS if the file does not exist in OSS or the file in OSS is different from the local file
- backup local file to VPS regularly
Usage
Config file
Config file is like following:
modes = ["pusher", "syncer"]
[syncer]
# local directory abstract path
local-path = "xxx"
# remote directory abstract path
remote-path = "xxx"
# time to check file change(second)
interval = 1
[pusher]
# oss provider( now support: qiniu)
oss-provider = "qiniu"
oss-object-prefix = "blog/public"
push-timeout = 60
local-directory = "/path/to/push"
oss-delete-not-exists = false
[oss-qiniu]
bucket = "xxx"
region = "ZoneHuadong"
access-key = "xxx"
sercet-key = "xxx"
why cretea go-pusher
Documentation
¶
There is no documentation for this package.
Source Files
¶
Directories
¶
component
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Click to show internal directories.
Click to hide internal directories.