/fsclone

Primary LanguageGo

#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.

Getting Started

  1.   install rclone
sudo apt update
sudo apt install rclone
  1.   clone code to $GOPATH/src
git clone https://github.com/filswan/fsclone.git
  1.   find the config file of fsclone.
cd $GOPATH/src/fsclone/conf/
vim conf.toml
  1.   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"
  1.   run fsclone
go run ./main/main.go
  1. 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.

Docker usage

in the os terminal,run cmd below

make build
docker build -t nbai/rclone .
docker run -p 8083:8083 nbai/rclone

Versioning and Releases

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.

Other Topics