Thank you for a really great script. I was a user of the original laurent22 script.
I am having problems with the behaviour of the script (was also the case with the bash one) when the drive fills up. I know i can manually delete old backups but I wanted to get the script working as intended. I am running this on (proxmox host) DEBIAN_VERSION_FULL=13.1 backing up to a USB drive (RAID 1)
I believe it is meant to start purging oldest backups to create space when it detects "No space left on device (28)" or "Result too large (34)" ?in the log.
Instead the screen output reports:
rsync-time-machine.py: [WARNING] Rsync reported a warning. Run this command for more details: grep -E 'rsync:|rsync error:' '/root/.rsync-time-backup/2025-10-12-212400.log')
and the last line of the log file is:
rsync: [sender] write error: Broken pipe (32)
if the script runs again then it ends quite quickly and screen output is:
rsync-time-machine.py: Backup completed without errors.
but it doesn't write a log file. I presume if this was running as cron then the user wouldn't know the backups were failing. It would I imagine be a mistake to replace the search string to detect broken pipe as there could be a number of causes of that and it would set about deleting the backups (?all in time).
I could see a number of similar issues on the laurent22 page but I couldn't see a solution. Before I start trying to investigate and find a solution I wondered if there was anything further known on this subject and if it is a general problem potentially affecting all users or maybe just some with certain setups?
many thanks.
Thank you for a really great script. I was a user of the original laurent22 script.
I am having problems with the behaviour of the script (was also the case with the bash one) when the drive fills up. I know i can manually delete old backups but I wanted to get the script working as intended. I am running this on (proxmox host) DEBIAN_VERSION_FULL=13.1 backing up to a USB drive (RAID 1)
I believe it is meant to start purging oldest backups to create space when it detects "No space left on device (28)" or "Result too large (34)" ?in the log.
Instead the screen output reports:
rsync-time-machine.py: [WARNING] Rsync reported a warning. Run this command for more details: grep -E 'rsync:|rsync error:' '/root/.rsync-time-backup/2025-10-12-212400.log')and the last line of the log file is:
rsync: [sender] write error: Broken pipe (32)if the script runs again then it ends quite quickly and screen output is:
rsync-time-machine.py: Backup completed without errors.but it doesn't write a log file. I presume if this was running as cron then the user wouldn't know the backups were failing. It would I imagine be a mistake to replace the search string to detect broken pipe as there could be a number of causes of that and it would set about deleting the backups (?all in time).
I could see a number of similar issues on the laurent22 page but I couldn't see a solution. Before I start trying to investigate and find a solution I wondered if there was anything further known on this subject and if it is a general problem potentially affecting all users or maybe just some with certain setups?
many thanks.