Categorygithub.com/pjoc-team/fsync
repositorypackage
0.0.2
Repository: https://github.com/pjoc-team/fsync.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
No description provided by the author

# README

fsync

License Stars Builder Release GoDoc GoMod

Docker Docker Docker

A file sync server.

Config

Cloud adaptor:

Parameters

argenvdescriptiondefault
data-pathDATA_PATHData path to upload and watch./data
secret-idSECRET_IDSecretID for s3
secret-keySECRET_KEYSecretKey for s3
bucketBUCKETBucket namebackup-1251070767
endpointENDPOINTEndpoint url for s3https://cos.ap-guangzhou.myqcloud.com
block-sizeBLOCK_SIZEupload buf1048576
debugDEBUGis debug log?true
init-uploadINIT_UPLOADneed 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