PHPackages                             ikechukwukalu/databasebackup - 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. ikechukwukalu/databasebackup

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

ikechukwukalu/databasebackup
============================

A laravel package for backing up database with local and remote connection.

v3.0.0(10mo ago)26.8k1[1 PRs](https://github.com/ikechukwukalu/databasebackup/pulls)MITPHPPHP &gt;=7.3CI passing

Since Feb 24Pushed 10mo ago1 watchersCompare

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

READMEChangelog (6)Dependencies (8)Versions (8)Used By (0)

DATABASE BACKUP
===============

[](#database-backup)

[![Latest Version on Packagist](https://camo.githubusercontent.com/d38b9accc58757d32a37410fa6893876372719d8bb7aee1ea83a47a834ccf43a/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f696b656368756b77756b616c752f64617461626173656261636b75703f7374796c653d666c61742d737175617265)](https://packagist.org/packages/ikechukwukalu/databasebackup)[![Quality Score](https://camo.githubusercontent.com/eacc21f3de80d514941bfa1f1c893dda8d703cd8b23b3a753157cc4dd46a5422/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f7175616c6974792f672f696b656368756b77756b616c752f64617461626173656261636b75702f6d61696e3f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/ikechukwukalu/databasebackup/)[![Code Quality](https://camo.githubusercontent.com/9a1712077077cdcdc8117b463663a55185a10cf6eb77e4c0ca04d55068e51183/68747470733a2f2f696d672e736869656c64732e696f2f636f6465666163746f722f67726164652f6769746875622f696b656368756b77756b616c752f64617461626173656261636b75703f7374796c653d666c61742d737175617265)](https://www.codefactor.io/repository/github/ikechukwukalu/databasebackup)[![Known Vulnerabilities](https://camo.githubusercontent.com/226f6502d9fb65790d65778300ed164ba2dd52138e7c808d0d055c44474e144f/68747470733a2f2f736e796b2e696f2f746573742f6769746875622f696b656368756b77756b616c752f64617461626173656261636b75702f62616467652e7376673f7374796c653d666c61742d737175617265)](https://security.snyk.io/package/composer/ikechukwukalu%2Fdatabasebackup)[![Github Workflow Status](https://camo.githubusercontent.com/ff9ff0e604c02ad32f0c6eb545c24be30c4790a0bcbe294dab2f9ddcd259b304/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f696b656368756b77756b616c752f64617461626173656261636b75702f64617461626173656261636b75702e796d6c3f6272616e63683d6d61696e267374796c653d666c61742d737175617265)](https://github.com/ikechukwukalu/databasebackup/actions/workflows/databasebackup.yml)[![Total Downloads](https://camo.githubusercontent.com/8032310a8e8ccc9226d80397d74f25d57ded7d4254f9267bb4c43110307dae27/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f696b656368756b77756b616c752f64617461626173656261636b75703f7374796c653d666c61742d737175617265)](https://packagist.org/packages/ikechukwukalu/databasebackup)[![Licence](https://camo.githubusercontent.com/912c5851844f02fc18e515567ce7ff57c33d8833fab663c9095b5edc1f7b2fb0/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f696b656368756b77756b616c752f64617461626173656261636b75703f7374796c653d666c61742d737175617265)](https://github.com/ikechukwukalu/databasebackup/blob/main/LICENSE.md)

A laravel package for backing up database with local and remote connection.

REQUIREMENTS
------------

[](#requirements)

- PHP 7.3+
- Laravel 8+

STEPS TO INSTALL
----------------

[](#steps-to-install)

```
composer require ikechukwukalu/databasebackup
```

BACKUP DATABASE
---------------

[](#backup-database)

Set the following parameters in your `.env` file and run `sudo php artisan database:backup` to backup database.

```
DB_BACKUP_PATH="/db/backup/${APP_NAME}"
DB_BACKUP_COMMAND="sudo mysqldump --user=${DB_USERNAME} --password=${DB_PASSWORD} --host=${DB_HOST} ${DB_DATABASE} | gzip > "
DB_BACKUP_SSH_USER=root
DB_BACKUP_SSH_HOST=127.0.0.1
DB_BACKUP_FILE="backup-${APP_NAME}-db"
DB_BACKUP_FILE_EXT=".gz"
DB_REMOTE_ACCESS=false
```

Or this

```
DB_BACKUP_PATH="/db/backup/${APP_NAME}"
DB_BACKUP_COMMAND="sudo mysqldump --user=${DB_USERNAME} --password=${DB_PASSWORD} --host=${DB_HOST} ${DB_DATABASE} > "
DB_BACKUP_SSH_USER=root
DB_BACKUP_SSH_HOST=127.0.0.1
DB_BACKUP_FILE="backup-${APP_NAME}-db"
DB_BACKUP_FILE_EXT=".sql"
DB_REMOTE_ACCESS=false
```

PUBLISH CONFIG
--------------

[](#publish-config)

- `php artisan vendor:publish --tag=db-config`

LICENSE
-------

[](#license)

The DB package is an open-sourced software licensed under the [MIT license](https://opensource.org/licenses/MIT).

###  Health Score

36

—

LowBetter than 82% of packages

Maintenance54

Moderate activity, may be stable

Popularity26

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity45

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 88.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 ~171 days

Total

6

Last Release

313d ago

Major Versions

v1.0.2 → v2.0.02024-06-18

v2.0.1 → v3.0.02025-07-01

PHP version history (2 changes)v1.0.0PHP &gt;=8.0

v1.0.2PHP &gt;=7.3

### Community

Maintainers

![](https://www.gravatar.com/avatar/9f17e9c52bd3fcd53771df07c9299bf0e787531d9bfd60daaaeb40f7f03769fe?d=identicon)[ikay007](/maintainers/ikay007)

---

Top Contributors

[![monitecture](https://avatars.githubusercontent.com/u/100952206?v=4)](https://github.com/monitecture "monitecture (16 commits)")[![ikechukwukalu](https://avatars.githubusercontent.com/u/60310041?v=4)](https://github.com/ikechukwukalu "ikechukwukalu (1 commits)")[![nowodev](https://avatars.githubusercontent.com/u/43044740?v=4)](https://github.com/nowodev "nowodev (1 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/ikechukwukalu-databasebackup/health.svg)

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

###  Alternatives

[laravel/cashier

Laravel Cashier provides an expressive, fluent interface to Stripe's subscription billing services.

2.5k25.9M107](/packages/laravel-cashier)[laravel/pulse

Laravel Pulse is a real-time application performance monitoring tool and dashboard for your Laravel application.

1.7k12.1M99](/packages/laravel-pulse)[tucker-eric/eloquentfilter

An Eloquent way to filter Eloquent Models

1.8k4.8M26](/packages/tucker-eric-eloquentfilter)[roots/acorn

Framework for Roots WordPress projects built with Laravel components.

9682.1M97](/packages/roots-acorn)[clickbar/laravel-magellan

This package provides functionality for working with the postgis extension in Laravel.

423715.4k1](/packages/clickbar-laravel-magellan)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

255.2k](/packages/aedart-athenaeum)

PHPackages © 2026

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