spatie/laravel-backup-server
Receive, store, and manage encrypted backups from multiple Laravel apps on a dedicated backup server. Built on top of spatie/laravel-backup, it centralizes backup uploads, retention, and monitoring for safer off-site storage.
As part of the cleanup process, old backups will be deleted. But how does the package determine whether a backup is "old".
This package provides an opinionated method to determine which old backups should be deleted. We call this the DefaultStrategy. This is how it works.
keep_all_backups_for_dayskeep_daily_backups_for_days for all backups older than those covered by rule #2keep_weekly_backups_for_weeks for all backups older than those covered by rule #3keep_monthly_backups_for_months for all backups older than those covered by rule #4keep_yearly_backups_for_years for all backups older than those covered by rule #5delete_oldest_backups_when_using_more_megabytes_than.Those keep-* and delete_oldest_backups_when_using_more_megabytes_than attributes are present on the source and on the destination of backup and in the cleanup.default_strategy key of the backup-server config file.
First, cleanup process will try if the attribute is filled on the source, if not, it will look on the destination. When it's not filled in the destination it will use the value in the config file.
How can I help you explore Laravel packages today?