User Tools

Site Tools


computing:rsyncrsnapshot

This is an old revision of the document!



  • rsyncrsnapshot
  • Jonathan Haack
  • Haack's Networking
  • netcmnd@jonathanhaack.com

Using alternate port and the old syntax for that:

From remote server to target backup localhost:

rsync -av --delete -e 'ssh -p 59333 -i /home/user/.ssh/id_rsa' user@10.8.9.3:/home/user/Server/ /home/user/Server/

From localhost to target remote backup server:

rsync -av --delete -e 'ssh -p 59333 -i /home/user/.ssh/id_rsa' /home/user/Server/ user@10.8.9.3:/home/user/Server/

– – – – –

Using the more modern syntax and no alternate port, we have:

From remote server to target backup localhost:

sudo rsync -avi --delete root@server.com:/home/location/of/mysqldump.sql /home/user/backup/of/mysqldump.sql 

From localhost to target remote backup server:

sudo rsync -avi --delete /home/user/backup/of/mysqldump.sql root@server.com:/home/location/of/mysqldump.sql

This tutorial is a designated “Invariant Section” of the “Technotronic” section of Haack's Wiki as described on the Start Page.

oemb1905 2019/07/31 09:53

computing/rsyncrsnapshot.1564567042.txt.gz · Last modified: 2019/07/31 09:57 by oemb1905