Primo Committ

This commit is contained in:
paoloar77
2024-05-07 12:17:25 +02:00
commit e73d0e5113
7204 changed files with 884387 additions and 0 deletions

View File

@@ -0,0 +1,26 @@
---
title: Events
weight: 2
---
These events are fired during the cleanup process.
## CleanupWasSuccessful
`Spatie\Backup\Events\CleanupWasSuccessful`
This event is fired when old backups are successfully removed from a destination filesystem.
It has one public property `$backupDestination` that contains an instance of `Spatie\Backup\BackupDestination\BackupDestination`.
## CleanupHasFailed
`Spatie\Backup\Events\CleanupHasFailed`
This event is fired when something goes wrong while cleaning up.
It has two public properties:
- `$exception`: an object that conforms to the `Exception` interface. It is highly likely that `$exception->getMessage()` will return more information on what went wrong.
- `$backupDestination`: if this is `null` then something probably went wrong before even connecting to one of the backup destinations. If it is an instance of `Spatie\Backup\BackupDestination\BackupDestination` something went wrong when trying to connect or
write to that destination.