PHPackages                             jeffgepiga/dbfilebackup - 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. [File &amp; Storage](/categories/file-storage)
4. /
5. jeffgepiga/dbfilebackup

ActiveLibrary[File &amp; Storage](/categories/file-storage)

jeffgepiga/dbfilebackup
=======================

laravel package to backup/restore files and database.

029PHP

Since Nov 21Pushed 2y ago1 watchersCompare

[ Source](https://github.com/JeffGepiga/dbfilebackup)[ Packagist](https://packagist.org/packages/jeffgepiga/dbfilebackup)[ RSS](/packages/jeffgepiga-dbfilebackup/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

[![Latest Version on Packagist](https://camo.githubusercontent.com/56b0c0b23a0ba1ee0dda0e6e2eead5d0b324b81bbc80ef63787c96bd17e22059/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6a6566666765706967612f646266696c656261636b75702e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/jeffgepiga/dbfilebackup)[![Total Downloads](https://camo.githubusercontent.com/f6e83e866cd767c2de42a8d02763924c739817692d96645a489a153d99264a9a/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6a6566666765706967612f646266696c656261636b75702e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/jeffgepiga/dbfilebackup)

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

[](#laravel-backupmanager)

Simple laravel package to backup/restore files and database.

Screenshot
----------

[](#screenshot)

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

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

[](#requirements)

- PHP &gt;= 7.4
- Laravel 8-10
- `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 jeffgepiga/dbfilebackup
```

---

Publish package's files by running below command:

```
$ php artisan vendor:publish --provider="JeffGepiga\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.
  backupmanager:create --only="db"      Creates backup of database only.
  backupmanager:create --only="files"   Creates backup of files only.
```

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/JeffGepiga)
- [All Contributors](https://github.com/jeffgepiga/dbfilebackup/graphs/contributors)

License
-------

[](#license)

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

###  Health Score

14

—

LowBetter than 2% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity20

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://www.gravatar.com/avatar/0fc520060f9ad0ef5ad60060b948946be6bf7b8ee7a7726e9fe417a2c5cb4b96?d=identicon)[JeffGepiga](/maintainers/JeffGepiga)

---

Top Contributors

[![JeffGepiga](https://avatars.githubusercontent.com/u/51604875?v=4)](https://github.com/JeffGepiga "JeffGepiga (16 commits)")

### Embed Badge

![Health badge](/badges/jeffgepiga-dbfilebackup/health.svg)

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

###  Alternatives

[knplabs/gaufrette

PHP library that provides a filesystem abstraction layer

2.5k39.8M123](/packages/knplabs-gaufrette)[google/cloud-storage

Cloud Storage Client for PHP

34390.8M123](/packages/google-cloud-storage)[illuminate/filesystem

The Illuminate Filesystem package.

15261.6M2.6k](/packages/illuminate-filesystem)[superbalist/flysystem-google-storage

Flysystem adapter for Google Cloud Storage

26320.6M30](/packages/superbalist-flysystem-google-storage)[creocoder/yii2-flysystem

The flysystem extension for the Yii framework

2931.7M61](/packages/creocoder-yii2-flysystem)[flowjs/flow-php-server

PHP library for handling chunk uploads. Works with flow.js html5 file uploads.

2451.6M15](/packages/flowjs-flow-php-server)

PHPackages © 2026

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