What files to back up?

Solaris, RedHat, FreeBSD and the like
Post Reply
Message
Author
rmcder
Freshman Member
Posts: 75
Joined: Mon Dec 24, 2007 11:27 am
Location: new windsor, ny

What files to back up?

#1 Post by rmcder » Wed Jan 09, 2008 8:57 am

Since I now have a separate HOME partition, it occurs to me that I should put copies of the important configuration files on it. Xorg.conf is an obvious candidate, as is menu.lst. What others?

tylerwylie
Junior Member
Junior Member
Posts: 475
Joined: Wed Dec 19, 2007 5:40 pm
Location: Champaign, IL
Contact:

#2 Post by tylerwylie » Wed Jan 09, 2008 9:13 am

Anything you want to save from /etc/?
Samuel Adams wrote:The natural liberty of man is to be free from any superior power on Earth, and not to be under the will or legislative authority of man, but only to have the law of nature for his rule.

tarvoke
Junior Member
Junior Member
Posts: 273
Joined: Sun Mar 25, 2007 12:45 pm
Location: Slightly Outside America

#3 Post by tarvoke » Wed Jan 09, 2008 10:45 am

might as well get all of /boot and /etc, that covers just about everything and you never know what you'll need and when.

(/boot may be largish depending on how many kernel images you have there, if you have initrd images, etc.)

Code: Select all

sudo tar cjf foo.tbz2 /boot /etc
gives me a file about 45-50mb.
go away.

Volker
Junior Member
Junior Member
Posts: 482
Joined: Fri Oct 01, 2004 10:21 am
Location: Dublin, Ireland
Contact:

#4 Post by Volker » Wed Jan 09, 2008 10:56 am

/boot should only contain kernel binaries but no user-configurable files. I just back up /etc.

tarvoke
Junior Member
Junior Member
Posts: 273
Joined: Sun Mar 25, 2007 12:45 pm
Location: Slightly Outside America

#5 Post by tarvoke » Wed Jan 09, 2008 11:00 am

/boot/grub/menu.lst is fairly user configurable and may have custom modifications
/boot/config-* is often highly useful

in addition, some people still build custom kernels ^_^
(in which case /lib/modules is also worth backing up)
go away.

short101
Freshman Member
Posts: 55
Joined: Mon Dec 10, 2007 6:28 am
Location: Perth Australia

#6 Post by short101 » Wed Jan 09, 2008 11:33 pm

No need to back up the modules, but your right, the configs can be handy so you dont have to go through all your kernel options if you reinstall. /etc and /var/www related things (databases) are about the only things I back up.

independent
Posts: 36
Joined: Thu Oct 11, 2007 9:20 pm
Location: Wanganui, New Zealand

#7 Post by independent » Fri Jan 11, 2008 1:55 am

This is a really interesting question.

The biggies in my book (sort-of) in order of importance:

If you need to get online, without this you're not going anywhere

Code: Select all

/etc/resolv.conf

Very important for large LCD monitors modelines and all sorts

Code: Select all

/etc/X11/xorg.conf
Might be important to your setup

Code: Select all

/etc/hosts
Basically if you tweak your kernel then you don't want to forget this

Code: Select all

/usr/src/linux/.config

So you know what modules to install

Code: Select all

/etc/modules.autoload/kernel-2.6
So you know what kernel to boot ;-)

Code: Select all

/boot/grub/menu.lst
For conky

Code: Select all

/home/user/.conkyrc
Everything in there :-)

Code: Select all

/home/user/.fluxbox/*


Those are the main ones I can remember off the top of my head

I used to take the

Code: Select all

/etc/fstab
file and the

Code: Select all

/etc/hosts.allow
but I'm not on a nfs system and I can mount anything now from memory ok :-D
Last edited by independent on Fri Jan 11, 2008 3:24 pm, edited 1 time in total.
GNU/Linux user--An Arch'er

tylerwylie
Junior Member
Junior Member
Posts: 475
Joined: Wed Dec 19, 2007 5:40 pm
Location: Champaign, IL
Contact:

#8 Post by tylerwylie » Fri Jan 11, 2008 2:37 am

Don't you mean /etc/X11/xorg.conf ?
Samuel Adams wrote:The natural liberty of man is to be free from any superior power on Earth, and not to be under the will or legislative authority of man, but only to have the law of nature for his rule.

lightweight
Sophomore Member
Posts: 234
Joined: Sat Jun 30, 2007 10:56 pm
Location: L. A.

#9 Post by lightweight » Fri Jan 11, 2008 7:27 am

Depending on your distro (and philosophy), /usr/local/etc, too. BSD folk (not so true of FreeBSD, but thats for another post) will often build their /usr/local to be easily exportable from box to box, and extending this philosophy to backups is good. Forcing yourself to work with /usr/local and no distro-specific libs is good practice.
Have: x60s ultralight 1705-CTO, Debian SiD, Linux 2.6.25-2 | x61s ultralight 7668-CTO, Debian SiD/Experimental, Linux 2.6.27-git5 | Model M 1391401, white label, 07-17-91
Had: x22, Debian Testing/SiD, Linux 2.6.18-22

independent
Posts: 36
Joined: Thu Oct 11, 2007 9:20 pm
Location: Wanganui, New Zealand

#10 Post by independent » Fri Jan 11, 2008 3:23 pm

Yes I do mean

Code: Select all

/etc/X11/xorg.conf
Post corrected thanks
GNU/Linux user--An Arch'er

Post Reply
  • Similar Topics
    Replies
    Views
    Last post

Return to “Linux Questions”

Who is online

Users browsing this forum: No registered users and 2 guests