snipe-it/config/laravel-backup.php

192 lines
5.6 KiB
PHP
Raw Normal View History

2016-03-25 01:18:05 -07:00
<?php
/*
|--------------------------------------------------------------------------
| DO NOT EDIT THIS FILE DIRECTLY.
|--------------------------------------------------------------------------
| This file reads from your .env configuration file and should not
| be modified directly.
*/
2016-03-25 01:18:05 -07:00
return [
'backup' => [
2016-03-25 01:18:05 -07:00
/*
* The name of this application. You can use this name to monitor
* the backups.
*/
'name' => 'backups',
'source' => [
'files' => [
/*
* The list of directories that should be part of the backup. You can
* specify individual files as well.
*/
'include' => [
base_path('public/uploads'),
base_path('config'),
base_path('storage/private_uploads'),
2017-09-25 15:45:33 -07:00
base_path('storage/oauth-private.key'),
base_path('storage/oauth-public.key'),
(env('BACKUP_ENV')=='true') ? base_path('.env') : '',
],
/*
* These directories will be excluded from the backup.
* You can specify individual files as well.
*/
'exclude' => [
// base_path('vendor'),
// base_path('node_modules'),
],
/*
* Determines if symlinks should be followed.
*/
'followLinks' => false,
],
2016-03-25 01:18:05 -07:00
/*
* The names of the connections to the databases that should be part of the backup.
* Currently only MySQL- and PostgreSQL-databases are supported.
2016-03-25 01:18:05 -07:00
*/
'databases' => [
'mysql',
2016-03-25 01:18:05 -07:00
],
],
'destination' => [
2016-03-25 01:18:05 -07:00
/*
* The disk names on which the backups will be stored.
2016-03-25 01:18:05 -07:00
*/
'disks' => [
'local',
2016-03-25 01:18:05 -07:00
],
],
],
2016-03-25 01:18:05 -07:00
'cleanup' => [
2016-03-25 01:18:05 -07:00
/*
* The strategy that will be used to cleanup old backups.
* The youngest backup will never be deleted.
2016-03-25 01:18:05 -07:00
*/
'strategy' => \Spatie\Backup\Tasks\Cleanup\Strategies\DefaultStrategy::class,
2016-03-25 01:18:05 -07:00
'defaultStrategy' => [
2016-03-25 01:18:05 -07:00
/*
* The amount of days that all daily backups must be kept.
*/
'keepAllBackupsForDays' => 7,
2016-03-25 01:18:05 -07:00
/*
* The amount of days that all daily backups must be kept.
*/
'keepDailyBackupsForDays' => 16,
2016-03-25 01:18:05 -07:00
/*
* The amount of weeks of which one weekly backup must be kept.
*/
'keepWeeklyBackupsForWeeks' => 8,
/*
* The amount of months of which one monthly backup must be kept.
*/
'keepMonthlyBackupsForMonths' => 4,
/*
* The amount of years of which one yearly backup must be kept
*/
'keepYearlyBackupsForYears' => 2,
/*
* After cleaning up the backups remove the oldest backup until
* this amount of megabytes has been reached.
*/
'deleteOldestBackupsWhenUsingMoreMegabytesThan' => 5000
]
2016-03-25 01:18:05 -07:00
],
/*
* In this array you can specify which backups should be monitored.
* If a backup does not meet the specified requirements the
* UnHealthyBackupWasFound-event will be fired.
*/
'monitorBackups' => [
[
'name' => 'backups',
'disks' => ['local'],
'newestBackupsShouldNotBeOlderThanDays' => 1,
'storageUsedMayNotBeHigherThanMegabytes' => 5000,
],
2016-03-25 01:18:05 -07:00
/*
[
'name' => 'name of the second app',
'disks' => ['local', 's3'],
'newestBackupsShouldNotBeOlderThanDays' => 1,
'storageUsedMayNotBeHigherThanMegabytes' => 5000,
],
*/
2016-03-25 01:18:05 -07:00
],
'notifications' => [
2016-03-25 01:18:05 -07:00
/*
* This class will be used to send all notifications.
2016-03-25 01:18:05 -07:00
*/
'handler' => Spatie\Backup\Notifications\Notifier::class,
2016-03-25 01:18:05 -07:00
/*
* Here you can specify the ways you want to be notified when certain
* events take place. Possible values are "log", "mail", "slack" and "pushover".
*
* Slack requires the installation of the maknz/slack package.
2016-03-25 01:18:05 -07:00
*/
'events' => [
'whenBackupWasSuccessful' => ['log'],
'whenCleanupWasSuccessful' => ['log'],
'whenHealthyBackupWasFound' => ['log'],
'whenBackupHasFailed' => ['log'],
'whenCleanupHasFailed' => ['log'],
'whenUnhealthyBackupWasFound' => ['log'],
],
2016-03-25 01:18:05 -07:00
/*
* Here you can specify how emails should be sent.
2016-03-25 01:18:05 -07:00
*/
'mail' => [
2016-05-12 17:12:52 -07:00
'from' => env('MAIL_FROM_ADDR', 'your@email.com'),
'to' => env('MAIL_FROM_ADDR', 'your@email.com'),
],
2016-03-25 01:18:05 -07:00
/*
* Here you can specify how messages should be sent to Slack.
2016-03-25 01:18:05 -07:00
*/
'slack' => [
'channel' => '#backups',
'username' => 'Backup bot',
'icon' => ':robot:',
],
2016-03-25 01:18:05 -07:00
/*
* Here you can specify how messages should be sent to Pushover.
2016-03-25 01:18:05 -07:00
*/
'pushover' => [
'token' => env('PUSHOVER_APP_TOKEN'),
'user' => env('PUSHOVER_USER_KEY'),
'sounds' => [
'success' => env('PUSHOVER_SOUND_SUCCESS','pushover'),
'error' => env('PUSHOVER_SOUND_ERROR','siren'),
],
],
]
2016-03-25 01:18:05 -07:00
];