Skip to content

Commit 87ccabd

Browse files
committed
WIP
1 parent 3239776 commit 87ccabd

File tree

1 file changed

+43
-49
lines changed

1 file changed

+43
-49
lines changed

config/backup.php

+43-49
Original file line numberDiff line numberDiff line change
@@ -2,39 +2,39 @@
22

33
return [
44

5-
'backup' => [
5+
'backup' => [
66

77
/*
88
* The name of this application. You can use this name to monitor
99
* the backups.
1010
*/
1111
'name' => env('APP_NAME', 'laravel-backup'),
1212

13-
'source' => [
13+
'source' => [
1414

15-
'files' => [
15+
'files' => [
1616

1717
/*
1818
* The list of directories and files that will be included in the backup.
1919
*/
20-
'include' => [
21-
//base_path(),
20+
'include' => [
21+
// base_path(),
2222
],
2323

2424
/*
2525
* These directories and files will be excluded from the backup.
2626
*
2727
* Directories used by the backup process will automatically be excluded.
2828
*/
29-
'exclude' => [
29+
'exclude' => [
3030
base_path('vendor'),
3131
base_path('node_modules'),
3232
],
3333

3434
/*
3535
* Determines if symlinks should be followed.
3636
*/
37-
'follow_links' => false,
37+
'follow_links' => false,
3838

3939
/*
4040
* Determines if it should avoid unreadable folders.
@@ -46,7 +46,7 @@
4646
* Set to `null` to include complete absolute path
4747
* Example: base_path()
4848
*/
49-
'relative_path' => null,
49+
'relative_path' => null,
5050
],
5151

5252
/*
@@ -95,7 +95,7 @@
9595
*
9696
* If you do not want any compressor at all, set it to null.
9797
*/
98-
'database_dump_compressor' => null,
98+
'database_dump_compressor' => null,
9999

100100
/*
101101
* If specified, the database dumped file name will contain a timestamp (e.g.: 'Y-m-d-H-i-s').
@@ -108,9 +108,9 @@
108108
* If not specified, the file extension will be .archive for MongoDB and .sql for all other databases
109109
* The file extension should be specified without a leading .
110110
*/
111-
'database_dump_file_extension' => '',
111+
'database_dump_file_extension' => '',
112112

113-
'destination' => [
113+
'destination' => [
114114
/*
115115
* The compression algorithm to be used for creating the zip archive.
116116
*
@@ -135,17 +135,17 @@
135135
*
136136
* Setting of 0 for some algorithms may switch to the strongest compression.
137137
*/
138-
'compression_level' => 1,
138+
'compression_level' => 1,
139139

140140
/*
141141
* The filename prefix used for the backup zip file.
142142
*/
143-
'filename_prefix' => '',
143+
'filename_prefix' => '',
144144

145145
/*
146146
* The disk names on which the backups will be stored.
147147
*/
148-
'disks' => [
148+
'disks' => [
149149
'local',
150150
],
151151
],
@@ -159,7 +159,7 @@
159159
* The password to be used for archive encryption.
160160
* Set to `null` to disable encryption.
161161
*/
162-
'password' => env('BACKUP_ARCHIVE_PASSWORD'),
162+
'password' => env('BACKUP_ARCHIVE_PASSWORD'),
163163

164164
/*
165165
* The encryption algorithm to be used for archive encryption.
@@ -168,18 +168,18 @@
168168
* When set to 'default', we'll use ZipArchive::EM_AES_256 if it is
169169
* available on your system.
170170
*/
171-
'encryption' => 'default',
171+
'encryption' => 'default',
172172

173173
/**
174174
* The number of attempts, in case the backup command encounters an exception
175175
*/
176-
'tries' => 1,
176+
'tries' => 1,
177177

178178
/**
179179
* The number of seconds to wait before attempting a new backup if the previous try failed
180180
* Set to `0` for none
181181
*/
182-
'retry_delay' => 0,
182+
'retry_delay' => 0,
183183
],
184184

185185
/*
@@ -189,22 +189,22 @@
189189
* You can also use your own notification classes, just make sure the class is named after one of
190190
* the `Spatie\Backup\Notifications\Notifications` classes.
191191
*/
192-
'notifications' => [
192+
'notifications' => [
193193

194194
'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'],
201201
],
202202

203203
/*
204204
* Here you can specify the notifiable to which the notifications should be sent. The default
205205
* notifiable will use the variables specified in this config file.
206206
*/
207-
'notifiable' => \Spatie\Backup\Notifications\Notifiable::class,
207+
'notifiable' => \Spatie\Backup\Notifications\Notifiable::class,
208208

209209
'mail' => null,
210210

@@ -214,7 +214,7 @@
214214
/*
215215
* If this is set to null the default channel of the webhook will be used.
216216
*/
217-
'channel' => null,
217+
'channel' => null,
218218

219219
'username' => null,
220220

@@ -228,12 +228,12 @@
228228
/*
229229
* If this is an empty string, the name field on the webhook will be used.
230230
*/
231-
'username' => '',
231+
'username' => '',
232232

233233
/*
234234
* If this is an empty string, the avatar on the webhook will be used.
235235
*/
236-
'avatar_url' => '',
236+
'avatar_url' => '',
237237
],
238238
],
239239

@@ -244,10 +244,10 @@
244244
*/
245245
'monitor_backups' => [
246246
[
247-
'name' => env('APP_NAME', 'laravel-backup'),
248-
'disks' => ['local'],
247+
'name' => env('APP_NAME', 'laravel-backup'),
248+
'disks' => ['local'],
249249
'health_checks' => [
250-
\Spatie\Backup\Tasks\Monitor\HealthChecks\MaximumAgeInDays::class => 1,
250+
\Spatie\Backup\Tasks\Monitor\HealthChecks\MaximumAgeInDays::class => 1,
251251
\Spatie\Backup\Tasks\Monitor\HealthChecks\MaximumStorageInMegabytes::class => 5000,
252252
],
253253
],
@@ -281,33 +281,27 @@
281281
/*
282282
* The number of days for which backups must be kept.
283283
*/
284-
'keep_all_backups_for_days' => 7,
284+
'keep_all_backups_for_days' => 3,
285285

286286
/*
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.
290288
*/
291-
'keep_daily_backups_for_days' => 16,
289+
'keep_daily_backups_for_days' => 3,
292290

293291
/*
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.
297293
*/
298-
'keep_weekly_backups_for_weeks' => 8,
294+
'keep_weekly_backups_for_weeks' => 0,
299295

300296
/*
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.
303298
*/
304-
'keep_monthly_backups_for_months' => 4,
299+
'keep_monthly_backups_for_months' => 0,
305300

306301
/*
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.
309303
*/
310-
'keep_yearly_backups_for_years' => 2,
304+
'keep_yearly_backups_for_years' => 0,
311305

312306
/*
313307
* After cleaning up the backups remove the oldest backup until
@@ -319,13 +313,13 @@
319313
/**
320314
* The number of attempts, in case the cleanup command encounters an exception
321315
*/
322-
'tries' => 1,
316+
'tries' => 1,
323317

324318
/**
325319
* The number of seconds to wait before attempting a new cleanup if the previous try failed
326320
* Set to `0` for none
327321
*/
328-
'retry_delay' => 0,
322+
'retry_delay' => 0,
329323
],
330324

331325
];

0 commit comments

Comments
 (0)