laurent22 / rsync-time-backup

Time Machine style backup with rsync.
3.36k stars 443 forks source link

Out of space issue #218

Open leonard-limon opened 4 years ago

leonard-limon commented 4 years ago

Hi, I have a problem with the script : I do backups from Mac OS X 10.13.6 to a Raspberry Pi server running Raspbian 10. The destination is an ext4 disk image. Whenever the disk image gets full, the script gets stuck and does not tell me anything or delete the oldest backup. I do not have the --no-auto-expire on. Any idea why the script does not automatically delete the oldest backup to make room for the new one? Regards.

beeconnected-au commented 6 months ago

I've had this sort of issue on Synology NAS drives. I believe the issue may be with line 81 of the script; find "$DEST_FOLDER/" -maxdepth 1 -type d -name \"????-??-??-??????\" -prune | sort -r

Essentially you need to remove the \ before the quote in the command it's executing; find "$DEST_FOLDER/" -maxdepth 1 -type d -name "????-??-??-??????" -prune | sort -r

If you ran the above command, and changed your destination folder obviously and it doesn't return anything with what's in the script, but it does when you remove the \ you may have your answer.

leonard-limon commented 5 months ago

Hello, thank you for your reply. I will try that workaround when I will be using the script again. Regards.