PHPackages                             pxgamer/sqlbak-cli - 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. [CLI &amp; Console](/categories/cli)
4. /
5. pxgamer/sqlbak-cli

ActiveLibrary[CLI &amp; Console](/categories/cli)

pxgamer/sqlbak-cli
==================

A CLI script for backing up MySQL databases.

v1.0.3(8y ago)15MITPHPPHP ^7.1

Since Sep 12Pushed 8y ago1 watchersCompare

[ Source](https://github.com/owenvoke/sqlbak-cli)[ Packagist](https://packagist.org/packages/pxgamer/sqlbak-cli)[ RSS](/packages/pxgamer-sqlbak-cli/feed)WikiDiscussions master Synced 4d ago

READMEChangelogDependencies (3)Versions (6)Used By (0)

sqlbak-cli
==========

[](#sqlbak-cli)

[![Latest Version on Packagist](https://camo.githubusercontent.com/c88b80bcd063bb3aef21331d002d1078e6b699830ad49f28e6a97fdbf2a6d7e4/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f707867616d65722f73716c62616b2d636c692e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/pxgamer/sqlbak-cli)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Build Status](https://camo.githubusercontent.com/b78dc48f5f19f954d0df83aa68bf7f0d3b09fd0007847019bc6057a67ac2ced6/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f707867616d65722f73716c62616b2d636c692f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/pxgamer/sqlbak-cli)[![Style CI](https://camo.githubusercontent.com/c02c8ee0e29bd44c347c543a38e141a275d3efa6844ebf918ed033f3ae4977c3/68747470733a2f2f7374796c6563692e696f2f7265706f732f3130333238383132372f736869656c64)](https://styleci.io/repos/103288127)[![Code Coverage](https://camo.githubusercontent.com/45ba872e97c5f6f2111ea496d2daf6f4e6ad799bd6b4e3e29aeb947afd3a28de/68747470733a2f2f696d672e736869656c64732e696f2f636f6465636f762f632f6769746875622f707867616d65722f73716c62616b2d636c692e7376673f7374796c653d666c61742d737175617265)](https://codecov.io/gh/pxgamer/sqlbak-cli)[![Total Downloads](https://camo.githubusercontent.com/551c895a0dee64cff1891fb132c5b79029e10909a1e0a663c5a17e76567839bf/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f707867616d65722f73716c62616b2d636c692e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/pxgamer/sqlbak-cli)

A CLI script for backing up MySQL databases.

Structure
---------

[](#structure)

```
bin/
src/
tests/
vendor/

```

Install
-------

[](#install)

Via Composer

```
$ composer require pxgamer/sqlbak-cli
```

Usage
-----

[](#usage)

Configuration can either be done using the `--` CLI options, or provided in a JSON file.

Standard naming is `.sqlbak.json`, and can be provided using `-c .sqlbak.json` when using a command.

```
{
  "username": "root",
  "password": "root",
  "databases": [
    "test"
  ],
  "compress": true
}
```

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

[](#change-log)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Testing
-------

[](#testing)

```
$ composer test
```

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

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) and [CODE\_OF\_CONDUCT](CODE_OF_CONDUCT.md) for details.

Security
--------

[](#security)

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

Credits
-------

[](#credits)

- [pxgamer](https://github.com/pxgamer)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity62

Established project with proven stability

 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 ~28 days

Total

4

Last Release

3082d ago

PHP version history (2 changes)v1.0.0PHP ^7.1.0

v1.0.2PHP ^7.1

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1899334?v=4)[Owen Voke](/maintainers/owenvoke)[@owenvoke](https://github.com/owenvoke)

---

Top Contributors

[![owenvoke](https://avatars.githubusercontent.com/u/1899334?v=4)](https://github.com/owenvoke "owenvoke (29 commits)")

---

Tags

backupclimysqlphp7

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/pxgamer-sqlbak-cli/health.svg)

```
[![Health](https://phpackages.com/badges/pxgamer-sqlbak-cli/health.svg)](https://phpackages.com/packages/pxgamer-sqlbak-cli)
```

###  Alternatives

[illuminate/console

The Illuminate Console package.

12944.1M5.1k](/packages/illuminate-console)[crazywhalecc/static-php-cli

Build single static PHP binary, with PHP project together, with popular extensions included.

1.8k13.9k](/packages/crazywhalecc-static-php-cli)[matthiasnoback/symfony-console-form

Use Symfony forms for Console command input

368264.8k8](/packages/matthiasnoback-symfony-console-form)[phpcr/phpcr-shell

Shell for PHPCR

721.3M8](/packages/phpcr-phpcr-shell)[madewithlove/license-checker

CLI tool to verify allowed licenses for composer dependencies

54449.8k21](/packages/madewithlove-license-checker)[shel/neos-terminal

Neos CMS Ui terminal for running Eel expressions and other commands

1441.3k](/packages/shel-neos-terminal)

PHPackages © 2026

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