PHPackages                             afzalsabbir/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. [Utility &amp; Helpers](/categories/utility)
4. /
5. afzalsabbir/backupmanager

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

afzalsabbir/backupmanager
=========================

Admin interface for managing backups in Backpack, on Laravel 5.2+

v4.0.0(3y ago)096[1 PRs](https://github.com/AfzalSabbir/backupmanager/pulls)proprietaryPHPCI passing

Since May 29Pushed 1y ago1 watchersCompare

[ Source](https://github.com/AfzalSabbir/backupmanager)[ Packagist](https://packagist.org/packages/afzalsabbir/backupmanager)[ Docs](https://github.com/afzalsabbir/BackupManager)[ RSS](/packages/afzalsabbir-backupmanager/feed)WikiDiscussions main Synced today

READMEChangelog (2)Dependencies (4)Versions (5)Used By (0)

Backpack\\BackupManager
=======================

[](#backpackbackupmanager)

[![Latest Version on Packagist](https://camo.githubusercontent.com/7db1823ec968901c8f1f4497251993a2f570732da009f8683b48c95a5de0a728/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f61667a616c7361626269722f6261636b75706d616e616765722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/afzalsabbir/backupmanager)[![Software License](https://camo.githubusercontent.com/5a202d5327ab4ae3bf5cc50fcfa3d2f0823d818a4f115a027d8176dcb996c4d4/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d6475616c2d626c75653f7374796c653d666c61742d737175617265)](LICENSE.md)[![Build Status](https://camo.githubusercontent.com/9cf3f49a377fb9a7256ddfee285d37caaa0f22c191ded7bd87acd770e48dc7ca/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f61667a616c7361626269722f6261636b75706d616e616765722f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/afzalsabbir/backupmanager)[![Coverage Status](https://camo.githubusercontent.com/717cc86ee1323c8be2825a287aced46782b89d43b524ecc8c19b3d265875db52/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f636f7665726167652f672f61667a616c7361626269722f6261636b75706d616e616765722e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/afzalsabbir/backupmanager/code-structure)[![Quality Score](https://camo.githubusercontent.com/de07fd773007726238245210976ab23c2a8de40b2a007711d4681aa28fca5697/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f61667a616c7361626269722f6261636b75706d616e616765722e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/afzalsabbir/backupmanager)[![Style CI](https://camo.githubusercontent.com/d0681d42a83e54310612ca37268ba5eeb717ce25df91dab1f21737fdf58bfc92/68747470733a2f2f7374796c6563692e696f2f7265706f732f35333935363539342f736869656c64)](https://styleci.io/repos/53956594)[![Total Downloads](https://camo.githubusercontent.com/7f838ab82b9bb9cc18cb1a08908af3d27d0be94ab2371e3facb49a82b75a0f13/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f61667a616c7361626269722f6261636b75706d616e616765722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/afzalsabbir/backupmanager)

An admin interface for [spatie/laravel-backup](https://github.com/spatie/laravel-backup). Allows the admin to easily manage backups (download and delete). Used in the Backpack package, on Laravel 5.2+ to 9.

> ### Security updates and breaking changes
>
> [](#security-updates-and-breaking-changes)
>
> Please **[subscribe to the Backpack Newsletter](http://backpackforlaravel.com/newsletter)** so you can find out about any security updates, breaking changes or major features. We send an email 2 times/year, max.

[![Backpack\BackupManager screenshot](https://user-images.githubusercontent.com/1032474/161931994-dc044bb2-a459-4863-9262-ed91f3e5e35b.gif)](https://user-images.githubusercontent.com/1032474/161931994-dc044bb2-a459-4863-9262-ed91f3e5e35b.gif)

Install
-------

[](#install)

1. In your terminal

```
# Install the package
composer require afzalsabbir/backupmanager

# Publish the backup and backupmanager configs and lang files:
php artisan vendor:publish --provider="Backpack\BackupManager\BackupManagerServiceProvider" --tag=backup-config --tag=lang

# [optional] Add a sidebar_content item for it
php artisan backpack:add-sidebar-content " Backups"
```

5. \[optional\] Instruct Laravel to run the backups automatically in your console kernel:

```
// app/Console/Kernel.php

protected function schedule(Schedule $schedule)
{
    // if you are not using notifications you should add the `--disable-notifications` flag to this commands
    $schedule->command('backup:clean')->daily()->at('04:00');
    $schedule->command('backup:run')->daily()->at('05:00');
}
```

6. Check that it works

If the "unknown error" yellow bubble is thrown and you see the "*Backup failed because The dump process failed with exitcode 127 : Command not found.*" error in the log file, either mysqldump / pg\_dump is not installed or you need to specify its location.

You can do that in your `config/database.php` file, where you define your database credentials, by adding the dump variables. Here's an example:

```
'mysql' => [
    'driver'            => 'mysql',
    'host'              => env('DB_HOST', 'localhost'),
    'database'          => env('DB_DATABASE', 'forge'),
    'username'          => env('DB_USERNAME', 'forge'),
    'password'          => env('DB_PASSWORD', ''),
    'charset'           => 'utf8',
    'collation'         => 'utf8_unicode_ci',
    'prefix'            => '',
    'strict'            => false,
    'engine'            => null,
    'dump' => [

        'dump_binary_path' => '/path/to/directory/', // only the path, without `mysqldump` or `pg_dump`
        // 'dump_binary_path' => '/Applications/MAMP/Library/bin/', // works for MAMP on Mac OS
        // 'dump_binary_path' => '/opt/homebrew/bin/', // works for Laravel Valet on Mac OS
        'use_single_transaction',
        'timeout' => 60 * 5, // 5 minute timeout
        // 'exclude_tables' => ['table1', 'table2'],
        // 'add_extra_option' => '--optionname=optionvalue',
    ]
],
```

Usage
-----

[](#usage)

This should be a point-and-click interface where you can create and download backups at any time.

Try at **your-project-domain/admin/backup**

Configuration &amp; Troubleshooting
-----------------------------------

[](#configuration--troubleshooting)

For additional configuration (eg. notifications):

- publish the spatie backup file `php artisan vendor:publish --provider="Spatie\Backup\BackupServiceProvider" --tag="backup-config"`
- see the [spatie/laravel-backup documentation](https://spatie.be/docs/laravel-backup/v8/installation-and-setup) on how to configure your backup system in `config/backup.php`; **it is higly recommended that you at least [configure the notifications](https://spatie.be/docs/laravel-backup/v8/sending-notifications/overview)**;
- see `config/backpack/backupmanager.php` for configurating how the backup is run from the interface; by default, it does `backup:run --disable-notifications`, but after you've configured notifications, you can remove that flag (or add others);

**\[TIP\]** When you modify your options in `config/backup.php` or `config/backpack/backupmanager.php`, please run manually `php artisan backup:run` to make sure it's still working after your changes. **NOTE**: `php artisan optimize:clear` and/or `php artisan config:clear` might be needed before the `backup:run` command.

Upgrading
---------

[](#upgrading)

Please see the [upgrade guides](UPGRADE_GUIDES.md) to get:

- from v3 to v4 (new!)
- from v2 to v3
- from 1.2.x to 1.3.x
- from 1.1.x to 1.2.x

Change log
----------

[](#change-log)

Please see the [releases page](https://github.com/Laravel-Backpack/BackupManager/releases/) for more information what has changed recently.

Testing
-------

[](#testing)

```
$ composer test
```

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

Overwriting Functionality
-------------------------

[](#overwriting-functionality)

If you need to modify how this works in a project:

- create a `routes/afzalsabbir/backupmanager.php` file; the package will see that, and load *your* routes file, instead of the one in the package;
- create controllers/models that extend the ones in the package, and use those in your new routes file;
- modify anything you'd like in the new controllers/models;

Security
--------

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

Please **[subscribe to the Backpack Newsletter](http://backpackforlaravel.com/newsletter)** so you can find out about any security updates, breaking changes or major features. We send an email every 1-2 months.

Credits
-------

[](#credits)

- [Cristian Tabacitu](https://github.com/tabacitu)
- [All Contributors](../../contributors)

License
-------

[](#license)

Backpack is free for non-commercial use and 49 EUR/project for commercial use. Please see [License File](LICENSE.md) and [backpackforlaravel.com](https://backpackforlaravel.com/#pricing) for more information.

Hire us
-------

[](#hire-us)

We've spend more than 10.000 hours creating, polishing and maintaining administration panels on Laravel. We've developed e-Commerce, e-Learning, ERPs, social networks, payment gateways and much more. We've worked on admin panels *so much*, that we've created one of the most popular software in its niche - just from making public what was repetitive in our projects.

If you are looking for a developer/team to help you build an admin panel on Laravel, look no further. You'll have a difficult time finding someone with more experience &amp; enthusiasm for this. This is *what we do*. [Contact us - let's see if we can work together](https://backpackforlaravel.com/need-freelancer-or-development-team).

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance33

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity51

Maturing project, gaining track record

 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.

###  Release Activity

Cadence

Every ~29 days

Total

2

Last Release

1412d ago

Major Versions

v3.0.0 → v4.0.02022-06-28

### Community

Maintainers

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

---

Top Contributors

[![AfzalSabbir](https://avatars.githubusercontent.com/u/39697431?v=4)](https://github.com/AfzalSabbir "AfzalSabbir (7 commits)")

---

Tags

laravelbackupdickbackupmanagertabacitubackpackupdivision

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[backpack/backupmanager

Admin interface for managing backups in Backpack, on Laravel 5.2+

340375.9k2](/packages/backpack-backupmanager)[backpack/settings

Application settings interface for Laravel 5 using Backpack CRUD.

290870.9k10](/packages/backpack-settings)[backpack/activity-log

Activity Log for Backpack

3487.5k1](/packages/backpack-activity-log)[webfactor/laravel-backpack-instant-fields

Instant fields to create/edit/delete related entities on the fly in Laravel Backpack

496.9k](/packages/webfactor-laravel-backpack-instant-fields)

PHPackages © 2026

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