--delete doesn't work when transferring many files
Granzow, Doug (NCI)
granzowd at mail.nih.gov
Wed Jul 24 12:08:01 EST 2002
Is it possible that the destination directory is filling up? I believe
rsync saves deletes until the end, so that it knows there are no IO error
conditions that would cause it to exit without deleting. Filling up the
destination filesystem is probably one of those error conditions. Another
possibility would be permissions problems on the destination preventing
rsync from writing to the target directory.
Try adding another v to your command line ("-rtvv") to get more verbosity;
rsync may tell you why it is skipping the deletes.
You could add --ignore-errors to force the --delete, but I would recommend
finding the cause of the problem first.
From: William R. Dickson [mailto:wrd at awenet.com]
Sent: Tuesday, July 23, 2002 9:30 PM
To: rsync at lists.samba.org
Subject: --delete doesn't work when transferring many files
This is a curious thing. I'm syncing two directories, containing some 250
subdirectories totalling around 11,000 files. This:
rsync --password-file=/usr/local/etc/rsync/.passwd --delete -rtv
username at destserver.com::modulename
...works fine if both directories are already nearly in sync. Deleting a
few files from the source causes matching deletions on the destination. But
recently I made major changes to the source directory, which should have
resulted in nearly everything being deleted from the destination server.
However, it doesn't -- it simply starts uploading files.
If I change "-rtv" to "-rtvn", rsync correctly reports a whole slew of
planned deletions -- but as soon as I try to run it for real, it simply
fails to do the actual deleting.
If it helps at all, the source system is a NetBSD/MacPPC machine, and the
destination is a FreeBSD/i386 machine.
Any ideas? I searched the list archives and google, but was unable to find
any similar issues.
William R. Dickson -- Consuming the Earth's limited resources since 1968
wrd at awenet.com http://www.seavoy-dickson.org/
But I'm the luckiest guy on the lower east side
'Cuz I've got wheels, and you wanna go for a ride
- The Magnetic Fields
To unsubscribe or change options:
Before posting, read: http://www.tuxedo.org/~esr/faqs/smart-questions.html
More information about the rsync