Re: Backup, what system files are *really* important?



Stuart McGraw wrote:

[...]

since the rpm database was still intact, I was able
to "rpm --verify" all my packages, identify those
with missing /var files and reinstall just those
rpms.

Congratulations on your recovery.

Which leads to my question... Are there certain
files and directories that should be saved because
they are unusually important and can help recover
from common problems, without backing up *all* the
system files? In my case above, having the rpm
database was critical. I backup config files in
/etc and elsewhere that I've modified. Are there
other *really* important system files I should be
saving?

One can argue that /etc is mandatory for any backup
which is intended to back up the system itself.

If you are comfortable with reinstall of the exact
same version of the system itself, then here are
some hints of what to back up...

Typical root level directories one might find are

/bin system user programs, not needed
/boot system boot programs & config, not needed
/dev in modern systems, managed by udev & not needed
/etc system configuration, needed
/home user data files, not needed (for the system)
/initrd system files, not needed
/lib loadable libraries, not needed
/lost+found file system recovery, not needed
/media mount points, not needed
/mnt used for temp mount point, not needed
/opt possibly empty, not needed
/proc not a real directory, not needed
/root root's home directory, not needed
/sbin system maintenance programs, not needed
/selinux contains some configuration files, needed
/sys not a real directory, not needed
/tmp no useful information, not needed
/usr perhaps needed, if /usr/local contains stuff
/var perhaps needed

Incidentally, making a correct backup which is a true atomic event
is not something easy to do with the system in "normal operating
mode". I use single user mode, unmount all file systems (except
for / being mounted ro) and do an fsck before doing backups. I then
mount all file systems I want to back up ro (except the one to receive
the actual backup, if any) and do the backup with everything static.

Mike
--
p="p=%c%s%c;main(){printf(p,34,p,34);}";main(){printf(p,34,p,34);}
Oppose globalization and One World Governments like the UN.
This message made from 100% recycled bits.
You have found the bank of Larn.
I speak only for myself, and I am unanimous in that!
--
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines



Relevant Pages

  • Re: Software Registry: is "Advanced INF" legit Explorer?
    ... Yes, flattening is the only ... last backup, if there was ever a backup. ... That may need recovery, and there ... Once you have the data back, you may flatten and reinstall. ...
    (comp.security.misc)
  • Re: Advertised backup services
    ... don't forget to test the recovery part as ... Just because you make a backup, think you made a backup, somebody says ... or documents are or your MS Office folder ... reinstall of your OS and all your applications (these would have to be ...
    (microsoft.public.windowsxp.basics)
  • Xp activation
    ... ...Friend one is using xp home,it is registered and ... everything(inc cd recovery and backup cd supplied with ... pls note that during the reinstall we never were asked for ...
    (microsoft.public.windowsxp.security_admin)
  • RE: Lost Monitor after SP2
    ... You know what is my oppinion: ... Backup all your data and run IBM's system recovery... ... and it will reinstall ...
    (microsoft.public.windowsxp.hardware)
  • Re: copying the hidden XP recovery partition
    ... containing a copy of XP Pro and what is called the "Product Recovery ... Not only would you "lost the only copy of the OS" should your HDD "go ... backup system that you would employ on a routine basis; ... I was wondering how you can copy the hidden Recovery disk ...
    (alt.comp.hardware.pc-homebuilt)