[Bug 10356] New: Include rsync-no-vanished support script

samba-bugs at samba.org samba-bugs at samba.org
Wed Jan 1 08:00:21 MST 2014


https://bugzilla.samba.org/show_bug.cgi?id=10356

           Summary: Include rsync-no-vanished support script
           Product: rsync
           Version: 3.1.1
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: minor
          Priority: P5
         Component: core
        AssignedTo: wayned at samba.org
        ReportedBy: jakobunt at gmail.com
         QAContact: 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 make that script accessible to users. I suggest to
include it in the support directory in the rsync tarball.

-- 
Configure bugmail: https://bugzilla.samba.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.


More information about the rsync mailing list