FG

Use rsync to copy all files except for certain filenames with a certain extension

Fresh3 days ago
Mar 15, 202651340 views
Confidence Score0%
0%

Problem

I have two same-size flash cards, and I want to copy contents of one to the other based on the following rules: I want all directories and subdirectories in place I want to exclude files of type .FOO, .BAR, and .ZIM (all other files are copied) Bonus: It'd be cool if it outputs the filenames as the…

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: Use rsync to copy all files except for certain filenames with a certain extension

Low Risk

This would be significantly easier using rsync with its switch. The switch will provide verbose output on which files are being synchronised.

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment