---
description: Backup panel for Adminetic Admin Panel
---

# Backup

<figure><img src="https://3590348543-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MbCZnEbkx6hMOJRn5tS%2Fuploads%2Fbi2rVCQ5UdaVDXFT5RXW%2Fbanner.jpg?alt=media&#x26;token=69770bd9-4080-4d8f-ad87-480d84e12920" alt=""><figcaption></figcaption></figure>

## Backup Panel Module for Adminetic Admin Panel

[![Latest Version on Packagist](https://img.shields.io/packagist/v/adminetic/backup.svg?style=flat-square)](https://packagist.org/packages/adminetic/backup)

[![Stars](https://img.shields.io/github/stars/pratiksh404/adminetic-backup)](https://github.com/pratiksh404/adminetic-backup/stargazers) [![Downloads](https://img.shields.io/packagist/dt/adminetic/backup.svg?style=flat-square)](https://packagist.org/packages/adminetic/backup) [![StyleCI](https://github.styleci.io/repos/618407321/shield?branch=main)](https://github.styleci.io/repos/618407321?branch=main) [![License](https://img.shields.io/github/license/pratiksh404/adminetic-backup)](https://packagist.org/packages/adminetic/backup)

Backup Panel module for Adminetic Admin Panel

For detailed documentaion visit [Adminetic Backup Panel Module Documentation](https://app.gitbook.com/@pratikdai404/s/adminetic/addons/backup)

**Contains : -**

* Backup Panel Panel

### Installation

### **Composer Install:**

You can install the package via composer:

```bash
composer require adminetic/backup
```

### **Config Publish:**

Publish spatie backup config

```bash
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`

```bash
DROPBOX_APP_KEY=
DROPBOX_APP_SECRET=
DROPBOX_ACCESS_TOKEN=
```

#### **Register Dropbox As Disk:**

In `config/filesystems.php` add following code to `disks` array

```bash
   '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`:**

```html
  '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'
            ],
        ],
```

```html
  '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:

<figure><img src="https://3590348543-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MbCZnEbkx6hMOJRn5tS%2Fuploads%2Frdtr4DYGkxN0CXUEwgxu%2Fpanel.jpg?alt=media&#x26;token=b25c7676-1d05-4877-95fd-2534f4765ae5" alt=""><figcaption></figcaption></figure>

![Backup Panel](https://github.com/pratiksh404/adminetic-backup/blob/main/screenshots/panel.jpg)
