PHPackages                             skcin7/laravel-backups - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. skcin7/laravel-backups

ActivePackage

skcin7/laravel-backups
======================

Package to manage database backups in a Laravel project. Easily integrates with Dropbox and AWS S3.

118PHP

Since Sep 13Pushed 6y agoCompare

[ Source](https://github.com/skcin7/laravel-backups)[ Packagist](https://packagist.org/packages/skcin7/laravel-backups)[ RSS](/packages/skcin7-laravel-backups/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Laravel Backups
===============

[](#laravel-backups)

Package to manage database backups in a Laravel project. Easily integrates with Dropbox and AWS S3.

> This package is based on [wladmonax/laravel-db-backup](https://github.com/wladmonax/laravel-db-backup) so credit to them for their great work.

### Table of Contents

[](#table-of-contents)

- [Installation](#installation)
- [Contribution Guidelines](#contribution-guidelines)
- [Maintainers](#maintainers)
- [License](#license)

### Installation

[](#installation)

Run Composer command: `composer require skcin7/laravel-backups`

### Configuration

[](#configuration)

Copy the config file into your project by running

```
php artisan vendor:publish

```

This will generate a config file like this

```
return [

    // add a backup folder in the app/database/ or your dump folder
    'path' => app_path() . '/database/backup/',

    // add the path to the restore and backup command of mysql
    // this exemple is if your are using MAMP server on a mac
    // on windows: 'C:\\...\\mysql\\bin\\'
    // on linux: '/usr/bin/'
    // trailing slash is required
    'mysql' => [
        'dump_command_path' => '/Applications/MAMP/Library/bin/',
        'restore_command_path' => '/Applications/MAMP/Library/bin/',
    ],

    // s3 settings
    's3' => [
        'path'  => 'your/s3/dump/folder'
    ]

    //dropbox settings
    'dropbox' => [
        'accessToken' => DROPBOX_ACCESS_TOKEN,
        'appSecret' => DROPBOX_APP_SECRET,
        'prefix' => DROPBOX_PREFIX, //this is name of your dropbox folder
    ],

    //encrypt settings
    'encrypt' => [
        'key' => ENCRYPT_KEY
    ],
    // Use GZIP compression
    'compress' => false,
];
```

**All settings are optional and have reasonable default values.**

Usage
-----

[](#usage)

#### Backup

[](#backup)

Creates a dump file in `app/storage/dumps`

```
$ php artisan db:backup
```

###### Use specific database

[](#use-specific-database)

```
$ php artisan db:backup --database=mysql
```

###### Need ecnrypt db

[](#need-ecnrypt-db)

```
$ php artisan db:backup --encrypt
```

###### Save dump to dropbox

[](#save-dump-to-dropbox)

```
$ php artisan db:backup --dropbox
```

###### You can merge options like this

[](#you-can-merge-options-like-this)

```
$ php artisan db:backup --dropbox --encrypt
```

###### Upload to AWS S3

[](#upload-to-aws-s3)

```
$ php artisan db:backup --upload-s3 your-bucket
```

You can use the `--keep-only-s3` option if you don't want to keep a local copy of the SQL dump.

Uses the [aws/aws-sdk-php-laravel](https://github.com/aws/aws-sdk-php-laravel) package which needs to be [configured](https://github.com/aws/aws-sdk-php-laravel#configuration).
Uses the [spatie/flysystem-dropbox](https://github.com/spatie/flysystem-dropbox) package.

#### Restore

[](#restore)

Paths are relative to the app/storage/dumps folder.

###### Restore a dump

[](#restore-a-dump)

```
$ php artisan db:restore dump.sql
```

###### Restore from last backup dump

[](#restore-from-last-backup-dump)

```
$ php artisan db:restore --last-dump
```

###### Restore from Dropbox

[](#restore-from-dropbox)

```
$ php artisan db:restore --dropbox-dump=filename.sql
```

###### Restore from Dropbox last dump

[](#restore-from-dropbox-last-dump)

```
$ php artisan db:restore --dropbox-last-dump
```

###### List dumps

[](#list-dumps)

```
$ php artisan db:restore
```

###  Health Score

19

—

LowBetter than 10% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity36

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/395270?v=4)[N](/maintainers/skcin7)[@skcin7](https://github.com/skcin7)

---

Top Contributors

[![skcin7](https://avatars.githubusercontent.com/u/395270?v=4)](https://github.com/skcin7 "skcin7 (5 commits)")

### Embed Badge

![Health badge](/badges/skcin7-laravel-backups/health.svg)

```
[![Health](https://phpackages.com/badges/skcin7-laravel-backups/health.svg)](https://phpackages.com/packages/skcin7-laravel-backups)
```

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
