When the synclist file contains source directories (not only files) like this:
/etc/dir1/* -> /etc/dir1
removing a file from the source /etc/dir1/ directory and running updatenode -F or running the syncfiles postscript will not remove the file on the destination.
For instance:
src # ls /etc/dir1
foo bar
src # updatenode dst -F
src # ssh dst ls /etc/dir1
foo bar
src # rm /etc/dir1/bar
src # ls /etc/dir1
foo
src # updatenode dst -F
src # ssh dst ls /etc/dir1
foo bar
So removing a file from the source will not remove it from the destination, which could lead to issues when large directories are distributed to compute nodes.
Mmmh, this is actually the only way to support merging new files in existing directories. Removing the destination is obviously not the right choice here, so closing this as invalid.
When the synclist file contains source directories (not only files) like this:
removing a file from the source
/etc/dir1/
directory and runningupdatenode -F
or running thesyncfiles
postscript will not remove the file on the destination.For instance:
So removing a file from the source will not remove it from the destination, which could lead to issues when large directories are distributed to compute nodes.