Forum Navigation
You need to log in to create posts and topics.

Rsync Samples

Create a User name rsync on the remote and local server ( you can use root or any other user )

create secret file /etc/secret with some password

chmod 600 /etc/secret

Backup Sync Remote Server

rsync -avSH /home/files --log-file=/var/log/rsync.log --password-file=/etc/secret rsync://rsync@10.0.10.10:/MyBackup/18-01-2022/

Sync from Remote Server to Local directory

rsync -avSH --log-file=/var/log/rsync.log --password-file=/etc/secret rsync://rsync@10.0.10.10:/SomeDirectory/SubDirectory/ /home/Restore

 

Reliable Copy local directories

rsync --recursive /var/www /home/backup/www

Reliable Copy local directories With Symbolic Links

rsync --recursive --links --copy-links /etc/letsencrypt/ /usr/local/tracston/etc/letsencrypt/

 

SSH Remote Server Copy

rsync -az -e "ssh -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null" /var/www 10.0.10.12:/var/

With Progress Status

rsync -avz -e "ssh -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null" --progress /var/www 10.0.10.12:/var/www