Skip to content

HalfdogStudio/tri-sync

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

tri-sync

A encapsulation of rsync command for routine backup.

Installtion:

  • Run git clone https://github.com/d0u9/tri-sync.
  • Create a configuration file at ~/.tri_sync.json or at ~/.dot/.tri_config.json. Fill it with the following contents:
{
  "Applications": {
    "tri-sync": {
      "profile1": {
        "server": "XXX.XXX.XXX.XXX",
        "name": "Your username",
        "local": "The fold you want to sync",
        "rmote": "The remote sync path on the remote host"
      },
      "profile2": {
        "server": "XXX.XXX.XXX.XXX",
        "name": "Your username",
        "local": "The fold you want to sync",
        "rmote": "The remote sync path on the remote host"
      }
    }
  }
}
  • Replace the server, name, local, rmote fields as yours.

Usage:

Sync local to remote using profile1:

tri-sync profile1

Sync local to remote using profile1, and delete extraneous files from dest dirs:

tri-sync profile1 out -d

Sync remote to local:

tri-sync profile1 in

Sync remote to local and delete extraneous files from dest dirs:

tri-sync profile1 in -d

License

CC License

About

A encapsulation of rsync command for routine backup.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages