On Fri, Jun 16, 2000 at 08:20:20AM +1000, Larry Chao wrote:
> I am having a problem with the delete option. I am trying to sync a bunch
> of webservers with a staging machine. All the machines are running on a
> Pentium machine using Linux Redhat and the server is using rsync version
> 2.4.1 The command I am using is
>
> rsync -vrRbpogez --delete --backup-dir=/u1/backup --rsh=/usr/local/bin/ssh2
> --progress
> --exclude-from=/usr/local/exclude.txt test@stage:push/ /usr/local
>
> The command will not delete files that does not exist on the staging
> machine and does exist on the webservers.
>
> thanks.
You don't give enough details. Can you give a simple example that someone
can use to reproduce the problem?
Are you getting any error messages? Normally deletes are disabled with
errors. An option was added I believe in 2.4.2 or 2.4.3 called
--ignore-errors to have deletes happen even when there are errors.
Are any of the files you expected to be deleted in your exclude.txt?
Normally rsync does not delete those unless you say --delete-excluded.
- Dave Dykstra