|
3 | 3 | return [
|
4 | 4 |
|
5 | 5 | 'backup' => [
|
6 |
| - |
7 | 6 | /*
|
8 | 7 | * The name of this application. You can use this name to monitor
|
9 | 8 | * the backups.
|
10 | 9 | */
|
11 | 10 | 'name' => env('APP_NAME', 'laravel-backup'),
|
12 | 11 |
|
13 | 12 | 'source' => [
|
14 |
| - |
15 | 13 | 'files' => [
|
16 |
| - |
17 | 14 | /*
|
18 | 15 | * The list of directories and files that will be included in the backup.
|
19 | 16 | */
|
|
102 | 99 | */
|
103 | 100 | 'database_dump_file_timestamp_format' => null,
|
104 | 101 |
|
| 102 | + /* |
| 103 | + * The base of the dump filename, either 'database' or 'connection' |
| 104 | + * |
| 105 | + * If 'database' (default), the dumped filename will contain the database name. |
| 106 | + * If 'connection', the dumped filename will contain the connection name. |
| 107 | + */ |
| 108 | + 'database_dump_filename_base' => 'database', |
| 109 | + |
105 | 110 | /*
|
106 | 111 | * The file extension used for the database dump files.
|
107 | 112 | *
|
|
170 | 175 | */
|
171 | 176 | 'encryption' => 'default',
|
172 | 177 |
|
173 |
| - /** |
| 178 | + /* |
174 | 179 | * The number of attempts, in case the backup command encounters an exception
|
175 | 180 | */
|
176 | 181 | 'tries' => 1,
|
177 | 182 |
|
178 |
| - /** |
| 183 | + /* |
179 | 184 | * The number of seconds to wait before attempting a new backup if the previous try failed
|
180 | 185 | * Set to `0` for none
|
181 | 186 | */
|
|
190 | 195 | * the `Spatie\Backup\Notifications\Notifications` classes.
|
191 | 196 | */
|
192 | 197 | 'notifications' => [
|
193 |
| - |
194 | 198 | 'notifications' => [
|
195 | 199 | \Spatie\Backup\Notifications\Notifications\BackupHasFailedNotification::class => ['mail'],
|
196 | 200 | \Spatie\Backup\Notifications\Notifications\UnhealthyBackupWasFoundNotification::class => ['mail'],
|
|
226 | 230 | 'username' => null,
|
227 | 231 |
|
228 | 232 | 'icon' => null,
|
229 |
| - |
230 | 233 | ],
|
231 | 234 |
|
232 | 235 | 'discord' => [
|
|
284 | 287 | 'strategy' => \Spatie\Backup\Tasks\Cleanup\Strategies\DefaultStrategy::class,
|
285 | 288 |
|
286 | 289 | 'default_strategy' => [
|
287 |
| - |
288 | 290 | /*
|
289 | 291 | * The number of days for which backups must be kept.
|
290 | 292 | */
|
|
319 | 321 | /*
|
320 | 322 | * After cleaning up the backups remove the oldest backup until
|
321 | 323 | * this amount of megabytes has been reached.
|
| 324 | + * Set null for unlimited size. |
322 | 325 | */
|
323 | 326 | 'delete_oldest_backups_when_using_more_megabytes_than' => 5000,
|
324 | 327 | ],
|
325 | 328 |
|
326 |
| - /** |
| 329 | + /* |
327 | 330 | * The number of attempts, in case the cleanup command encounters an exception
|
328 | 331 | */
|
329 | 332 | 'tries' => 1,
|
330 | 333 |
|
331 |
| - /** |
| 334 | + /* |
332 | 335 | * The number of seconds to wait before attempting a new cleanup if the previous try failed
|
333 | 336 | * Set to `0` for none
|
334 | 337 | */
|
|
0 commit comments