Anyone know why:
Would delete files from the destination that don't exist on the source (as it is supposed to), but:
There is nothing "funky" about the files (as far as I can tell) that don't get delete by the second command - in other words, they don't start with a "." or anything. For the record (not that it matters) the files that weren't removed from the destination after I deleted them from the source were:
postgrey_whitelist_recipients.rpmnew postgrey_whitelist_clients.rpmnew postgrey_whitelist_clients.local.rpmnew
From the man page:
As we can see, it expects you to pass the directory containing the files (/path/to/directory/) - not the files themselves (/path/to/directory/*).
answered 04 May '10, 04:28
--delete does not appear to take any arguments: it's just a switch!
However, using "/etc/postfix/*" on the shell (without the quotes) will get expanded (by the shell) to all files in /etc/postfix, therefore you're basically passing a list of existing source files (and not a directory to "compare").
You want to just pass the directory only.
answered 06 May '10, 17:10