How to rsync only specified subdirectories in the source folder?
woo robbin
robbinwooo at gmail.com
Wed Nov 1 05:00:06 GMT 2006
Hi all,
For example,if there is ten subdirectories named sub1~sub10(each including
subdirectories and files too),and file1~file10,how can I rsync only sub2 and
sub 3 to the target?
/---- MyFolder
|---------- sub1
|---------- sub2
|---------- sub3
|---------- sub4
|---------- sub5
|---------- sub6
|---------- sub7
|---------- sub8
|---------- sub9
|---------- sub10
|---------- file1
|---------- file2
|---------- file3
|---------- file4
|---------- file5
|----------------------
rsync -av --delete --include "/sub2/" --include "/sub3/" /MyFolder/ /dest/
this seems to sync other directories and files too.
-------------- next part --------------
HTML attachment scrubbed and removed
More information about the rsync
mailing list