Skip to content

Commit

Permalink
Merge pull request #1548 from HDInnovations/Backup-Manager
Browse files Browse the repository at this point in the history
(Fix) Backup Manager
  • Loading branch information
HDVinnie authored Dec 31, 2020
2 parents 1881470 + f53ba8f commit a9ef6fb
Showing 1 changed file with 38 additions and 17 deletions.
55 changes: 38 additions & 17 deletions config/backup.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
* The name of this application. You can use this name to monitor
* the backups.
*/
'name' => env('APP_NAME', 'UNIT3D'),
'name' => 'UNIT3D',

'source' => [

Expand All @@ -46,14 +46,25 @@
*/
'exclude' => [
base_path('vendor'),
storage_path(),
base_path('node_modules'),
],

/*
* Determines if symlinks should be followed.
*/
'follow_links' => false,

/*
* Determines if it should avoid unreadable folders.
*/
'ignore_unreadable_directories' => false,

/*
* This path is used to make directories in resulting zip-file relative
* Set to `null` to include complete absolute path
* Example: base_path()
*/
'relative_path' => null,
],

/*
Expand All @@ -70,7 +81,18 @@
* 'table_to_exclude_from_backup',
* 'another_table_to_exclude'
* ]
* ]
* ],
* ],
*
* If you are using only InnoDB tables on a MySQL server, you can
* also supply the useSingleTransaction option to avoid table locking.
*
* E.g.
* 'mysql' => [
* ...
* 'dump' => [
* 'useSingleTransaction' => true,
* ],
* ],
*
* For a complete list of available customization options, see https://github.com/spatie/db-dumper
Expand Down Expand Up @@ -116,20 +138,20 @@

/*
* You can get notified when specific events occur. Out of the box you can use 'mail' and 'slack'.
* For Slack you need to install guzzlehttp/guzzle and laravel/slack-notification-channel.
* For Slack you need to install laravel/slack-notification-channel.
*
* You can also use your own notification classes, just make sure the class is named after one of
* the `Spatie\Backup\Events` classes.
*/
'notifications' => [

'notifications' => [
\Spatie\Backup\Notifications\Notifications\BackupHasFailed::class => ['mail'],
\Spatie\Backup\Notifications\Notifications\UnhealthyBackupWasFound::class => ['mail'],
\Spatie\Backup\Notifications\Notifications\CleanupHasFailed::class => ['mail'],
\Spatie\Backup\Notifications\Notifications\BackupWasSuccessful::class => ['mail'],
\Spatie\Backup\Notifications\Notifications\HealthyBackupWasFound::class => ['mail'],
\Spatie\Backup\Notifications\Notifications\CleanupWasSuccessful::class => ['mail'],
\Spatie\Backup\Notifications\Notifications\BackupHasFailedNotification::class => ['mail'],
\Spatie\Backup\Notifications\Notifications\UnhealthyBackupWasFoundNotification::class => ['mail'],
\Spatie\Backup\Notifications\Notifications\CleanupHasFailedNotification::class => ['mail'],
\Spatie\Backup\Notifications\Notifications\BackupWasSuccessfulNotification::class => ['mail'],
\Spatie\Backup\Notifications\Notifications\HealthyBackupWasFoundNotification::class => ['mail'],
\Spatie\Backup\Notifications\Notifications\CleanupWasSuccessfulNotification::class => ['mail'],
],

/*
Expand All @@ -140,6 +162,11 @@

'mail' => [
'to' => env('DEFAULT_OWNER_EMAIL'),

'from' => [
'address' => env('MAIL_FROM_ADDRESS'),
'name' => env('MAIL_FROM_NAME'),
],
],

'slack' => [
Expand All @@ -164,7 +191,7 @@
*/
'monitor_backups' => [
[
'name' => env('APP_NAME', 'UNIT3D'),
'name' => 'UNIT3D',
'disks' => ['backups'],
'health_checks' => [
\Spatie\Backup\Tasks\Monitor\HealthChecks\MaximumAgeInDays::class => 1,
Expand Down Expand Up @@ -234,12 +261,6 @@
'security' => [
'password' => env('APP_KEY'),
'encryption' => \App\Helpers\BackupEncryption::ENCRYPTION_DEFAULT,

// Available encryption methods:
// \App\Helpers\BackupEncryption::ENCRYPTION_DEFAULT (AES 128)
// \App\Helpers\BackupEncryption::ENCRYPTION_WINZIP_AES_128 (AES 128)
// \App\Helpers\BackupEncryption::ENCRYPTION_WINZIP_AES_192 (AES 192)
// \App\Helpers\BackupEncryption::ENCRYPTION_WINZIP_AES_256 (AES 256)
],

];

0 comments on commit a9ef6fb

Please sign in to comment.