Christopher Juckins

SysAdmin Tips, Tricks and other Software Tools

User Tools

Site Tools


linux_backups

Differences

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

Link to this comparison view

linux_backups [2012/06/07 17:20]
juckins created
linux_backups [2012/06/07 17:22] (current)
juckins
Line 34: Line 34:
 `/usr/bin/rsync -avz --delete --progress /var/spool/cron/ /disk2/var/spool/cron/ >$LOG.var.spool.cron.log 2>&1`; `/usr/bin/rsync -avz --delete --progress /var/spool/cron/ /disk2/var/spool/cron/ >$LOG.var.spool.cron.log 2>&1`;
 `/usr/bin/rsync -avz --delete --progress /var/www/html/ /disk2/var/www/html/ >$LOG.var.www.html.log 2>&1`; `/usr/bin/rsync -avz --delete --progress /var/www/html/ /disk2/var/www/html/ >$LOG.var.www.html.log 2>&1`;
 +</code>
  
 +The associated cron entry:
 +
 +<code>
 +# do local backups
 +30 02 * * * /root/bin/backup_rsync.pl >> /tmp/backup_rsync.log 2>&1
 +
 +# something to check
 +#* * * * * [ ! -f /tmp/lockFile ] && { touch /tmp/lockRsync ; /root/bin/backup_rsync.pl >> /tmp/backup_rsync.log 2>&1 ; rm /tmp/lockRsync }
 </code> </code>
linux_backups.txt ยท Last modified: 2012/06/07 17:22 by juckins