Hi all,

I've been messing around with needing to duplicate a dir tree minus its file contents.

What i would like to achieve is to rsync dirs, subdirs and sym links of dirs excluding files.

My first experiment was to simply do dirs and subdirs;

rsync -a -f"+ */" -f"- *" source destination

Worked like a champ.

However I'm unsure how to include or exclude sym links from this so i tried;

rsync -a -f"+ */" -f"- * -l" source destination

Which breaks everything and copies all data, dirs, subdirs, sym links and files.

Any ideas?
--
Please use reply-all for most replies to avoid omitting the mailing list.
To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html

Reply via email to