t29-rsync
v1.1.0
Published
The purpose of this application is to sync from a remote_path down to the project root directory using the sublime SFTP packages sftp-config.json file. Rsync uses a combination of date+contents hash to identify if a file has changed.
Downloads
4
Readme
SFTP-rsync
The purpose of this application is to sync from a remote_path down to the project root directory using the sublime SFTP packages sftp-config.json file. Rsync uses a combination of date+contents hash to identify if a file has changed.
Installation
This app requires node, I recommend grabbing the latest stable releast (LTS) which at the time of writing this is 8+
nodejs.org
Just install this package globally so that you can run it from anywhere
npm install -g t29-rsync
Running
Then to run the file just go to a project directory where you have a sftp-config.json file and run the command
t29-rsync
Flags
To delete items locally that are not on the remote server, use the --delete
flag
t29-rsync --delete
In order to sync all files/folders except for .git folders (ignoring the default exclusions) add the --force
flag
t29-rsync --all
To ignore the date+contents hasing used to identify if a file has changed and download all files regardless --force
t29-rsync --force
and it will sync down all modified files/new files from the path listed in the remote_path section of the sftp-config.json