Hi, wondering if someone can help. I have googled for this and scoured the man page, but have got no further. I am running rsync 2.6.6 on windows and am finding it doesn't delete files from the target. For example my batch file has: rsync -av --delete /cygdrive/G/SAN_ARRAY/XPP_Data/alljobz/ /cygdrive/z/alljobz/ This copies everything over nicely, but doesn't delete files or folders from the target that have been deleted on the source. But, if I drill down the directory structure further: rsync -av --delete /cygdrive/G/SAN_ARRAY/XPP_Data/alljobz/test/alljobz/CLS_PaulTest/GRP_Jor dansFamily/ /cygdrive/z/alljobz/test/alljobz/CLS_PaulTest/GRP_JordansFamily/ Then rsync will delete sub folders from the GRP_JordansFamily/ directory as I would expect. Where am I going wrong and which blindingly obvious instruction have I missed. Thank you, Hedley Phillips
I managed to solve this in the end. It was file permissions. I had originally copied all the data across by restoring from Backup tape and then started using Rsync to keep the two identical. After deleting the directories in question and rsyncing them from scratch, the problem has been solved. Thanks, Hedley Phillips ---------------- Letterpart Ltd Email Notice ------------------- This email and any files transmitted with it are confidential and may also be privileged. They are intended solely for the use of the individual or entity to whom they are addressed. If you are not the intended recipient please notify Letterpart Ltd immediately by return email or by calling 01737 223329. You should not copy this email or use it for any purpose nor disclose its contents to any other person. Although this email and any attachments are believed to be free of any virus, or any other defect, which might affect any computer or IT system into which they are received and opened, it is the responsibility of the recipient to ensure that they are virus free and no responsibility is accepted by Letterpart Ltd for any loss or damage arising in any way from receipt or use thereof. ##Email Scanned by Trend Micro## Registered in England no 2607162 Registered Office as above ------------End of Letterpart Ltd Email Notice ----------------- 12/4/2007