Backup Panel Module for Adminetic Admin Panel
Backup Panel module for Adminetic Admin Panel
For detailed documentaion visit Adminetic Backup Panel Module Documentation
Contains : -
Installation
Composer Install:
You can install the package via composer:
Copy composer require adminetic/backup
Config Publish:
Publish spatie backup config
Copy php artisan vendor:publish --provider="Spatie\Backup\BackupServiceProvider"
Dropbox Configuration:
Create a dropbox account and extract DROPBOX_APP_KEY
,DROPBOX_APP_SECRET
and DROPBOX_ACCESS_TOKEN
to .env
Copy DROPBOX_APP_KEY=
DROPBOX_APP_SECRET=
DROPBOX_ACCESS_TOKEN=
Register Dropbox As Disk:
In config/filesystems.php
add following code to disks
array
Copy 'dropbox' => [
'driver' => 'dropbox',
'key' => env('DROPBOX_APP_KEY'),
'secret' => env('DROPBOX_APP_SECRET'),
'authorization_token' => env('DROPBOX_ACCESS_TOKEN'),
],
Add dropbox disk to config/backup.php
:
Copy 'destination' => [
/*
* The filename prefix used for the backup zip file.
*/
'filename_prefix' => '',
/*
* The disk names on which the backups will be stored.
*/
'disks' => [
'local', 'dropbox'
],
],
Copy 'monitor_backups' => [
[
'name' => env('APP_NAME', 'laravel-backup'),
'disks' => ['local', 'dropbox'],
'health_checks' => [
\Spatie\Backup\Tasks\Monitor\HealthChecks\MaximumAgeInDays::class => 1,
\Spatie\Backup\Tasks\Monitor\HealthChecks\MaximumStorageInMegabytes::class => 5000,
],
],
]
Screenshot: