User Tools

Site Tools


computing:rsyncrsnapshot

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
computing:rsyncrsnapshot [2019/07/31 09:53] oemb1905computing:rsyncrsnapshot [2020/01/27 19:55] oemb1905
Line 7: Line 7:
 ------------------------------------------- -------------------------------------------
  
-Using alternate port and the old syntax for that:+Let's start with rsnapshot.  Before you begin, you must already know how to add a hard drive to your system, a mount point, and an appropriate fstab entry.  To create a basic configuration, do the following: 
 + 
 +  sudo apt install rsnapshot 
 +  nano /etc/rsnapshot.conf 
 +  <rsnapshot_root /enter-mount-point-here> 
 + 
 +Uncomment the alpha, beta, gamma, and delta sections under //backup levels// section, enable the sync-first option, and specify the directories you want to backup (remember, ''localhost'', calls whatever you have above in ''rsnapshot_root'' from above): 
 + 
 +  <retain  alpha   6> 
 +  <retain  beta    7> 
 +  <retain  gamma   4> 
 +  <retain  delta   3> 
 +  <sync_first      1> 
 +  <backup /home/   localhost> 
 +  <backup /etc/    localhost> 
 + 
 + 
 + 
 + 
 +Making an rsync over ssh mirror using alternate port and the old syntax.
  
 From remote server to target backup localhost: From remote server to target backup localhost:
Line 16: Line 35:
  
   rsync -av --delete -e 'ssh -p 59333 -i /home/user/.ssh/id_rsa' /home/user/Server/ user@10.8.9.3:/home/user/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: 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 
  
-This tutorial is a designated "Invariant Section" of the "Technotronic" section of Haack's Wiki as described on the [[https://jonathanhaack.com/dokuwiki/doku.php?id=start|Start Page]].+From localhost to target remote backup server
  
- --- //[[netcmnd@jonathanhaack.com|oemb1905]] 2019/04/09 19:26//+  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 [[https://jonathanhaack.com/dokuwiki/doku.php?id=start|Start Page]].
  
 + --- //[[oemb1905@jonathanhaack.com|oemb1905]] 2019/07/31 09:53//
      
computing/rsyncrsnapshot.txt · Last modified: 2023/04/10 21:29 by oemb1905