barriehie |
01-31-2011 10:48 AM |
Quote:
Originally Posted by DebianUser
(Post 4243538)
which directories do you exclude? I assume proc dev tmp any more? Also how does this work with packages installed via apt will they still work after a restore?
|
My command to backup everything is like this:
Code:
rsync -av --exclude-from=/usr/local/bin/eList / /media/backup/$dow && touch -m -t $(date +%m%d)06$dom /media/backup/$dow
As you can see it makes a dir. that has the name of the day of the week. I'm using an external 80 Gig drive so I just let those keep writing over the last weeks backups. I'm then touching the file so that the mod time is 06 hours and day of the month minutes. Prior to backing up my home dir I do a bit of cleanup that is the majority of the script, removing old session files, thumbnails, etc.
The file list of excluded dir.'s is this:
Code:
tmp/
proc/
lost+found/
mnt/
sys/
media/
dev/
In regards to everything working after a restore it did the last time I 'oopsed' and had to use my backup. Excluding the down time, about 30 min., you would've never known anything had broken.
HTH
|