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 revisionBoth sides next revision
computing:rsyncrsnapshot [2020/03/26 01:29] oemb1905computing:rsyncrsnapshot [2023/04/10 20:57] oemb1905
Line 7: Line 7:
 ------------------------------------------- -------------------------------------------
  
-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.  This also assumes you have an MTA properly set-up in order to send email.  To create a basic configuration, do the following:+Since I am backing up multiple remote hosts, I chose to create separate configs for each remote host instead of putting those destinations in the ''/etc/rsnapshot.conf'' together with the localhost/backup server. The localhost configuration is as follows: 
 + 
 +  #base config  
 +  config_version          1.2 
 +  snapshot_root           /mnt/backups/rsnapback/localhost.domain/ 
 +  cmd_cp                  /bin/cp 
 +  cmd_rm                  /bin/rm 
 +  cmd_rsync               /usr/bin/rsync 
 +  cmd_ssh                 /usr/bin/ssh 
 +  cmd_logger              /usr/bin/logger 
 +  verbose                 2 
 +  loglevel                3 
 +  logfile                 /var/log/rsnapshot.log 
 +  sync_first              1 
 +  use_lazy_deletes        1  
 +  retain                  alpha                                           90 
 +  #localhost 
 +  backup                  /home/                                          home/ 
 +  backup                  /etc/                                           etc/ 
 +  backup                  /usr/local/bin/                                 bin/ 
 +  backup                  /root/                                          root/ 
 +  backup                  /var/www/                                       www/ 
 +   
 +Then, to run this, I use a simple script I created. 
 + 
 + 
 +[BEGIN OLD] 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.  This also assumes you have an MTA properly set-up in order to send email.  To create a basic configuration, do the following:
  
   sudo apt install rsnapshot   sudo apt install rsnapshot
computing/rsyncrsnapshot.txt · Last modified: 2023/04/10 21:29 by oemb1905