#! /bin/sh # see end of file for comment . ${tstdir-.}/lib.sh . ${tstdir-.}/conf.sh rm -rf dir1 dir2 dir3 # make the copy-from-here tree mkdir dir1 cd dir1 generate_tree_1 # make the tree we want to compare to mkdir ../dir2 cd ../dir2 generate_tree_1 rm foo/baz/three.txt cd .. # call -a without -l. # we expect no symlink to be in the target tree $rsync -Dgortp dir1/ dir3 compare_trees dir2 dir3