Displaying 1 result from an estimated 1 matches for "arlpogt".
Did you mean:
arlpogtb
2006 Jan 18
7
DO NOT REPLY [Bug 3422] New: dry run fails when encountering dangling symbolic link
...once in a while somebody replaces a symbolic link
with the contents of the file. In this case, I find that dry-run will
report errors while rsync without -n flag works fine.
A test case can be generated like this:
mkdir old
cd old
mkdir data
ln -s data link
cd ..
mkdir new
mkdir new/link
rsync -n -arlpogt --delete new/ old/
The rsync output will be:
building file list ... done
deleting data/
deleting link
link/
Now when we delete data before, rsync fails:
rmdir old/data
rsync -n -arlpogt --delete new/ old/
building file list ... done
deleting link
rsync: opendir "/data1/ppe/tmp/old/link"...