Skip to content

pjoc-team/fsync

Repository files navigation

fsync

License Stars Builder Release GoDoc GoMod

Docker Docker Docker

A file sync server.

Config

Cloud adaptor:

Parameters

arg env description default
data-path DATA_PATH Data path to upload and watch ./data
secret-id SECRET_ID SecretID for s3
secret-key SECRET_KEY SecretKey for s3
bucket BUCKET Bucket name backup-1251070767
endpoint ENDPOINT Endpoint url for s3 https://cos.ap-guangzhou.myqcloud.com
block-size BLOCK_SIZE upload buf 1048576
debug DEBUG is debug log? true
init-upload INIT_UPLOAD need upload all data. false

Docker

see ./docker/start.sh

docker run --name="fsync-init" --rm -d \
        -v `pwd`/data:/data \
       	-e SECRET_ID="[YOUR_SECRET_ID]" \
       	-e SECRET_KEY="[YOUR_SECRET_KEY]" \
        -e DATA_PATH="/data" \
        -e ENDPOINT="https://cos.ap-guangzhou.myqcloud.com" \
        -e BUCKET="backup-1251070767" \
        -e BLOCK_SIZE="1048576" \
        -e DEBUG="true" \
        -e INIT_UPLOAD="true" \
	pjoc/fsync:latest

docker run --name="fsync-watcher" -d \
        -v `pwd`/data:/data \
       	-e SECRET_ID="[YOUR_SECRET_ID]" \
       	-e SECRET_KEY="[YOUR_SECRET_KEY]" \
        -e DATA_PATH="/data" \
        -e ENDPOINT="https://cos.ap-guangzhou.myqcloud.com" \
        -e BUCKET="backup-1251070767" \
        -e BLOCK_SIZE="1048576" \
        -e DEBUG="true" \
        -e INIT_UPLOAD="false" \
	pjoc/fsync:latest

Collaborators

Contributors

blademainer
Blademainer