PHPackages                             revolta77/backupmanager - 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. revolta77/backupmanager

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

revolta77/backupmanager
=======================

laravel package to backup/restore files and database.

1.3.1(6y ago)052MITPHP

Since Dec 16Pushed 6y agoCompare

[ Source](https://github.com/Revolta77/backupmanager)[ Packagist](https://packagist.org/packages/revolta77/backupmanager)[ Docs](https://github.com/sarfraznawaz2005/backupmanager)[ RSS](/packages/revolta77-backupmanager/feed)WikiDiscussions master Synced 4d ago

READMEChangelogDependencies (1)Versions (5)Used By (0)

[![Latest Version on Packagist](https://camo.githubusercontent.com/8867a2732cf7a9c073b02861692bf506df124da899e636b36b222b7348f6bc6c/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f7361726672617a6e6177617a323030352f6261636b75706d616e616765722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/sarfraznawaz2005/backupmanager)[![Total Downloads](https://camo.githubusercontent.com/001bed226ca9e004b00636bcbd15873a077baef2d2e45c3388ff84f3132dd2b6/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f7361726672617a6e6177617a323030352f6261636b75706d616e616765722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/sarfraznawaz2005/backupmanager)

Laravel BackupManager
=====================

[](#laravel-backupmanager)

Simple laravel package to backup/restore files and database.

Fork
----

[](#fork)

This is fork of

Screenshot
----------

[](#screenshot)

[![Main Window](https://github.com/sarfraznawaz2005/backupmanager/raw/master/screen.gif?raw=true)](https://github.com/sarfraznawaz2005/backupmanager/blob/master/screen.gif?raw=true)

Requirements
------------

[](#requirements)

- PHP &gt;= 5.6
- Laravel 5
- `mysql` (to restore database)
- `mysqldump` (to backup database)
- `tar` (to backup/restore files)
- `zcat` (to extract database archive)

Please make sure above binaries are added to `PATH` environment variable or you can specify full path to them in config file.

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

[](#installation)

Via Composer

```
$ composer require revolta77/backupmanager
```

For Laravel &lt; 5.5:

Add Service Provider to `config/app.php` in `providers` section:

```
Revolta77\BackupManager\ServiceProvider::class,
```

(Optional) Add Facade to `config/app.php` in `aliases` section:

```
'BackupManager' => Revolta77\BackupManager\Facades\BackupManager::class,
```

---

Publish package's files by running below command:

```
$ php artisan vendor:publish --provider="Revolta77\BackupManager\ServiceProvider"
```

It should publish `config/backupmanager.php.php` config file and migration file.

Run `php artisan migrate` to create backup verifier (`verifybackup`)) table.

---

Finally setup options in `config/backupmanager.php` file and open the backup manager at url you have specified in `route` option eg `http//yourapp.com/backupmanager`, you should now see interface of BackupManager.

See `config/backupmanager.php` file for more information about backup settings.

Setting Up Automatic Backups
----------------------------

[](#setting-up-automatic-backups)

To setup automatic backups, place following in `app/Console/Kernel.php` file:

```
$schedule->command('backupmanager:create')->daily();
```

Although packages provides GUI interface to manage backups, following commands are also available:

```
  backupmanager:create                  Creates backup of files and/or database.
  backupmanager:list                    Shows list of backups taken.
  backupmanager:restore                 Restores a backup already taken.
```

Saving Backups to Other Disks
-----------------------------

[](#saving-backups-to-other-disks)

By default this package saves backups to `local` disk but you can use built-in feature of laravel filesystem to save backups to other disks too. Let's say you want to upload to different server for which you have ftp credentials, you need to update those ftp credentials into laravel's `config/filesystems.php` file under `ftp` disk setting. Once you have done that, in backup manager config file (`config/backupmanager.php`) specify your disk to be `ftp` instead of `local` eg:

```
// define disk options
'disk' => 'ftp',

```

instead of

```
 'disk' => 'local',

```

Now backup files will be saved on your ftp location instead of locally.

How Restore is verified
-----------------------

[](#how-restore-is-verified)

Even though there is no 100% way to verify restores, yet for **files** we create and verify restore feature by putting some contents into `backup-verify` file before and after restore. Similarly, we verify **database** restore by putting some contents into `verifybackup` table before and after restore. In both cases, contents of that file and database table are different at the time of backup and restore.

Disclaimer
----------

[](#disclaimer)

This package was created for our needs and works for us however no guarantee is provided in terms of its functionality especially restore feature which can not be 100% verified because of the way restore feature works. So use this package at your own risk.

Credits
-------

[](#credits)

- [Sarfraz Ahmed](https://github.com/sarfraznawaz2005)
- [All Contributors](https://github.com/sarfraznawaz2005/backupmanager/graphs/contributors)

License
-------

[](#license)

Please see the [license file](license.md) for more information.

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity64

Established project with proven stability

 Bus Factor1

Top contributor holds 50% 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 ~147 days

Total

4

Last Release

2264d ago

### Community

Maintainers

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

---

Top Contributors

[![sarfraznawaz2005](https://avatars.githubusercontent.com/u/201788?v=4)](https://github.com/sarfraznawaz2005 "sarfraznawaz2005 (17 commits)")[![sarfrazonsupport](https://avatars.githubusercontent.com/u/142378572?v=4)](https://github.com/sarfrazonsupport "sarfrazonsupport (12 commits)")[![Revolta77](https://avatars.githubusercontent.com/u/51193287?v=4)](https://github.com/Revolta77 "Revolta77 (5 commits)")

---

Tags

laraveldatabasebackupserverrestore

### Embed Badge

![Health badge](/badges/revolta77-backupmanager/health.svg)

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

###  Alternatives

[sarfraznawaz2005/backupmanager

laravel package to backup/restore files and database.

313.7k](/packages/sarfraznawaz2005-backupmanager)[cornford/backup

An easy way backup and restore databases in Laravel.

4225.6k](/packages/cornford-backup)

PHPackages © 2026

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