LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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, 04:38 PM   #1
PasBern
Member
 
Registered: Dec 2009
Location: Near Frankfurt, Germany
Distribution: OpenSUSE Leap 15.5, MacOS
Posts: 122

Rep: Reputation: 2
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, 08:26 PM   #2
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,324
Blog Entries: 28

Rep: Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142
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, 07:19 AM   #3
PasBern
Member
 
Registered: Dec 2009
Location: Near Frankfurt, Germany
Distribution: OpenSUSE Leap 15.5, MacOS
Posts: 122

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

Rep: Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142
Well, don't leave us hanging! How did it work out?
 
Old 06-06-2014, 04:03 AM   #5
PasBern
Member
 
Registered: Dec 2009
Location: Near Frankfurt, Germany
Distribution: OpenSUSE Leap 15.5, MacOS
Posts: 122

Original Poster
Rep: Reputation: 2
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, 07:10 PM   #6
JeremyBoden
Senior Member
 
Registered: Nov 2011
Location: London, UK
Distribution: Debian
Posts: 1,947

Rep: Reputation: 511Reputation: 511Reputation: 511Reputation: 511Reputation: 511Reputation: 511
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



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-26-2011 11:30 PM
best way to backup and restore /home directory and reinstall kubuntu ddrohan Linux - Newbie 2 12-03-2009 07:33 PM
restore or reinstall? blizunt7 Fedora 3 09-27-2005 09:10 AM
reinstall or restore kde dave37 Red Hat 2 05-28-2004 09:27 AM
Fresh Reinstall rz78 Linux - Newbie 6 02-15-2004 09:31 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:40 AM.

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
Open Source Consulting | Domain Registration