Here is one example.
Originally Posted by MountainX View Post #20 also other backup apps
http://ubuntuforums.org/showthread.p...ghlight=backup
use a text editor and paste this into a file. name it mybackup.sh
I added these two lines so I have current copies in my /home, as I only back up /home.
cp /etc/apt/sources.list ~/sources.list.backup
dpkg --get-selections > ~/ubuntu-files
Someone posted this, but I do not backup /etc, but do copy any manually edited config in /etc into a folder in /home so it gets backed up.
I backup the following:
1. /home (Users' personal files and settings)
2. /etc (System-wide configuration settings)
3. /var/spool/cron/crontabs (Commands which run automatically)
4. The script I wrote to generate the backup
List of sources:
5. sudo cp /etc/apt/sources.list ~/sources.list.backup
Installed applications list (to make it easy to reinstall everything)#
dpkg --get-selections | grep -v deinstall > ubuntu-files
or
6. dpkg --get-selections > ubuntu-files
https://help.ubuntu.com/community/BackupYourSystem
Bookmarks