To make life a bit easier a backup script is attached here (at the end of this page) to make a full-system backup. The script will do the following:
- It will empty your trash.
- make an list of files and folder that to don't want to backup (an exclude_file mentioned as above). Files ended with .bag, .mpg, .mpeg, .avi, .png will be exclude and also everything in /tmp and /download folder.
- then it will create a destination folder at your argument directory.
Usage of the script
chmod +x fullbackup.sh
and then (assumed that you want to put a backup file at /home/golfcar)./fullbackup /home/golfcar
After backup finish, you will see a folder named like golfcart-master-010313.tgz where "golfcart-master" is your hostname and "
010313
" is a backup date (01/03/2013).
The script can be download from here
link
Reference:https://help.ubuntu.com/community/BackupYourSystem/TAR
https://sites.google.com/site/fmautonomy/private/documentation/backups
No comments:
Post a Comment