LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 12-27-2001, 09:22 PM   #1
tarballedtux
Member
 
Registered: Aug 2001
Location: Off the coast of Madadascar
Posts: 498

Rep: Reputation: 30
how do I backup system


How can I use tar to backup all the essential files:
such as config files and any other important files.

and also keep out the junk that isn't system critical like man pages and docs
 
Old 12-27-2001, 10:59 PM   #2
DavidPhillips
Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,154

Rep: Reputation: 56
you can use tar in many different ways but something like this will work

mkdir /backup


tar czv /etc/*.conf > /backup/etc_conf.tar.gz

this would create a zipped tarball named etc_conf.tar.gz in /backup/ containing all files in etc that end with .conf


or use the more generic method

tar cfvz /backup/etc_conf.tar.gz /etc/*.conf

Last edited by DavidPhillips; 12-27-2001 at 11:12 PM.
 
Old 12-28-2001, 12:07 AM   #3
Aussie
Senior Member
 
Registered: Sep 2001
Location: Brisvegas, Antipodes
Distribution: Slackware
Posts: 4,590

Rep: Reputation: 56
I use mondo-rescue to back up to bootable cd's, from which I can do a full system restore including programs I've installed to a blank hard drive.
 
Old 12-28-2001, 07:42 PM   #4
tarballedtux
Member
 
Registered: Aug 2001
Location: Off the coast of Madadascar
Posts: 498

Original Poster
Rep: Reputation: 30
is that all i need?

are the only files i should really backup *.conf files or are their others I should backup?
 
Old 12-29-2001, 02:32 AM   #5
DavidPhillips
Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,154

Rep: Reputation: 56
That's hard to say, I only backup files I have created, files I want to save, and config files that are edited after the standard install to setup my machine.

Some people backup their whole system.

I just used the *.conf for an example. I do not backup those because only a few of them are changed in my system.

I am using Raid 1 with ext3 file system and have an UPS that will shutdown the machine if the batteries go low so I am not all that worried about loosing stuff.

One thing I do is if I have a file that I use to setup something, which I have several. I e-mail them to a couple of my addresses and then I can easily retrieve them whenever I need them again.

If you have a firewall file save it. Also if you are running a dhcp server and you have a big dhcpd.conf file you want to save it. Also zone files if you have setup a custom DNS server. mail config files for mail server, etc....





Last edited by DavidPhillips; 12-29-2001 at 02:41 AM.
 
  


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Backup of the system enemorales Linux - Newbie 2 01-05-2005 07:08 AM
system backup. vcheah Linux - Software 1 01-24-2004 02:20 AM
System Backup linuxtom Linux - General 2 09-17-2003 10:28 AM
System backup. ETeria Linux - Newbie 6 04-10-2003 09:14 AM
backup of system !! hitesh_linux Linux - Software 6 10-08-2002 08:14 PM


All times are GMT -5. The time now is 03:53 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration