backups.php
1 <?php 2 3 return [ 4 'backup' => [ 5 6 /* 7 * The name of this application. You can use this name to monitor 8 * the backups. 9 */ 10 'name' => env('APP_NAME', 'sgoc-backup'), 11 12 'source' => [ 13 14 'files' => [ 15 16 /* 17 * The list of directories and files that will be included in the backup. 18 */ 19 'include' => [ 20 base_path(), 21 ], 22 23 /* 24 * These directories and files will be excluded from the backup. 25 */ 26 'exclude' => [ 27 base_path('vendor'), 28 base_path('node_modules'), 29 base_path('db'), 30 base_path('db/*'), 31 '/home/sgoc/sgoc/db', 32 '/home/sgoc/sgoc/db/*', 33 ], 34 35 /* 36 * Determines if symlinks should be followed. 37 */ 38 'follow_links' => false, 39 40 /* 41 * This path is used to make directories in resulting zip-file relative 42 * Set to false to include complete absolute path 43 * Example: base_path() 44 */ 45 'relative_path' => false, 46 ], 47 48 /* 49 * The names of the connections to the databases that should be backed up 50 * MySQL, PostgreSQL, SQLite and Mongo databases are supported. 51 */ 52 'databases' => [ 53 'mysql', 54 ], 55 ], 56 57 'destination' => [ 58 59 /* 60 * The disk names on which the backups will be stored. 61 */ 62 'disks' => [ 63 'local', 64 ], 65 ], 66 ], 67 68 'cleanup' => [ 69 /* 70 * The strategy that will be used to cleanup old backups. The default strategy 71 * will keep all backups for a certain amount of days. After that period only 72 * a daily backup will be kept. After that period only weekly backups will 73 * be kept and so on. 74 * 75 * No matter how you configure it the default strategy will never 76 * deleted the newest backup. 77 */ 78 'strategy' => \Spatie\Backup\Tasks\Cleanup\Strategies\DefaultStrategy::class, 79 80 'default_strategy' => [ 81 82 /* 83 * The number of days that all backups must be kept. 84 */ 85 'keep_all_backups_for_days' => 7, 86 87 /* 88 * The number of days that all daily backups must be kept. 89 */ 90 'keep_daily_backups_for_days' => 16, 91 92 /* 93 * The number of weeks of which one weekly backup must be kept. 94 */ 95 'keep_weekly_backups_for_weeks' => 8, 96 97 /* 98 * The number of months of which one monthly backup must be kept. 99 */ 100 'keep_monthly_backups_for_months' => 4, 101 102 /* 103 * The number of years of which one yearly backup must be kept. 104 */ 105 'keep_yearly_backups_for_years' => 2, 106 ], 107 ], 108 ];