How can I get rsync to ignore missing files?

Posted by Joe Casadonte on Super User See other posts from Super User or by Joe Casadonte
Published on 2011-06-28T15:03:02Z Indexed on 2011/06/28 16:24 UTC
Read the original article Hit count: 212

Filed under:

I'm executing a command like the following to several different systems:

$ rsync -a -v [email protected]:'/path/to/first/*.log path/to/second.txt' /dest/folder/0007/.

Sometimes *.log does not exist, and that's OK, but rsync generates the following error:

receiving file list ... rsync: link_stat "/path/to/first/*.log" failed: No such file or directory (2)
done

Is there any way to suppress that? The only way I can think of is to use include and exclude filters, which just seem a PITA to me. Thanks!

© Super User or respective owner

Related posts about rsync