Solved

backing up active filesystems safely

Posted on 1998-08-04
2
267 Views
Last Modified: 2013-11-15
I'm using Redhat Linux 5.0 with a scsi 4mm tape drive.
I don't have any problems writing to or reading from the tape.
For example:
  To backup I can type:  tar -czvSf /dev/tape /home/mag
  To restore I can type:  cat /dev/tape >foo.tar.gz
    then I can type: gzip -d foo.tar.gz
    then I can type: tar xvf foo.tar
    and I'm back in business.

I have heard that tar is not a good backup tool to use if the filesystem is changing.

Is it any part of the filesystem that corrupts the backup?  Or is it only a problem if the file being backed up changes?

Is their a failsafe method of backing up the files to a tape drive?  dump?  zip?
0
Comment
Question by:mag062397
2 Comments
 
LVL 2

Expert Comment

by:JYoungman
ID: 1637706
If the data being backed up changes during the backup,
you may find that the data on the tape for a given file does not correspond to what was the contents of the file at *any* time; it may be half-and-half or something like that.

Common wisdom has it that dump(1) is more resistant to these problems, but I haven't read the source so I'm not sure.

Personally, I do backups with tar, but duiring the night when those filesystems are not being used.

Filesystem snapshots will appear in the 2.3 or 2.5 Linux kernel series, I think, so in the end the problem will be solved the right way.

0
 
LVL 4

Accepted Solution

by:
jlms earned 70 total points
ID: 1637707
The problem of "live" filesystems is one of the filesystem you are using. Only a few recent filesystems allow you to do that, but Linux does not have them implemented (Veritas fs for example).

   So to be 100% in the safe side, you should back up filesystems that are not been used. Utilities like dump allow you to do so with the filesystem unmounted, which guarantees the fiabilty of what goes to the tape.
0

Featured Post

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
android secure ftp 3 31
Linux script delete files 3 29
awk variable in printf 1 22
Application Crash 2 19
A list of useful business intelligence software.
Healthcare organizations in the United States must adhere to the guidance of both the HIPAA (Health Insurance Portability and Accountability Act) and HITECH (Health Information Technology for Economic and Clinical Health Act) for securing and protec…
The viewer will learn common shortcuts with easy ways to remember them. The viewer will then learn where to find all of the keyboard shortcuts, how to create/change them, and how to speed up their workflow.
An overview on how to enroll an hourly employee into the employee database and how to give them access into the clock in terminal.

816 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now