Remote file and directory synchronization rsync options source destination where source and destination are one of the following:
- A local file or directory
- A remote file or directory in the form of
[user@]host:path
- A remote rsync server specified with a URI of
rsync://[user@]host[:port]/path
[me@linuxbox ~]$ mkdir /media/BigDisk/backup
[me@linuxbox ~]$ sudo rsync -av --delete /etc /home /usr/local
/media/BigDisk/backup
# remote backup using ssh
[me@linuxbox ~]$ sudo rsync -av --delete --rsh=ssh /etc /home
/usr/local remote-sys:/backup
# syncronize remote repo using rsync server
[me@linuxbox ~]$ mkdir fedora-devel
[me@linuxbox ~]$ rsync -av –delete rsync://archive.linux.duke.edu/
fedora/linux/development/rawhide/Everything/x86_64/os/ fedora-devel
Sources: https://www.linode.com/docs/security/backups/backing-up-your-data