Error happens on backup

pts.
Tags:
Backup
Linux 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

Answer Wiki

Thanks. We'll let you know when a new response is added.

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.

Discuss This Question: 1  Reply

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • petkoa
    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 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following