LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 06-03-2014, 05:38 PM   #1
PasBern
Member
 
Registered: Dec 2009
Location: Berlin, Germany
Distribution: Ubuntu 16.10, Fedora 24
Posts: 79

Rep: Reputation: 1
Restore ETC-Directory After Fresh Reinstall


Hi all, having had problems booting my system after a minor kernel upgrade (see: http://"http://www.linuxquestions.or...d-4175506695/"), I decided to reinstall my system.

Before that I did a backup of my /etc-diretory. I have done some tweaks like fstrim, prelinking libraries and creating several service files for systemd (cannot remember exactly for what exactly, should have been for network bridging for KVM, stuff for VMware Workstation, profile-sync-daemon) in order to speed up my system. Which parts of that directory are save to restore? I'm not looking into having to do all that work all over again.

Thanks for your help
 
Old 06-03-2014, 09:26 PM   #2
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Debian, Mageia, and whatever VMs I happen to be playing with
Posts: 11,683
Blog Entries: 12

Rep: Reputation: 2903Reputation: 2903Reputation: 2903Reputation: 2903Reputation: 2903Reputation: 2903Reputation: 2903Reputation: 2903Reputation: 2903Reputation: 2903Reputation: 2903
You want only to restore files you have tweaked (in my case, for example, that's normally the smb.conf file). Restoring the entire directory is asking for trouble.

When you do, it's a good idea to rename the default file, rather than overwrite it, so that you can restore it the restored file breaks the install.

If you want to be super cautious, you can use something like diff or meld to compare the two files before making any changes.
 
Old 06-04-2014, 08:19 AM   #3
PasBern
Member
 
Registered: Dec 2009
Location: Berlin, Germany
Distribution: Ubuntu 16.10, Fedora 24
Posts: 79

Original Poster
Rep: Reputation: 1
I decided to restore only my tweaked sysctl.conf and the service files created in /etc/systemd.
 
Old 06-05-2014, 08:04 PM   #4
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Debian, Mageia, and whatever VMs I happen to be playing with
Posts: 11,683
Blog Entries: 12

Rep: Reputation: 2903Reputation: 2903Reputation: 2903Reputation: 2903Reputation: 2903Reputation: 2903Reputation: 2903Reputation: 2903Reputation: 2903Reputation: 2903Reputation: 2903
Well, don't leave us hanging! How did it work out?
 
Old 06-06-2014, 05:03 AM   #5
PasBern
Member
 
Registered: Dec 2009
Location: Berlin, Germany
Distribution: Ubuntu 16.10, Fedora 24
Posts: 79

Original Poster
Rep: Reputation: 1
Well, for different reasons it became a total mess. Sabayon's package manager has the nice feature to restore the previously installed packages, one can export and import a database of all the packages installed. Contrary to Debian's APT this actually works (had some disappointing experiences).

Unfortunately this time it didnt't work. The re-installation process entered into a endless loop and after all packages had been re-installed a third time, my 50GB ROOT-partition ran full. So I decided to re-install the entire system (Yeah!). The newest version of Anaconda gave me some trouble, being sluggish and crashing repeatedly.

So currently I'm not quite done yet.
 
Old 06-07-2014, 08:10 PM   #6
JeremyBoden
Senior Member
 
Registered: Nov 2011
Distribution: Debian
Posts: 1,026

Rep: Reputation: 203Reputation: 203Reputation: 203
I would think that you need to take a copy of pre-existing /etc, install the new system and then
compare the two /etc's and make manual changes as and where necessary.

Allow a very long weekend...
 
  


Reply

Tags
backup


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
reinstall windows...no dual boot (fresh) mpethtel Linux - Newbie 5 02-27-2011 12:30 AM
best way to backup and restore /home directory and reinstall kubuntu ddrohan Linux - Newbie 2 12-03-2009 08:33 PM
restore or reinstall? blizunt7 Fedora 3 09-27-2005 10:10 AM
reinstall or restore kde dave37 Red Hat 2 05-28-2004 10:27 AM
Fresh Reinstall rz78 Linux - Newbie 6 02-15-2004 10:31 PM


All times are GMT -5. The time now is 08:36 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration