Bug 10445 - flag to suppress link_stat error messages
Summary: flag to suppress link_stat error messages
Status: RESOLVED INVALID
Alias: None
Product: rsync
Classification: Unclassified
Component: core (show other bugs)
Version: 3.1.1
Hardware: All All
: P5 enhancement (vote)
Target Milestone: ---
Assignee: Wayne Davison
QA Contact: Rsync QA Contact
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-02-13 18:24 UTC by michele
Modified: 2014-02-13 18:28 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description michele 2014-02-13 18:24:43 UTC
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.
Comment 1 michele 2014-02-13 18:28:22 UTC
I see that the newest version of rsync does support this as "--ignore-missing-args" . The manpage on the Mac tricked me to assume otherwise. Closing this, sorry for the noise.