FG
💻 Software

How can I get rsync to ignore missing files?

Fresh5 days ago
Mar 15, 202619618 views
Confidence Score0%
0%

Problem

I'm executing a command like the following to several different systems: Sometimes *.log does not exist, and that's OK, but rsync generates the following error: 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!

Error Output

$ rsync -a -v foo@machine.company.com:'/path/to/first/*.log path/to/second.txt' /dest/folder/0007/.

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: How can I get rsync to ignore missing files?

Low Risk

I think the answer to the question is best described in this answer: https://stackoverflow.com/a/27637277/1236128 Unfortunately, only later versions have this functionality. I am running RHEL 7 with rsync 3.0.9, which does not seem to have this opti…

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment