whaler plugins:install whaler-rsync-plugin
NB! By default
[app]
is current dir name.
Sync files from current dir to remote machine
whaler rsync . [app]@<domain name or IP>
Sync files from remote machine to current dir
whaler rsync [app]@<domain name or IP> .
Sync single file from current dir to remote machine
whaler rsync ./file.txt [app]@<domain name or IP>
Sync single file from remote machine to current dir
whaler rsync [app]@<domain name or IP>:/file.txt ./
Sync to remote machine service
whaler rsync . <service>.[app]@<domain name or IP>:/var/www
Sync from remote machine service
whaler rsync <service>.[app]@<domain name or IP>:/var/www ./
NB! Create a
.rsyncignore
file with a list of all the files and directories you don't want to backup.
This software is under the MIT license. See the complete license in:
LICENSE