LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
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 04-14-2004, 12:27 PM   #1
markcasazza
LQ Newbie
 
Registered: Apr 2004
Posts: 1

Rep: Reputation: 0
Backup & Restore plan using tar


I have been working in the Unix for 15 years but I am new to Linux. I am designing a backup and restore plan using tar. I have a few concerns.

Assuming the mysql databases are idle, will tar backup all that is necessary to get back up and running? All my tests say yes, but I wanted to confirm this.

If I backup the whole system (cd / ; tar cvf /dev/st0 .) when I try to restore this backup how do I deal with processes that are running whose binaries will not be overwritten? In Unix I generally avoid this backup method and just backup that data and necessary configuration files. It is not my first choice with Linux either.

If I just want to back up the data files and not the OS, how to I determine where the files that the servers and their respective GUI interface use are located? I am running Red Hat 9.0. I find little to no references to these files in the documentation. I hope I am just looking at the wrong documents. I ask this because I was only backing up /var/named on a name server and when I tested the restore plan I found that named did not work when this directory was restored.

If I use dd as below:
# Copy all but the label from disk to tape.
(dd bs=4k skip=1 count=0 && dd bs=512k) <$disk >$tape

# Copy from tape back to disk, but leave the disk label alone.
(dd bs=4k seek=1 count=0 && dd bs=512k) <$tape >$disk

What is the implication of system activity while the backup is running? I envision this producing a file system with serious issues. I see many suggestions to use dd for disk to disk backup, but I fear the same risk.

Thanks,

Mark Casazza
 
Old 04-14-2004, 02:11 PM   #2
itsme86
Senior Member
 
Registered: Jan 2004
Location: Oregon, USA
Distribution: Slackware
Posts: 1,246

Rep: Reputation: 58
Re: Backup & Restore plan using tar

Quote:
Originally posted by markcasazza
If I backup the whole system (cd / ; tar cvf /dev/st0 .) when I try to restore this backup how do I deal with processes that are running whose binaries will not be overwritten? In Unix I generally avoid this backup method and just backup that data and necessary configuration files. It is not my first choice with Linux either.
If you're restoring the system then you'll probably be booting using bootdisks or some such, so the running processes won't be from the binaries on the broken drive. Overwriting them shouldn't be a problem.

As far as configuration/data files and such for each specific application, you're probably going to have to look at documentation for each individual application. But as a guess, most configuration files or stored in either /etc or a .<app name> file/directory in your home directory.

To back up your named configuration you'll have to archive /etc/named.conf and probably you're entire /var/named/pz directory.
 
  


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
Backup and Restore with TAR jay2809 Linux - Newbie 7 08-25-2004 05:47 PM
tar to restore backup -- goes to sleep?!? JZL240I-U Linux - Software 4 05-10-2004 03:55 AM
tar backup & restore of current directory wishbone42 Linux - General 3 02-09-2004 03:30 AM
backup and restore using tar AZDAVE Linux - General 6 11-28-2003 09:40 PM
how can I restore a tar backup len snelly Linux - Newbie 1 04-30-2002 01:29 PM


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