💻 Software
How to exclude rsync excludes from delete?
Fresh5 days ago
Mar 15, 202616936 viewsConfidence Score0%
0%
Problem
I'm using rsync to sync files across multiple machines, using the following: I want to exclude all log files from being transferred from the source to destination, and delete all existing ones on the destination. So I'm using with which works great. But I want to keep a certain log file intact on t…
Error Output
rsync -az -e "ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no" \ --delete --delete-excluded --force --exclude=.git --exclude=.bund…
Unverified for your environment
Select your OS to check compatibility.
1 Fix
Canonical Fix
Unverified Fix
New Fix – Awaiting Verification
Fix for: How to exclude rsync excludes from delete?
Low Risk
The "protect" filter should accomplish just what you want: Just specify the following filter before the relevant excludes: (Notice the space after the letter P.)
Awaiting Verification
Be the first to verify this fix
Sign in to verify this fix