Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Now that my linux box has got above 8months in maturity, I really don't want to have to do a fresh install should something go wrong....
For this reason, how can i back up my system without using something like mondo or commercial software like norton ghost.
I was thinking about simply compressing my whole / into a .tar file and burning it to DVD. Will this work? If so, do i need to exclude any files (/dev /proc /tmp??) and how do i go about this? I do not have enough space on my main drive so would like to create the .tar file direct onto an external USB hard drive.....
Any help is appreciated, and if i can get this to work i'll write a short wiki on it....
Now that my linux box has got above 8months in maturity, I really don't want to have to do a fresh install should something go wrong....
For this reason, how can i back up my system without using something like mondo or commercial software like norton ghost.
I was thinking about simply compressing my whole / into a .tar file and burning it to DVD. Will this work? If so, do i need to exclude any files (/dev /proc /tmp??) and how do i go about this? I do not have enough space on my main drive so would like to create the .tar file direct onto an external USB hard drive.....
Any help is appreciated, and if i can get this to work i'll write a short wiki on it....
I back up my system the way that you describe. Rather than put all of / in one tarball I put each of the base directories (/etc, /var, /usr and so on) in tarballs. If you try to tar /proc you will get an error message that does not stop the backup. Backing up /tmp is a waste of time.
I have a script which tars the files, creates an iso file system in a spare partition, and then uses cdrecord to burn a CD backup. Actually it takes 3 CDs to back everything up so I have three scripts.
I back up my system the way that you describe. Rather than put all of / in one tarball I put each of the base directories (/etc, /var, /usr and so on) in tarballs. If you try to tar /proc you will get an error message that does not stop the backup. Backing up /tmp is a waste of time.
I have a script which tars the files, creates an iso file system in a spare partition, and then uses cdrecord to burn a CD backup. Actually it takes 3 CDs to back everything up so I have three scripts.
---------------------
Steve Stites
Don't suppose that i could be really cheeky and ask for the scripts . I'm not proficient (or confident) enough in programming to write a workable script.... (grovels and looks hopeful)
Don't suppose that i could be really cheeky and ask for the scripts . I'm not proficient (or confident) enough in programming to write a workable script.... (grovels and looks hopeful)
Cheers
Here is one of the scripts. The other two are similar enough that there is no point in posting all three.
This doesn't back up the entire system tho does it? Also how hard is it to restore afterwards? For example, if i tarred by home directory in the same way, and then did a fresh install on another machine, could i then just untar the backups i'd made and this would restore things exactly....
This doesn't back up the entire system tho does it? Also how hard is it to restore afterwards? For example, if i tarred by home directory in the same way, and then did a fresh install on another machine, could i then just untar the backups i'd made and this would restore things exactly....
It takes 3 CDs to hold my entire backup. This script produces the first CD. The other 2 scripts get the remainder of the system.
You must be getting exasperated at this point, but i want to get this right
1. I take it the other 2 CDs include the omitted directories /srv /sys /usr (at least on my ubuntu system these seem to be the ones ommitted from your script)
2. Should i (or is it not possible) to include /media /mnt /proc and should i include links to the backup files of initrd.img and initrd.img.old??
2. If you tar /media or /mnt then you will backup whatever removable file systems you happen to have mounted when you do the backup. So don't backup /media and /mnt.
The contents of /proc are not really files. They are pointers to entry points in the kernel. If you try to tar /proc you will get an error message and tar will skip over /proc.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.