SkillAgentSearch skills...

Fsync

file sync.

Install / Use

/learn @pjoc-team/Fsync
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

fsync

License Stars Builder Release GoDoc GoMod

Docker Docker Docker

A file sync server.

Config

Cloud adaptor:

  • TencentCloud: https://cloud.tencent.com/document/product/436/37421
  • AliCloud: https://help.aliyun.com/document_detail/64919.html
  • GoogleCloud: https://cloud.google.com/storage/docs/migrating?hl=zh-cn
  • Azure: https://docs.microsoft.com/en-us/azure/storage/common/storage-account-create?tabs=azure-portal

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

<!-- readme: collaborators -start --> <table> </table> <!-- readme: collaborators -end -->

Contributors

<!-- readme: contributors -start --> <table> <tr> <td align="center"> <a href="https://github.com/blademainer"> <img src="https://avatars.githubusercontent.com/u/3396459?v=4" width="100;" alt="blademainer"/> <br /> <sub><b>Blademainer</b></sub> </a> </td></tr> </table> <!-- readme: contributors -end -->

Related Skills

View on GitHub
GitHub Stars5
CategoryDevelopment
Updated3y ago
Forks0

Languages

Go

Security Score

50/100

Audited on Aug 25, 2022

No findings