LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 01-21-2017, 10:11 AM   #1
peter7089
Member
 
Registered: May 2016
Posts: 72

Rep: Reputation: Disabled
System configuration and software settings location?


Is all system configuration settings and installed software settings stored in user home folder? If i want to backup all of my configuration and software settings do i have to copy just my user home folder?
 
Old 01-21-2017, 11:48 AM   #2
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware & Android
Posts: 10,560

Rep: Reputation: 1172Reputation: 1172Reputation: 1172Reputation: 1172Reputation: 1172Reputation: 1172Reputation: 1172Reputation: 1172Reputation: 1172
The /etc directory holds a lot of system wide configuration data.
Your home directory also has some in hidden files that your user configured. Try this
Code:
ls ~/.*
 
1 members found this post helpful.
Old 01-21-2017, 11:58 AM   #3
JeremyBoden
Senior Member
 
Registered: Nov 2011
Location: London, UK
Distribution: Debian
Posts: 1,552

Rep: Reputation: 314Reputation: 314Reputation: 314Reputation: 314
Generally speaking /etc contains system wide configuration details
whilst your /home/username directory contains user specific details.
 
1 members found this post helpful.
Old 01-21-2017, 12:02 PM   #4
peter7089
Member
 
Registered: May 2016
Posts: 72

Original Poster
Rep: Reputation: Disabled
Which files and folders from /etc directory i have to backup?
 
Old 01-21-2017, 01:06 PM   #5
jamison20000e
Senior Member
 
Registered: Nov 2005
Location: ...uncanny valley... infinity\1975; (randomly born:) Milwaukee, WI, US( + travel,) Earth( I wish,) END BORDER$!◣◢┌∩┐ Fe26-E,e...
Distribution: any GPL that works well on my cheapest; has been KDE or CLI but open... http://goo.gl/NqgqJx &c ;-)
Posts: 3,852
Blog Entries: 2

Rep: Reputation: 1312Reputation: 1312Reputation: 1312Reputation: 1312Reputation: 1312Reputation: 1312Reputation: 1312Reputation: 1312Reputation: 1312Reputation: 1312
This or other searches may help: http://www.howtogeek.com/194342/how-...uration-files/
 
Old 01-21-2017, 02:48 PM   #6
nodir
Member
 
Registered: May 2016
Posts: 222

Rep: Reputation: Disabled
both, etc and the hidden configs in home are very small in size.
Just back up everything

ls ~/.*
I think that is not the best way, as .* may also give a positive result for ..
which is not what one wants.
 
Old 01-21-2017, 03:23 PM   #7
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 12,456
Blog Entries: 9

Rep: Reputation: 3370Reputation: 3370Reputation: 3370Reputation: 3370Reputation: 3370Reputation: 3370Reputation: 3370Reputation: 3370Reputation: 3370Reputation: 3370Reputation: 3370
so, to re-iterate:
Code:
ls -al $HOME/.*
ls /etc/
while it might be a good idea to back up these files, please be warned that doing so will not guarantee a 100% restorable system, esp. when you've been installing software and whatnot.

unfortunately linux is a bit of a jungle in that respect (but so is windows).
 
1 members found this post helpful.
Old 01-21-2017, 03:51 PM   #8
jamison20000e
Senior Member
 
Registered: Nov 2005
Location: ...uncanny valley... infinity\1975; (randomly born:) Milwaukee, WI, US( + travel,) Earth( I wish,) END BORDER$!◣◢┌∩┐ Fe26-E,e...
Distribution: any GPL that works well on my cheapest; has been KDE or CLI but open... http://goo.gl/NqgqJx &c ;-)
Posts: 3,852
Blog Entries: 2

Rep: Reputation: 1312Reputation: 1312Reputation: 1312Reputation: 1312Reputation: 1312Reputation: 1312Reputation: 1312Reputation: 1312Reputation: 1312Reputation: 1312
I personally only backup any custom files I modify and know can transfer to a new install or disto... plus, of course, my data regularly and diversely!
 
Old 01-21-2017, 04:07 PM   #9
nodir
Member
 
Registered: May 2016
Posts: 222

Rep: Reputation: Disabled
ls ./.[!.]*
or like:
ls ./.[a-zA-Z-0-9]*
or such.
 
Old 01-21-2017, 04:41 PM   #10
Rickkkk
Senior Member
 
Registered: Dec 2014
Location: Montreal, Quebec, CANADA
Distribution: Arch
Posts: 1,113

Rep: Reputation: 419Reputation: 419Reputation: 419Reputation: 419Reputation: 419
Quote:
Originally Posted by ondoho View Post
... while it might be a good idea to back up these files, please be warned that doing so will not guarantee a 100% restorable system, esp. when you've been installing software and whatnot ..
+1

Certain config files can be copied over to a new install to restore previous customization, but don't count on a foolproof backup / restore type of situation.

Cheers :-)
 
Old 01-21-2017, 10:59 PM   #11
Shadow_7
Senior Member
 
Registered: Feb 2003
Distribution: debian
Posts: 3,928
Blog Entries: 1

Rep: Reputation: 832Reputation: 832Reputation: 832Reputation: 832Reputation: 832Reputation: 832Reputation: 832
Note that the /home/ for root is /root/.

So:

/etc/*
/home/*
/root/*

But it's really app dependent. Sometimes defaults / first run stuff is pulled from an apps /usr/share/ location. Not that that would affect you outside of distro or major versioning shifts.
 
  


Reply


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
[SOLVED] KDE 4.8.5 - System Settings - Printer Configuration - Error rrrssssss Gentoo 1 09-20-2012 05:33 AM
LXer: Installing Software from the KDE System Settings Menu LXer Syndicated Linux News 0 08-24-2012 07:00 AM
Location of printer default settings? tommyttt Linux - Hardware 3 06-22-2010 10:45 AM
LXer: How To Set Up Software RAID1 On A Running System (Incl. GRUB Configuration) (De LXer Syndicated Linux News 0 11-29-2007 02:20 PM
Ubuntu: Network Settings -> Location General_Tso Ubuntu 0 04-18-2005 04:54 PM

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

All times are GMT -5. The time now is 10:27 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