rsync - dirs and symlinks only, not contents

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



Hi all,

I have a need to copy only dirs, subdirs and sym links only without the need to copy contents.

I originally used the following test to observe behavior;

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

So I noticed that dirs/subdirs were copied but without contents as desired.

I have several sym links (dir sym links) that I would also to to copy over.

I tried this;

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

Although my sym links show, they are broken.

Any thoughts on how to copy dirs, subdirs and sym links only w/o contents?

_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux