whaler-rsync-plugin

Whaler rsync plugin

Usage no npm install needed!

<script type="module">
  import whalerRsyncPlugin from 'https://cdn.skypack.dev/whaler-rsync-plugin';
</script>

README

Whaler rsync plugin

Install

whaler plugins:install whaler-rsync-plugin

Usage

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.

License

This software is under the MIT license. See the complete license in:

LICENSE