I think it is a good feature to get the script to delete old backups out of the backup.sh script.
To allow custom logics and future improvements, I bring it out to delete.sh.
Benefits:
it allows to develop and publish new deletion logics without changing the backup script
to implement a custom backup deletion logic, it needs only to change this file on container starts (mounting as a volume)
If I create a new intresting deletion logic in future, I will be very happy to publish here!
I think it is a good feature to get the script to delete old backups out of the backup.sh script. To allow custom logics and future improvements, I bring it out to delete.sh.
Benefits:
If I create a new intresting deletion logic in future, I will be very happy to publish here!