I need to copy directory structure from one place to another. I need to copy only folders and exclude files.
Main problem is that i have link-folders !
when I type
rsync -avz -H /tmp/test/ /tmp/copy/
it copy folders and links-folder properly, also it copy files
when I type
rsync -avz -H -f"+ */" -f"- *" /tmp/test/ /tmp/copy/
it include all folders, exclude files, but it also exclude link-folders.
when I type
rsync -avz -H -f"+ */" -f"- *.txt" /tmp/test/ /tmp/copy/
it create folders and link folders properly but exclude o nly txt files
when I type
rsync -vzrptgoD -L -H -f"+ */" -f"- *" /tmp/test/ /tmp/copy/
it exclude files but converts link-folders in real folder,just concatenate paths.
There are many types of file and i cant just add them like -f"- *.txt"
What should i do? can i add link-folder syntax in -f"+ */" ?
If not is there any other options?