env('BACKUP_PATH', base_path('data/backups')), /* |-------------------------------------------------------------------------- | Retention |-------------------------------------------------------------------------- | | Artifacts older than retain_days are pruned, but the newest keep_minimum | are ALWAYS kept regardless of age — a box that sat idle for a month must | still have something to restore from. | */ 'retain_days' => (int) env('BACKUP_RETAIN_DAYS', 14), 'keep_minimum' => (int) env('BACKUP_KEEP_MINIMUM', 3), /* |-------------------------------------------------------------------------- | Off-server copy |-------------------------------------------------------------------------- | | A filesystems.php disk name. A snapshot sitting on the same disk as the | data survives a bad migration but not a dead disk, so set this to a | remote disk. The command warns on every run while it is unset. | */ 'disk' => env('BACKUP_DISK'), /* |-------------------------------------------------------------------------- | Media library |-------------------------------------------------------------------------- | | Uploaded video is the irreplaceable asset here — it cannot be regenerated | from anything. It is mirrored with rsync (incremental, resumable) to | media_destination, which should be a NAS mount or another machine. | | Only runs when --media is passed AND a destination is set. | | media_delete stays false by default: a mirror that deletes is one bad | path away from erasing the copy it was meant to protect. | */ 'media_paths' => [ base_path('data/app/users'), base_path('data/app/public'), ], 'media_destination' => env('BACKUP_MEDIA_DEST'), 'media_delete' => (bool) env('BACKUP_MEDIA_DELETE', false), ];