#Synchronize files with fsclone
A component of Synchronized data between fs3 and googledrive,or fs3 between aws3. It compares the latest time of the file in you specified bucket in s3 and google drive or aws3, Then synchronize the bucket with the updated time to the bucket with the older time.
- install rclone
sudo apt update
sudo apt install rclone
- clone code to $GOPATH/src
git clone https://github.com/filswan/fsclone.git
- find the config file of fsclone.
cd $GOPATH/src/fsclone/conf/
vim conf.toml
- input raclone config path to the config file.
rclone default config path is : ~/.config/rclone/rclone.conf
if your rclone config path is default path,
You can ignore the steps to modify the configuration above.
rcloneConfigPath = "~/.config/rclone/rclone.conf"
- run fsclone
go run ./main/main.go
-
call the api
Put the following address in the address bar of postman, modify the json data in the param example to your own data,
put it in the request body of postman, and then send the request using the post method.- param example - 💌 show the request body for sync between s3 and google drive.
- param example - 💌 show the request body for sync between s3 and aws3.
in the os terminal,run cmd below
make build
docker build -t nbai/rclone .
docker run -p 8083:8083 nbai/rclone
Feature branches and master are designated as unstable which are internal-only development builds.
Periodically a build will be designated as stable and will be assigned a version number by tagging the repository
using Semantic Versioning in the following format: vMajor.Minor.Patch
.