| 1 | <?php namespace Arcanesoft\Foundation\Services; |
||
| 14 | class Backups |
||
| 15 | { |
||
| 16 | /* ------------------------------------------------------------------------------------------------ |
||
| 17 | | Main Functions |
||
| 18 | | ------------------------------------------------------------------------------------------------ |
||
| 19 | */ |
||
| 20 | /** |
||
| 21 | * Get all the statuses. |
||
| 22 | * |
||
| 23 | * @return \Illuminate\Support\Collection |
||
| 24 | */ |
||
| 25 | public static function statuses() |
||
| 29 | |||
| 30 | /** |
||
| 31 | * Get a status by index. |
||
| 32 | * |
||
| 33 | * @param int $index |
||
| 34 | * |
||
| 35 | * @return \Spatie\Backup\Tasks\Monitor\BackupDestinationStatus|null |
||
| 36 | */ |
||
| 37 | public static function getStatus($index) |
||
| 41 | |||
| 42 | /** |
||
| 43 | * Run the backups. |
||
| 44 | * |
||
| 45 | * @param string|null $disk |
||
| 46 | * |
||
| 47 | * @return bool |
||
| 48 | */ |
||
| 49 | public static function runBackups($disk = null) |
||
| 66 | |||
| 67 | /** |
||
| 68 | * Clean the backups. |
||
| 69 | * |
||
| 70 | * @return bool |
||
| 71 | */ |
||
| 72 | public static function clearBackups() |
||
| 89 | } |
||
| 90 |