PHPackages                             schickling/backup - 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. [Database &amp; ORM](/categories/database)
4. /
5. schickling/backup

ActiveLibrary[Database &amp; ORM](/categories/database)

schickling/backup
=================

Backup and restore database support for Laravel 4 applications

0.6.0(11y ago)353114.1k↓50%51[17 issues](https://github.com/schickling/laravel-backup/issues)[1 PRs](https://github.com/schickling/laravel-backup/pulls)1PHPPHP &gt;=5.3.0

Since Jul 2Pushed 11y ago15 watchersCompare

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

READMEChangelogDependencies (6)Versions (9)Used By (1)

laravel-backup [![Build Status](https://camo.githubusercontent.com/2c957f54f61dfe947585d6cfc1d20a38947aaa8fe5b9fcb03bd322d57c3c4dc1/68747470733a2f2f7472617669732d63692e6f72672f73636869636b6c696e672f6c61726176656c2d6261636b75702e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/schickling/laravel-backup) [![Coverage Status](https://camo.githubusercontent.com/b22b68d033781e33de5b2637abc3282ee61c2df37ad9d0209e3c58c9bce5428c/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f73636869636b6c696e672f6c61726176656c2d6261636b75702f62616467652e706e673f6272616e63683d6d6173746572)](https://coveralls.io/r/schickling/laravel-backup?branch=master) [![Total Downloads](https://camo.githubusercontent.com/b640ca7b56c0201ae08051fbfde99054852aff68b024721dd8e25cc462643022/68747470733a2f2f706f7365722e707567782e6f72672f73636869636b6c696e672f6261636b75702f646f776e6c6f6164732e706e67)](https://packagist.org/packages/schickling/backup)
=====================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================

[](#laravel-backup---)

Backup and restore database support for Laravel 4 applications

Installation
------------

[](#installation)

1. Run the following command:

```
$ composer require schickling/backup
```

2. Add `Schickling\Backup\BackupServiceProvider` to your config/app.php

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

###### 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).

#### Restore

[](#restore)

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

###### Restore a dump

[](#restore-a-dump)

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

###### List dumps

[](#list-dumps)

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

Configuration
-------------

[](#configuration)

Since version `0.5.0` this package follows the recommended standard for configuration. In order to configure this package please run the following command:

```
$ php artisan config:publish schickling/backup
```

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

```
return array(

    // 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' => array(
        'dump_command_path' => '/Applications/MAMP/Library/bin/',
        'restore_command_path' => '/Applications/MAMP/Library/bin/',
    ),

    // s3 settings
    's3' => array(
        'path'  => 'your/s3/dump/folder'
    )

    // Use GZIP compression
    'compress' => false,
);
```

Dependencies
------------

[](#dependencies)

#### ...for MySQL

[](#for-mysql)

You need to have `mysqldump` installed. It's usually already installed with MySQL itself.

TODO - Upcoming Features
------------------------

[](#todo---upcoming-features)

- `db:restore WRONGFILENAME` more detailed error message
- `db:backup FILENAME` set title for dump
- S3
- Upload as default
- default bucket
- More detailed folder checking (permission, existence, ...)
- *Some more ideas? Tell me!*

[![Bitdeli Badge](https://camo.githubusercontent.com/dcf846542d7c04a84843e421ef3290c1b6dbee73d3d2e02e960f35738ac0a23f/68747470733a2f2f64327765637a68766c38323376302e636c6f756466726f6e742e6e65742f73636869636b6c696e672f6c61726176656c2d6261636b75702f7472656e642e706e67)](https://bitdeli.com/free "Bitdeli Badge")

###  Health Score

40

—

FairBetter than 88% of packages

Maintenance19

Infrequent updates — may be unmaintained

Popularity49

Moderate usage in the ecosystem

Community28

Small or concentrated contributor base

Maturity53

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 72.9% 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.

###  Release Activity

Cadence

Every ~75 days

Recently: every ~128 days

Total

8

Last Release

4174d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/a2606bc02313fbf3a7bd57cefaebeba31662d462f26517dee64ce160f433d73b?d=identicon)[schickling](/maintainers/schickling)

---

Top Contributors

[![schickling](https://avatars.githubusercontent.com/u/1567498?v=4)](https://github.com/schickling "schickling (78 commits)")[![danmichaelo](https://avatars.githubusercontent.com/u/434495?v=4)](https://github.com/danmichaelo "danmichaelo (7 commits)")[![alexw23](https://avatars.githubusercontent.com/u/1505496?v=4)](https://github.com/alexw23 "alexw23 (5 commits)")[![crynobone](https://avatars.githubusercontent.com/u/172966?v=4)](https://github.com/crynobone "crynobone (4 commits)")[![nickurt](https://avatars.githubusercontent.com/u/5840084?v=4)](https://github.com/nickurt "nickurt (3 commits)")[![etrepat](https://avatars.githubusercontent.com/u/148851?v=4)](https://github.com/etrepat "etrepat (3 commits)")[![lostincode](https://avatars.githubusercontent.com/u/565885?v=4)](https://github.com/lostincode "lostincode (2 commits)")[![FR6](https://avatars.githubusercontent.com/u/286685?v=4)](https://github.com/FR6 "FR6 (2 commits)")[![Anahkiasen](https://avatars.githubusercontent.com/u/1321596?v=4)](https://github.com/Anahkiasen "Anahkiasen (1 commits)")[![bitdeli-chef](https://avatars.githubusercontent.com/u/3092978?v=4)](https://github.com/bitdeli-chef "bitdeli-chef (1 commits)")[![jamesblackwell](https://avatars.githubusercontent.com/u/1156154?v=4)](https://github.com/jamesblackwell "jamesblackwell (1 commits)")

### Embed Badge

![Health badge](/badges/schickling-backup/health.svg)

```
[![Health](https://phpackages.com/badges/schickling-backup/health.svg)](https://phpackages.com/packages/schickling-backup)
```

###  Alternatives

[spatie/laravel-backup

A Laravel package to backup your application

6.0k21.8M191](/packages/spatie-laravel-backup)[propel/propel

Propel2 is an open-source Object-Relational Mapping (ORM) for PHP.

1.3k5.3M110](/packages/propel-propel)[hautelook/alice-bundle

Symfony bundle to manage fixtures with Alice and Faker.

19519.4M34](/packages/hautelook-alice-bundle)[ssch/typo3-rector

Instant fixes for your TYPO3 PHP code by using Rector.

2592.8M263](/packages/ssch-typo3-rector)[rector/rector-src

Instant Upgrade and Automated Refactoring of any PHP code

134391.5k12](/packages/rector-rector-src)[guikingone/scheduler-bundle

A Symfony bundle that allows to schedule and create repetitive tasks

114217.4k](/packages/guikingone-scheduler-bundle)

PHPackages © 2026

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