Hello, Here is my problem: A rsync daemon is started on serverA with the root user. Now if I try to sync serverA to serverB : rsync -nPru --delete serverA::test/temp/ /temp/ the behavior is just perfect and everything goes well. Now if I try to switch the server : rsync -nPru --delete /temp/* serverA::wwwroot/temp/ the delete option is not working (the files that are not on the sending server are not deleted) and I get no error messages, even with -vvv or when I set --ignore-errors --force options... Is this supposed to work at all ? Is it may be a permission problem ? Thanks, Xavier
On Thu, Jul 03, 2003 at 03:23:08PM +0100, Xavier wrote:> rsync -nPru --delete /temp/* serverA::wwwroot/temp/ > > the delete option is not workingThat's because you used a wildcard. The --delete option only affects directories, and you send a list of files. The above is equivalent to the following because the shell expands the wildcard: rsync -nPru --delete /temp/foo /temp/bar /temp/baz serverA::wwwroot/temp/ So, certainly no files in wwwroot/temp are going to be deleted. Use this instead: rsync -nPru --delete /temp/ serverA::wwwroot/temp/ ..wayne..