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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
01-21-2017, 11:11 AM
|
#1
|
Member
Registered: May 2016
Distribution: MX Linux
Posts: 254
Rep:
|
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?
|
|
|
01-21-2017, 12:48 PM
|
#2
|
LQ Guru
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 17,077
|
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
|
|
1 members found this post helpful.
|
01-21-2017, 12:58 PM
|
#3
|
Senior Member
Registered: Nov 2011
Location: London, UK
Distribution: Debian
Posts: 1,950
|
Generally speaking /etc contains system wide configuration details
whilst your /home/username directory contains user specific details.
|
|
1 members found this post helpful.
|
01-21-2017, 01:02 PM
|
#4
|
Member
Registered: May 2016
Distribution: MX Linux
Posts: 254
Original Poster
Rep:
|
Which files and folders from /etc directory i have to backup?
|
|
|
01-21-2017, 02:06 PM
|
#5
|
Senior Member
Registered: Nov 2005
Location: ...uncanny valley... infinity\1975; (randomly born:) Milwaukee, WI, US( + travel,) Earth&Mars (I wish,) END BORDER$!◣◢┌∩┐ Fe26-E,e...
Distribution: any GPL that work on freest-HW; has been KDE, CLI, Novena-SBC but open.. http://goo.gl/NqgqJx &c ;-)
Posts: 4,888
|
|
|
|
01-21-2017, 03:48 PM
|
#6
|
Member
Registered: May 2016
Posts: 222
Rep:
|
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.
|
|
|
01-21-2017, 04:23 PM
|
#7
|
LQ Addict
Registered: Dec 2013
Posts: 19,872
|
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.
|
01-21-2017, 04:51 PM
|
#8
|
Senior Member
Registered: Nov 2005
Location: ...uncanny valley... infinity\1975; (randomly born:) Milwaukee, WI, US( + travel,) Earth&Mars (I wish,) END BORDER$!◣◢┌∩┐ Fe26-E,e...
Distribution: any GPL that work on freest-HW; has been KDE, CLI, Novena-SBC but open.. http://goo.gl/NqgqJx &c ;-)
Posts: 4,888
|
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!
|
|
|
01-21-2017, 05:07 PM
|
#9
|
Member
Registered: May 2016
Posts: 222
Rep:
|
ls ./.[!.]*
or like:
ls ./.[a-zA-Z-0-9]*
or such.
|
|
|
01-21-2017, 05:41 PM
|
#10
|
Senior Member
Registered: Dec 2014
Location: Montreal, Quebec and Dartmouth, Nova Scotia CANADA
Distribution: Arch, AntiX, ArtiX
Posts: 1,364
|
Quote:
Originally Posted by ondoho
... 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 :-)
|
|
|
01-21-2017, 11:59 PM
|
#11
|
Senior Member
Registered: Feb 2003
Distribution: debian
Posts: 4,137
|
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.
|
|
|
All times are GMT -5. The time now is 09:51 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|