Nn my desktop I have 2 HDDs that are in a softRAID array (only /home is on the array). and then I have a daiyly cron script which does an rsync to backup my /home to an external eSATA HDD.
This is very simple script and just mirrors a directory (or specific directorys) in a specified location. Use at your own risk!
I mirror some directories from my /home onto an external eSATA drive.
here it is:
#!/bin/bash #simple_home_backup_script.sh DESTDIR=/media/backup/home #this is the path to the drive to backup TO #simple, but works: rsync -avzutmo --delete ~/Docs ~/Photos ~/vbox ~/wallpaper $DESTDIR
and my crontab entry:
#run incremental backup daily 0 1 * * * /home/me/scripts/simple_home_backup_script.sh
I could actually make the backup run more often, since it is pretty fast, but it’s not that important. the RAID should catch most of everything, the rsync is just a backup for the backup :–)
Posted by: jamba
Published Date: Thu, 08 Jul 2010 02:12:25 +0000
original filename: 121