Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's 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.
I am wondering if someone could give some advice on backing up my system in case of an emergency.
System so far is running Ubuntu 8.04LTS(no gui) and currently have a 2 disk raid0 setup.
The machine is currently my ftp server / mail server / ldap server / NFS & Samba server amongst other things and it is in use 24/7.
What I would like is a total backup solution to grab all data and also hardware configurations should something go terribly wrong.
Every night I run an incremental tar backup of the home dirs and at the weekend I run a tar of the whole system and store these files offline onto an online storage area.
But not sure if this would also restore my applications / settings etc etc in Ubuntu should I need to restore the OS???
I believe the full backup that you do on the weekend of the whole system would indeed restore all of your applications/settings, etc. Most of the settings for the stuff you've mentioned (Samba, mail, ftp) are stored in the /etc directory under the appropriately-named sub-directory. Hardware info and things like your drive layout, etc. would also be stored in various files here. So, after installing your OS some of these files could simply be dumped back into the system for easy recovery, while others would really be used as a reference point I think (like remembering how your drives were laid out). For example, I don't think you could just dump the contents of the /dev file because the system will assign different values to the hardware in a new install, but you could copy the /etc/fstab directory I believe provided you change the UUIDs to match whatever values the new system has given to your drives.
No backup strategy can be considered reliable until you have tested it.
I know this to my own cost (I got the system back, eventually, but I really, really wished I had tested it before I relied on it, because it was a nightmare).
So, get yourself another PC.
Pretend your functioning hardware is broken.
Restore from your "backup".
Does it work?
Is all your data intact?
If not, you need to re-think your strategy.
8.04 is old, so I think it is high time you considered this seriously. Hardware failure might be imminent even if 8.04 is still running sweetly.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.