LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 05-12-2005, 09:43 PM   #1
Cinematography
Member
 
Registered: Apr 2005
Location: Chicago, IL
Distribution: openSUSE 13.1
Posts: 357

Rep: Reputation: 31
making a backup of user / program settings


My last copy of Linux died. I had to install a new copy of Linux so I could get my files from the old copy. I would like to format and start fresh now. Before I do that, I would like to save the user/program settings from my old copy of Linux.

Is there an EASY way I can backup user/program settings?

Last edited by Cinematography; 05-13-2005 at 07:24 PM.
 
Old 05-12-2005, 09:57 PM   #2
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Debian, Arch
Posts: 8,507

Rep: Reputation: 128Reputation: 128
Moving them from distro to distro is not the easiest task as files have a tendency to be in slightly different locations on different systems. However, you'd want to keep your entire home directory (perhaps make a preserving-style tarball of the thing) and probably the files in /etc. These would at least give you a place to store settings to refer to later.
 
Old 05-12-2005, 09:58 PM   #3
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,290

Rep: Reputation: 378Reputation: 378Reputation: 378Reputation: 378
In general, global configuration files go in the /etc directory. Individual users' configurations go in files or directory prefixed by a . (dot) in their home directory. You should back up the appropriate configs for /etc and of course copy over user home dirs you will need.
 
Old 05-12-2005, 10:01 PM   #4
mrcheeks
Senior Member
 
Registered: Mar 2004
Location: far enough
Distribution: OS X 10.6.7
Posts: 1,690

Rep: Reputation: 52
Basically you just want to do a :
Code:
tar jcvf home-backup.tar.bz2 ~/.*
and a zip of global configuration files in /etc that you might need.
 
Old 05-12-2005, 10:22 PM   #5
Cinematography
Member
 
Registered: Apr 2005
Location: Chicago, IL
Distribution: openSUSE 13.1
Posts: 357

Original Poster
Rep: Reputation: 31
Quote:
Originally posted by Matir
Moving them from distro to distro is not the easiest task as files have a tendency to be in slightly different locations on different systems.
How about if I'm moving from Mandrake to Mandrake?

Quote:
Originally posted by btmiller
In general, global configuration files go in the /etc directory. Individual users' configurations go in files or directory prefixed by a . (dot) in their home directory. You should back up the appropriate configs for /etc and of course copy over user home dirs you will need.
Are these directories hidden? I can't seem to find them.

Quote:
Originally posted by mrcheeks
Basically you just want to do a :
Code:
tar jcvf home-backup.tar.bz2 ~/.*
and a zip of global configuration files in /etc that you might need.
Beautiful command line. What if I wanted to just backup the files in my home directory and not the files on my desktop? I have a huge video editing directory on my desktop that I would like to backup later.

Thanks a lot for the replies, folks.
 
Old 05-12-2005, 10:28 PM   #6
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Debian, Arch
Posts: 8,507

Rep: Reputation: 128Reputation: 128
Directories and files beginning with a '.' are indeed hidden. Those in your home directory are generally configuration, preference, startup, and history files. I would add 'p' to the tar command line to preserve permissions, though!
 
Old 05-13-2005, 02:41 AM   #7
Cinematography
Member
 
Registered: Apr 2005
Location: Chicago, IL
Distribution: openSUSE 13.1
Posts: 357

Original Poster
Rep: Reputation: 31
Quote:
Originally posted by Matir
Directories and files beginning with a '.' are indeed hidden. Those in your home directory are generally configuration, preference, startup, and history files. I would add 'p' to the tar command line to preserve permissions, though!
Is there a way I could see these files so I can see what I'm doing with them? Or backup just my program/os settings?

Last edited by Cinematography; 05-13-2005 at 05:07 AM.
 
Old 05-13-2005, 11:21 AM   #8
Cinematography
Member
 
Registered: Apr 2005
Location: Chicago, IL
Distribution: openSUSE 13.1
Posts: 357

Original Poster
Rep: Reputation: 31
*bump* ^_^
 
Old 05-13-2005, 07:01 PM   #9
Cinematography
Member
 
Registered: Apr 2005
Location: Chicago, IL
Distribution: openSUSE 13.1
Posts: 357

Original Poster
Rep: Reputation: 31
 
Old 05-13-2005, 10:10 PM   #10
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Debian, Arch
Posts: 8,507

Rep: Reputation: 128Reputation: 128
ls -A in the console will show the hidden files as well.
 
Old 05-13-2005, 11:01 PM   #11
Cinematography
Member
 
Registered: Apr 2005
Location: Chicago, IL
Distribution: openSUSE 13.1
Posts: 357

Original Poster
Rep: Reputation: 31
Quote:
Originally posted by Matir
ls -A in the console will show the hidden files as well.
[tony@localhost tony]$ -A
bash: -A: command not found

 
Old 05-13-2005, 11:11 PM   #12
mrcheeks
Senior Member
 
Registered: Mar 2004
Location: far enough
Distribution: OS X 10.6.7
Posts: 1,690

Rep: Reputation: 52
is
Code:
ls -A
not
Code:
-A
 
Old 05-13-2005, 11:12 PM   #13
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Debian, Arch
Posts: 8,507

Rep: Reputation: 128Reputation: 128
Sorry for the lack of clarity.
 
Old 05-13-2005, 11:13 PM   #14
mrcheeks
Senior Member
 
Registered: Mar 2004
Location: far enough
Distribution: OS X 10.6.7
Posts: 1,690

Rep: Reputation: 52
by the way if you are using gnome or kde, just use the view or display menu of your file manager to display hidden files.
 
Old 05-13-2005, 11:33 PM   #15
Cinematography
Member
 
Registered: Apr 2005
Location: Chicago, IL
Distribution: openSUSE 13.1
Posts: 357

Original Poster
Rep: Reputation: 31
Quote:
Originally posted by mrcheeks
is
Code:
ls -A
not
Code:
-A
Oh good god... After 2 days of hell I'm finally making some progress. I can now see the files I want to backup. Thank you guys very much.

And now.... for my last question.... How do I backup JUST those program setting directories into a tar file?
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Making backup through ssh connection Supernoobs Linux - General 1 11-17-2005 12:09 PM
Mandrake's backup won't save my settings! jamespetts Linux - Software 2 08-19-2004 02:26 PM
Making a Backup Boot disc Redfiveuk Linux - Newbie 6 05-11-2004 05:46 AM
help making a user adding program in c++ evilchild504 Programming 2 11-06-2003 03:39 AM
Making a simpel backup CloudBuilder Linux - Newbie 4 10-30-2003 12:13 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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