FG

rsync synchronizing files only without creating folders on destination

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

Problem

Is it possible with rsync to not create directories on destination? Imagine I have that source : And that I have this destination : The wanted result of : Of course my real situation involves thousand files/folders structure and I don't want solutions involving explicit list of synced folders, whic…

Error Output

a/
a/x.txt
b/
b/y.txt

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: rsync synchronizing files only without creating folders on destination

Low Risk

Try the following: If you have multiple nested subdirectories, you'll need to do something like this first: Run that list of directories through a loop and call rsync each time. Of course, assuming you're doing this on a remote machine, you'll need …

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment