Your IP : 10.10.0.253


Current Path : /proc/thread-self/root/usr/share/rsync/scripts/
Upload File :
Current File : //proc/thread-self/root/usr/share/rsync/scripts/rsync-no-vanished

#!/usr/bin/env 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)
ret=$?

if [[ $ret == $IGNOREEXIT ]]; then
    ret=0
fi

exit $ret