This started recently, I don't get it as this script is the same as any other script I use, but this one is the only one affected.
Basically if a folder in the source gets deleted, when the backup runs, it refuses to delete it from the destination despite the --delete or --delete-after or --delete-during flag (tried all 3).
I get the errors like this:
cannot delete non-empty directory: scripts/_custom/mobiles/events/valentinesday
cannot delete non-empty directory: scripts/_custom/mobiles/events/valentinesday
cannot delete non-empty directory: scripts/_custom/mobiles/events/thanksgiving
cannot delete non-empty directory: scripts/_custom/mobiles/events/thanksgiving
cannot delete non-empty directory: scripts/_custom/mobiles/events/misc
cannot delete non-empty directory: scripts/_custom/mobiles/events/misc
cannot delete non-empty directory: scripts/_custom/mobiles/events/christmas
cannot delete non-empty directory: scripts/_custom/mobiles/events/christmas
cannot delete non-empty directory: scripts/_custom/mobiles/events/Halloween Event/Halloween Items/Boss Rewards
cannot delete non-empty directory: scripts/_custom/mobiles/events/Halloween Event/Halloween Items/Boss Rewards
cannot delete non-empty directory: scripts/_custom/mobiles/events/Halloween Event/Halloween Items
cannot delete non-empty directory: scripts/_custom/mobiles/events/Halloween Event/Halloween Items
cannot delete non-empty directory: scripts/_custom/mobiles/events/Halloween Event
cannot delete non-empty directory: scripts/_custom/mobiles/events/Halloween Event
cannot delete non-empty directory: scripts/_custom/mobiles/events/Easter
cannot delete non-empty directory: scripts/_custom/mobiles/events/Easter
cannot delete non-empty directory: scripts/_custom/mobiles/events
The backup script looks like this:
sourcepath="/raid1/applications/remote/ravagerapplications/RunUO/aovalor_test/"
datefile=`date +%a`
pathname="/raid1/backups/servers/ravager/${datefile}_daily/"
mkdir -p ${pathname} > /dev/null
#mkdir -p ${pathname2} > /dev/null
#backup start
echo starting backup from ${sourcepath} to ${pathname}
rsync -rbuv --delete-during ${sourcepath}backups ${pathname}
rsync -rbuv --delete-during ${sourcepath}data ${pathname}
rsync -rbuv --delete-during ${sourcepath}scripts ${pathname}
rsync -rbuv --delete-during ${sourcepath}runuo_core ${pathname}
date > ${pathname}date.txt
The source folder is mounted via a mount.cifs mount. The destination is on a raid5 drive. This is run as root.
Basically if a folder in the source gets deleted, when the backup runs, it refuses to delete it from the destination despite the --delete or --delete-after or --delete-during flag (tried all 3).
I get the errors like this:
cannot delete non-empty directory: scripts/_custom/mobiles/events/valentinesday
cannot delete non-empty directory: scripts/_custom/mobiles/events/valentinesday
cannot delete non-empty directory: scripts/_custom/mobiles/events/thanksgiving
cannot delete non-empty directory: scripts/_custom/mobiles/events/thanksgiving
cannot delete non-empty directory: scripts/_custom/mobiles/events/misc
cannot delete non-empty directory: scripts/_custom/mobiles/events/misc
cannot delete non-empty directory: scripts/_custom/mobiles/events/christmas
cannot delete non-empty directory: scripts/_custom/mobiles/events/christmas
cannot delete non-empty directory: scripts/_custom/mobiles/events/Halloween Event/Halloween Items/Boss Rewards
cannot delete non-empty directory: scripts/_custom/mobiles/events/Halloween Event/Halloween Items/Boss Rewards
cannot delete non-empty directory: scripts/_custom/mobiles/events/Halloween Event/Halloween Items
cannot delete non-empty directory: scripts/_custom/mobiles/events/Halloween Event/Halloween Items
cannot delete non-empty directory: scripts/_custom/mobiles/events/Halloween Event
cannot delete non-empty directory: scripts/_custom/mobiles/events/Halloween Event
cannot delete non-empty directory: scripts/_custom/mobiles/events/Easter
cannot delete non-empty directory: scripts/_custom/mobiles/events/Easter
cannot delete non-empty directory: scripts/_custom/mobiles/events
The backup script looks like this:
sourcepath="/raid1/applications/remote/ravagerapplications/RunUO/aovalor_test/"
datefile=`date +%a`
pathname="/raid1/backups/servers/ravager/${datefile}_daily/"
mkdir -p ${pathname} > /dev/null
#mkdir -p ${pathname2} > /dev/null
#backup start
echo starting backup from ${sourcepath} to ${pathname}
rsync -rbuv --delete-during ${sourcepath}backups ${pathname}
rsync -rbuv --delete-during ${sourcepath}data ${pathname}
rsync -rbuv --delete-during ${sourcepath}scripts ${pathname}
rsync -rbuv --delete-during ${sourcepath}runuo_core ${pathname}
date > ${pathname}date.txt
The source folder is mounted via a mount.cifs mount. The destination is on a raid5 drive. This is run as root.