LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Fedora (https://www.linuxquestions.org/questions/fedora-35/)
-   -   which files to copy before a fresh install? (https://www.linuxquestions.org/questions/fedora-35/which-files-to-copy-before-a-fresh-install-4175532142/)

DJOtaku 01-26-2015 11:24 AM

which files to copy before a fresh install?
 
I have another thread about re-installing Fedora when I get a new hard drive. I'm going to use it as an opportunity to try and limit the programs I have installed (so upgrades will be less time-consuming) so I don't need any of those commands to make yum install what I had installed before. Also, /home is on its own hard drive so I don't to worry about anything explicitly residing in my home directory.

But I want to make sure I copy over configs and other files I may be forgetting.

Here's my current list:
  • fstab
  • crontab files
  • QMC2 puts some files on /
  • Xorg conf? I don't think that's used anymore
  • Crashplan files? (need to at least make some screenshots of current configs)
  • NFS shares (if any)
  • Any crypto stuff in /? Or is the important stuff (like GPG sigs) only in my /home dir?

smallpond 01-26-2015 12:52 PM

I always forget things when I upgrade so I make a tar of /etc and /var/named to get all the conf files then refer to as needed.

Directories:
  • /etc/ssh/ - has your keys so you don't have to edit the "known_keys" everywhere
  • /var/named/ - if you have a local DNS server
  • /etc/sysconfig/ - all the stuff you set up at install time, firewall rules
  • /etc/mail/ - sendmail configuration
Files:
  • /etc/rsyslog.conf - so you don't have to figure out how to turn off all that logging again
  • /etc/aliases - who gets root's mail
  • /etc/mdadm.conf - RAID setup

DJOtaku 01-26-2015 08:05 PM

Thanks! I think at least some of those will apply to me!

DJOtaku 07-30-2015 02:17 PM

Adding some more for anyone coming here by Google:
  • /etc/yum.repos.d
  • (specific to me) settings to make sure locate doesn't index my btrfs snapshots


All times are GMT -5. The time now is 12:42 AM.