LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 07-07-2009, 04:40 PM   #1
wiso2010
LQ Newbie
 
Registered: Jul 2009
Posts: 1

Rep: Reputation: 0
How to preserve a copy of system-level configuration files


How can I preserve a copy of all of the system-level configuration files that end with “.conf”. (Note that these files may be found in many directories, not just in /etc.) Use the tar utility to bundle these files into one file in the /backup/system.config/ directory (or another directory of your choice), and compress the resulting file with the bzip2 compression utility.

Any help will be helpful

Thanks
 
Old 07-07-2009, 05:18 PM   #2
Uncle_Theodore
Member
 
Registered: Dec 2007
Location: Charleston WV, USA
Distribution: Slackware 12.2, Arch Linux Amd64
Posts: 896

Rep: Reputation: 60
Something like this would probably work:

Code:
 find / -name \*.conf -exec tar -r --file=configdir1.tar '{}' \;
 bzip2 configdir1.tar
 
Old 07-07-2009, 06:29 PM   #3
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
Except of course, not all configs do end in .conf!
 
Old 07-08-2009, 05:09 AM   #4
jeromeNP7
Member
 
Registered: Jun 2009
Posts: 101

Rep: Reputation: 19
I agree with billymayday - there is absolute no guarantee that all necessary configuration files will end in .conf, and as a matter of fact some services depend on more than a single settings file, where some might have different extension names. It would make more sense to locate the relevant directory and do a complete backup. System-level configuration files usually reside in /etc, though the definition of system-level is a bit broad - httpd is system-level, but not strictly necessary to provide a bootable system.

Linux

Last edited by jeromeNP7; 09-04-2009 at 10:07 PM.
 
  


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
How can I copy hidden home directory configuration files and folders? rm_-rf_windows Linux - General 3 06-29-2007 06:26 AM
To copy files from a CD to a folder on your system Gins Linux - General 20 10-30-2006 01:53 PM
Make KDE/Konqueror preserve time, ownership on file copy tisource Linux - Software 2 06-27-2006 02:23 PM
preserve configuration files during RPM upgrade (rpm -U) charrua Red Hat 3 03-14-2004 02:18 PM
How to copy files from A computer of NT System to The other one of Unix system? whepin Linux - Newbie 5 04-06-2003 11:50 AM


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