Academic Work Personal
|
Linux /
Backup your data
ProblemYou are afraid to lose your important data and you ask yourself: how to backup my stuff in a painless way? SolutionWell, there are lots of options. First, let's see an overview, and then let's see the solution that I found appropriate for myself. Some useful links
What I neededI needed a solution to back up my HOME directory on my Linux machine. Since I store everything important here, it's enough for me to save only this directory in a recursive way. I need no compression because of the following reasons. (1) It requires too much time. I want to back up my data regularly, and I don't want to wait half an hour each time. (2) If I should ever restore something, I don't want to unpack a GB-sized .tgz file. A simple backup scriptI chose rdiff-backup and I came up with the following simple script (download):
Please feel free to use and modify it to your needs. Comments are always welcome. Explanation:
The previous script executes the following rdiff-backup commands: rdiff-backup --exclude /home/jabba/.mozilla/firefox/zx5dku77.default/Cache \ --exclude /home/jabba/tmp/vim \ --exclude /home/jabba/.cache \ --exclude /home/jabba/.thumbnails \ --exclude /home/jabba/.googleearth/Cache \ --exclude /home/jabba/.java/deployment/cache \ --exclude /home/jabba/.azureus/tmp \ /home/jabba /mnt/disk-1/backup/HOME.backup rdiff-backup --force --remove-older-than 60D /mnt/disk-1/backup/HOME.backup |
anime | bash | blogs | bsd | c/c++ | c64 | calc | comics | convert | cube | del.icio.us | digg | east | eBooks | egeszseg | elite | firefox | flash | fun | games | gimp | google | groovy | hardware | hit&run | howto | java | javascript | knife | lang | latex | liferay | linux | lovecraft | magyar | maths | movies | music | p2p | perl | pdf | photoshop | php | pmwiki | prog | python | radio | recept | rts | scala | scene | sci-fi | scripting | security | shell | space | súlyos | telephone | torrente | translate | ubuntu | vim | wallpapers | webutils | wikis | windows Blogs and Dev. * Ubuntu Incident Places Debrecen | France | Hungary | Montreal | Nancy Notes Hobby Projects * Jabba's Codes Quick Links [ edit ] |