How to avoid copying empty directories?

btang at pacific.jpl.nasa.gov btang at pacific.jpl.nasa.gov
Wed Nov 28 11:03:58 EST 2001


rsync -avu --include 'tmp1/*/*.c' --include "*/" --exclude "*" tmp1 tmp2

The above command copies all the empty directories under tmp1/ . Is there any way to avoid it?




More information about the rsync mailing list