0 pts.
 Error happens on backup
Error happens on backup i have a automate linux backup at my office and it start miss behaving When the tar process begins it possibly records the contents of the files somewhere. Now what is happening is while the tar is in process and if the file is changed, then tar returns with error and the process is exited and of course the backup doesn't take place. Please advice on how can we resolve this issue. here is the error message tar: Removing leading `/' from member names tar: /var/spool/mail/umataro: file changed as we read it tar: Error exit delayed from previous errors

Software/Hardware used:
ASKED: September 19, 2005  9:52 AM
UPDATED: February 3, 2009  4:02 PM

Answer Wiki:
A while since I worked with tar, but I don't think even current linux versions allow you to ignore this error. Really you have two choices, either limit backup to exclude files which could change during course of backup, or shutdown services during the backup (easiest is probably to drop system to single user mode), and then restart after backup has completed. If you are only having problem with one specific file, or directory should not be too difficult to exclude them. If problem is always caused by same service, you could try just stopping that service alone (e.g. mail) while backup is run.
Last Wiki Answer Submitted:  September 19, 2005  12:03 pm  by  PeterMac   0 pts.
All Answer Wiki Contributors:  PeterMac   0 pts.
To see all answers submitted to the Answer Wiki: View Answer History.


Discuss This Question:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _


 

Hi,

I just wonder do you really use tape drive for these backups – it’s usually quite expensive sollution for a Linux box…

If, in contrary, you are using tar to make a backup on a second harddisk, or over network, I’d suggest to consider software RAID or switching to rsync (if you need dayly backups).

I’ll not comment RAID, just few words about rsync – (1) it replaces only files, changed since last backup, and (2) it complains if a file sheduled for synchronisation disapeares or changes (sure), but continues processing other files, so you end up with a decent backup of the system.

BR,

Petko

 3,120 pts.