Friday 8 October 2010

Weekly Backup with Ubuntu, Rsync, Anacron and 2 Internal Hard Disks

1) Edit /etc/anacrontab

Code:
sudo gedit /etc/anacrontab

2) Add line to the bottom of the txt document - for more info see http://linuxgazette.net/104/odonovan.html

Code:
1 1 backup rsync -ravz /home /media/

where the fields mean:

1
the period in days indicating how often this command should be executed
1
the delay in minutes after Anacron begins before it should execute this command
backup
a unique identifier for this job so Anacron can keep track of when it was last executed
rsync...
the command to execute

No comments:

Post a Comment