Displaying 1 result from an estimated 1 matches for "ignoreexit".
Did you mean:
ignoreedid
2014 Jan 01
3
[Bug 10356] New: Include rsync-no-vanished support script
...t: rsync-qa at samba.org
Bug 3653 discussed how "file has vanished" warnings can be silenced. Code
changes did not make it in, but Matt McCutchen wrote the rsync-no-vanished bash
wrapper script, whose final version seems to handle it correctly, using
advanced bash features:
#!/bin/bash
ignoreexit=24
ignoreout='^(file has vanished: |rsync warning: some files vanished before they
could be transferred)'
set -o pipefail
rsync "$@" 2>&1 | (egrep -v "$ignoreout" || true)
a=$?
if [ $a == $ignoreexit ]; then
exit 0
else
exit $a
fi
What is missing is to ma...