4

how to rsync or tar directory trees, with hidden directory, but without files

view full story
linux-howto

http://www.unix.com – I want to backup all the directory tress, including hidden directories, without copying any files. find . -type d gives the perfect list. When I tried tar, it won't work for me. Quote: find . -type d | xargs tar -cvf a.tar So i tried rsync. On my own test box, the following works. Quote: $ rsync -a -f"+ */" -f"- *" source/ destination/ unfortunately, the server I want to do the backup has an older version of rsync (version 2.5.5 protocol version 26), so the command above somehow does not work: Quot (HowTos)