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

           Summary: flag to suppress link_stat error messages
           Product: rsync
           Version: 3.1.1
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: P5
         Component: core
        AssignedTo: way...@samba.org
        ReportedBy: m...@bitchx.it
         QAContact: rsync...@samba.org


rsync complains about file arguments not existing.

For example, running this command to archive a selected set of files:

rsync -aq --remove-from-source --remove-source-files /var/log/messages*bz2
/backup/maillog*bz2 /backup/auth.log*bz2 backupserver::myname/

will issue the following errors if any of the given patters has no match:

rsync: link_stat "/var/log/messages*bz2" failed: No such file or directory (2)
rsync: link_stat "/backups/maillog*bz2" failed: No such file or directory (2)
...

One particular application of commands similar to this is to periodically save
archives to a central backup server via cron. This causes cron to periodically
mail admins with the above errors. The option to divert this to /dev/null is
dangerous, as it would lose other error messages which ARE actually useful,
such as failures to reach the backup server.

A command line argument such as --ignore-missing-files that avods this type of
errors (link_stat) would do great.

-- 
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