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: way...@samba.org
        ReportedBy: jakob...@gmail.com
         QAContact: rsync...@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.
-- 
Please use reply-all for most replies to avoid omitting the mailing list.
To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html

Reply via email to