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, 11:11 AM   #1
peter7089
Member
 
Registered: May 2016
Distribution: MX Linux
Posts: 254

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, 12:48 PM   #2
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 17,077

Rep: Reputation: 2482Reputation: 2482Reputation: 2482Reputation: 2482Reputation: 2482Reputation: 2482Reputation: 2482Reputation: 2482Reputation: 2482Reputation: 2482Reputation: 2482
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, 12:58 PM   #3
JeremyBoden
Senior Member
 
Registered: Nov 2011
Location: London, UK
Distribution: Debian
Posts: 1,950

Rep: Reputation: 513Reputation: 513Reputation: 513Reputation: 513Reputation: 513Reputation: 513
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, 01:02 PM   #4
peter7089
Member
 
Registered: May 2016
Distribution: MX Linux
Posts: 254

Original Poster
Rep: Reputation: Disabled
Which files and folders from /etc directory i have to backup?
 
Old 01-21-2017, 02:06 PM   #5
jamison20000e
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
Blog Entries: 2

Rep: Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567
This or other searches may help: http://www.howtogeek.com/194342/how-...uration-files/
 
Old 01-21-2017, 03: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, 04:23 PM   #7
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
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, 04:51 PM   #8
jamison20000e
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
Blog Entries: 2

Rep: Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567
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, 05: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, 05:41 PM   #10
Rickkkk
Senior Member
 
Registered: Dec 2014
Location: Montreal, Quebec and Dartmouth, Nova Scotia CANADA
Distribution: Arch, AntiX, ArtiX
Posts: 1,364

Rep: Reputation: 511Reputation: 511Reputation: 511Reputation: 511Reputation: 511Reputation: 511
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, 11:59 PM   #11
Shadow_7
Senior Member
 
Registered: Feb 2003
Distribution: debian
Posts: 4,137
Blog Entries: 1

Rep: Reputation: 875Reputation: 875Reputation: 875Reputation: 875Reputation: 875Reputation: 875Reputation: 875
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 06:33 AM
LXer: Installing Software from the KDE System Settings Menu LXer Syndicated Linux News 0 08-24-2012 08:00 AM
Location of printer default settings? tommyttt Linux - Hardware 3 06-22-2010 11: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 03:20 PM
Ubuntu: Network Settings -> Location General_Tso Ubuntu 0 04-18-2005 05:54 PM

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

All times are GMT -5. The time now is 09:51 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
Open Source Consulting | Domain Registration