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.
Over time the number of backups and the storage required to store them will grow. At some point you will want to clean up backups.
To clean up all backups this artisan command can be performed:
php artisan backup-server:cleanup
As mentioned in the installation instructions, we recommend scheduling this command to run daily.
First, for each separate source, a clean up job to clean up the source will be dispatched. After that, for each separate destination, a clean up job to clean up the destination will be dispatched.
These steps will be performed when cleaning up a source
Backup models that do not have a directory on the filesystem will be deleted.real_size_in_kb on each Backup.You can increase the default timeout for this calculation with the backup_collection_size_calculation_timeout_in_seconds value in the config file. This may be necessary for large backups, especially if you're backing up to a cloud volume.
The package will delete any directory on the destination that does not belong to one of the backups on it.
When you no longer need to support a source and want to remove all backups, the cleanup command will take care of it.
You can remove the source record in the backup_server_sources table and execute the cleanup job.
How can I help you explore Laravel packages today?