|
2 | 2 |
|
3 | 3 | return [
|
4 | 4 |
|
5 |
| - 'backup' => [ |
| 5 | + 'backup' => [ |
6 | 6 |
|
7 | 7 | /*
|
8 | 8 | * The name of this application. You can use this name to monitor
|
9 | 9 | * the backups.
|
10 | 10 | */
|
11 | 11 | 'name' => env('APP_NAME', 'laravel-backup'),
|
12 | 12 |
|
13 |
| - 'source' => [ |
| 13 | + 'source' => [ |
14 | 14 |
|
15 |
| - 'files' => [ |
| 15 | + 'files' => [ |
16 | 16 |
|
17 | 17 | /*
|
18 | 18 | * The list of directories and files that will be included in the backup.
|
19 | 19 | */
|
20 |
| - 'include' => [ |
21 |
| - //base_path(), |
| 20 | + 'include' => [ |
| 21 | + // base_path(), |
22 | 22 | ],
|
23 | 23 |
|
24 | 24 | /*
|
25 | 25 | * These directories and files will be excluded from the backup.
|
26 | 26 | *
|
27 | 27 | * Directories used by the backup process will automatically be excluded.
|
28 | 28 | */
|
29 |
| - 'exclude' => [ |
| 29 | + 'exclude' => [ |
30 | 30 | base_path('vendor'),
|
31 | 31 | base_path('node_modules'),
|
32 | 32 | ],
|
33 | 33 |
|
34 | 34 | /*
|
35 | 35 | * Determines if symlinks should be followed.
|
36 | 36 | */
|
37 |
| - 'follow_links' => false, |
| 37 | + 'follow_links' => false, |
38 | 38 |
|
39 | 39 | /*
|
40 | 40 | * Determines if it should avoid unreadable folders.
|
|
46 | 46 | * Set to `null` to include complete absolute path
|
47 | 47 | * Example: base_path()
|
48 | 48 | */
|
49 |
| - 'relative_path' => null, |
| 49 | + 'relative_path' => null, |
50 | 50 | ],
|
51 | 51 |
|
52 | 52 | /*
|
|
95 | 95 | *
|
96 | 96 | * If you do not want any compressor at all, set it to null.
|
97 | 97 | */
|
98 |
| - 'database_dump_compressor' => null, |
| 98 | + 'database_dump_compressor' => null, |
99 | 99 |
|
100 | 100 | /*
|
101 | 101 | * If specified, the database dumped file name will contain a timestamp (e.g.: 'Y-m-d-H-i-s').
|
|
108 | 108 | * If not specified, the file extension will be .archive for MongoDB and .sql for all other databases
|
109 | 109 | * The file extension should be specified without a leading .
|
110 | 110 | */
|
111 |
| - 'database_dump_file_extension' => '', |
| 111 | + 'database_dump_file_extension' => '', |
112 | 112 |
|
113 |
| - 'destination' => [ |
| 113 | + 'destination' => [ |
114 | 114 | /*
|
115 | 115 | * The compression algorithm to be used for creating the zip archive.
|
116 | 116 | *
|
|
135 | 135 | *
|
136 | 136 | * Setting of 0 for some algorithms may switch to the strongest compression.
|
137 | 137 | */
|
138 |
| - 'compression_level' => 1, |
| 138 | + 'compression_level' => 1, |
139 | 139 |
|
140 | 140 | /*
|
141 | 141 | * The filename prefix used for the backup zip file.
|
142 | 142 | */
|
143 |
| - 'filename_prefix' => '', |
| 143 | + 'filename_prefix' => '', |
144 | 144 |
|
145 | 145 | /*
|
146 | 146 | * The disk names on which the backups will be stored.
|
147 | 147 | */
|
148 |
| - 'disks' => [ |
| 148 | + 'disks' => [ |
149 | 149 | 'local',
|
150 | 150 | ],
|
151 | 151 | ],
|
|
159 | 159 | * The password to be used for archive encryption.
|
160 | 160 | * Set to `null` to disable encryption.
|
161 | 161 | */
|
162 |
| - 'password' => env('BACKUP_ARCHIVE_PASSWORD'), |
| 162 | + 'password' => env('BACKUP_ARCHIVE_PASSWORD'), |
163 | 163 |
|
164 | 164 | /*
|
165 | 165 | * The encryption algorithm to be used for archive encryption.
|
|
168 | 168 | * When set to 'default', we'll use ZipArchive::EM_AES_256 if it is
|
169 | 169 | * available on your system.
|
170 | 170 | */
|
171 |
| - 'encryption' => 'default', |
| 171 | + 'encryption' => 'default', |
172 | 172 |
|
173 | 173 | /**
|
174 | 174 | * The number of attempts, in case the backup command encounters an exception
|
175 | 175 | */
|
176 |
| - 'tries' => 1, |
| 176 | + 'tries' => 1, |
177 | 177 |
|
178 | 178 | /**
|
179 | 179 | * The number of seconds to wait before attempting a new backup if the previous try failed
|
180 | 180 | * Set to `0` for none
|
181 | 181 | */
|
182 |
| - 'retry_delay' => 0, |
| 182 | + 'retry_delay' => 0, |
183 | 183 | ],
|
184 | 184 |
|
185 | 185 | /*
|
|
189 | 189 | * You can also use your own notification classes, just make sure the class is named after one of
|
190 | 190 | * the `Spatie\Backup\Notifications\Notifications` classes.
|
191 | 191 | */
|
192 |
| - 'notifications' => [ |
| 192 | + 'notifications' => [ |
193 | 193 |
|
194 | 194 | 'notifications' => [
|
195 |
| - // \Spatie\Backup\Notifications\Notifications\BackupHasFailedNotification::class => ['mail'], |
196 |
| - // \Spatie\Backup\Notifications\Notifications\UnhealthyBackupWasFoundNotification::class => ['mail'], |
197 |
| - // \Spatie\Backup\Notifications\Notifications\CleanupHasFailedNotification::class => ['mail'], |
198 |
| - //\Spatie\Backup\Notifications\Notifications\BackupWasSuccessfulNotification::class => ['mail'], |
199 |
| - //\Spatie\Backup\Notifications\Notifications\HealthyBackupWasFoundNotification::class => ['mail'], |
200 |
| - //\Spatie\Backup\Notifications\Notifications\CleanupWasSuccessfulNotification::class => ['mail'], |
| 195 | + // \Spatie\Backup\Notifications\Notifications\BackupHasFailedNotification::class => ['mail'], |
| 196 | + // \Spatie\Backup\Notifications\Notifications\UnhealthyBackupWasFoundNotification::class => ['mail'], |
| 197 | + // \Spatie\Backup\Notifications\Notifications\CleanupHasFailedNotification::class => ['mail'], |
| 198 | + // \Spatie\Backup\Notifications\Notifications\BackupWasSuccessfulNotification::class => ['mail'], |
| 199 | + // \Spatie\Backup\Notifications\Notifications\HealthyBackupWasFoundNotification::class => ['mail'], |
| 200 | + // \Spatie\Backup\Notifications\Notifications\CleanupWasSuccessfulNotification::class => ['mail'], |
201 | 201 | ],
|
202 | 202 |
|
203 | 203 | /*
|
204 | 204 | * Here you can specify the notifiable to which the notifications should be sent. The default
|
205 | 205 | * notifiable will use the variables specified in this config file.
|
206 | 206 | */
|
207 |
| - 'notifiable' => \Spatie\Backup\Notifications\Notifiable::class, |
| 207 | + 'notifiable' => \Spatie\Backup\Notifications\Notifiable::class, |
208 | 208 |
|
209 | 209 | 'mail' => null,
|
210 | 210 |
|
|
214 | 214 | /*
|
215 | 215 | * If this is set to null the default channel of the webhook will be used.
|
216 | 216 | */
|
217 |
| - 'channel' => null, |
| 217 | + 'channel' => null, |
218 | 218 |
|
219 | 219 | 'username' => null,
|
220 | 220 |
|
|
228 | 228 | /*
|
229 | 229 | * If this is an empty string, the name field on the webhook will be used.
|
230 | 230 | */
|
231 |
| - 'username' => '', |
| 231 | + 'username' => '', |
232 | 232 |
|
233 | 233 | /*
|
234 | 234 | * If this is an empty string, the avatar on the webhook will be used.
|
235 | 235 | */
|
236 |
| - 'avatar_url' => '', |
| 236 | + 'avatar_url' => '', |
237 | 237 | ],
|
238 | 238 | ],
|
239 | 239 |
|
|
244 | 244 | */
|
245 | 245 | 'monitor_backups' => [
|
246 | 246 | [
|
247 |
| - 'name' => env('APP_NAME', 'laravel-backup'), |
248 |
| - 'disks' => ['local'], |
| 247 | + 'name' => env('APP_NAME', 'laravel-backup'), |
| 248 | + 'disks' => ['local'], |
249 | 249 | 'health_checks' => [
|
250 |
| - \Spatie\Backup\Tasks\Monitor\HealthChecks\MaximumAgeInDays::class => 1, |
| 250 | + \Spatie\Backup\Tasks\Monitor\HealthChecks\MaximumAgeInDays::class => 1, |
251 | 251 | \Spatie\Backup\Tasks\Monitor\HealthChecks\MaximumStorageInMegabytes::class => 5000,
|
252 | 252 | ],
|
253 | 253 | ],
|
|
281 | 281 | /*
|
282 | 282 | * The number of days for which backups must be kept.
|
283 | 283 | */
|
284 |
| - 'keep_all_backups_for_days' => 7, |
| 284 | + 'keep_all_backups_for_days' => 3, |
285 | 285 |
|
286 | 286 | /*
|
287 |
| - * After the "keep_all_backups_for_days" period is over, the most recent backup |
288 |
| - * of that day will be kept. Older backups within the same day will be removed. |
289 |
| - * If you create backups only once a day, no backups will be removed yet. |
| 287 | + * The number of days for which daily backups must be kept. |
290 | 288 | */
|
291 |
| - 'keep_daily_backups_for_days' => 16, |
| 289 | + 'keep_daily_backups_for_days' => 3, |
292 | 290 |
|
293 | 291 | /*
|
294 |
| - * After the "keep_daily_backups_for_days" period is over, the most recent backup |
295 |
| - * of that week will be kept. Older backups within the same week will be removed. |
296 |
| - * If you create backups only once a week, no backups will be removed yet. |
| 292 | + * The number of weeks for which one weekly backup must be kept. |
297 | 293 | */
|
298 |
| - 'keep_weekly_backups_for_weeks' => 8, |
| 294 | + 'keep_weekly_backups_for_weeks' => 0, |
299 | 295 |
|
300 | 296 | /*
|
301 |
| - * After the "keep_weekly_backups_for_weeks" period is over, the most recent backup |
302 |
| - * of that month will be kept. Older backups within the same month will be removed. |
| 297 | + * The number of months for which one monthly backup must be kept. |
303 | 298 | */
|
304 |
| - 'keep_monthly_backups_for_months' => 4, |
| 299 | + 'keep_monthly_backups_for_months' => 0, |
305 | 300 |
|
306 | 301 | /*
|
307 |
| - * After the "keep_monthly_backups_for_months" period is over, the most recent backup |
308 |
| - * of that year will be kept. Older backups within the same year will be removed. |
| 302 | + * The number of years for which one yearly backup must be kept. |
309 | 303 | */
|
310 |
| - 'keep_yearly_backups_for_years' => 2, |
| 304 | + 'keep_yearly_backups_for_years' => 0, |
311 | 305 |
|
312 | 306 | /*
|
313 | 307 | * After cleaning up the backups remove the oldest backup until
|
|
319 | 313 | /**
|
320 | 314 | * The number of attempts, in case the cleanup command encounters an exception
|
321 | 315 | */
|
322 |
| - 'tries' => 1, |
| 316 | + 'tries' => 1, |
323 | 317 |
|
324 | 318 | /**
|
325 | 319 | * The number of seconds to wait before attempting a new cleanup if the previous try failed
|
326 | 320 | * Set to `0` for none
|
327 | 321 | */
|
328 |
| - 'retry_delay' => 0, |
| 322 | + 'retry_delay' => 0, |
329 | 323 | ],
|
330 | 324 |
|
331 | 325 | ];
|
0 commit comments