Ignoring "file has vanished" errors?
henri.shustak at gmail.com
Sat Jul 24 19:02:19 MDT 2010
> Is it possible to have rsync ignore 'file has vanished' errors and not
> return an error on exit?
> I have a backup script that utilizes rsync, and based on the return
> code determines whether the backup was successful. Postfix queue files
> and user maildir files being deleted during the backup process
> shouldn't be enough to cause the backup to fail.
You have a number of options available to you. Below, I have listed just two options relating to exit code alteration :
- Ignore the exit code within you backup script.
- Run rsync via a wrapper script which to bypass this error.
Details on such a wrapper script is available from the URL below :
More helpful rsync tips are available from : <http://www.samba.org/rsync/FAQ.html>
Depending upon your operating system / file system you may be able to take a snap shot.
One recent approach mentioned on this mailing list in relation to file system snap shots are the threads on the use of LVM and rsync. Below are a couple of links to the recent posts regarding usage of LVM.
Hopefully this information is helpful with regards your backup.
This email is protected by LBackup
More information about the rsync