PHPackages                             tekkenking/dbbackupman - 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. tekkenking/dbbackupman

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

tekkenking/dbbackupman
======================

Cross-DB backups (PostgreSQL/MySQL/MariaDB) with uploads, retention, and incremental options.

0.2.0(5mo ago)03MITPHPPHP ^8.1|^8.2|^8.3

Since Oct 1Pushed 5mo agoCompare

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

READMEChangelog (1)Dependencies (8)Versions (4)Used By (0)

DbBackupman
===========

[](#dbbackupman)

Cross-DB backups for Laravel with uploads, incremental modes, retention, and per-disk remote paths.

- **Databases:** PostgreSQL, MySQL, MariaDB
- **Modes:** `full`, `schema`, `incremental`
- **Uploads:** Multiple filesystem disks; per-disk remote paths (empty path → bucket root)
- **Retention:** Keep N latest sets and/or delete sets older than D days
- **Laravel:** 10 · 11 · 12 (PHP 8.1+)

`composer` package: **`tekkenking/dbbackupman`**Namespace: **`Tekkenking\Dbbackupman`**

---

Table of Contents
-----------------

[](#table-of-contents)

- [Requirements](#requirements)
- [Install](#install)
- [Configuration](#configuration)
- [Command Usage](#command-usage)
- [Examples](#examples)
- [Uploads: Per-Disk Remote Paths](#uploads-per-disk-remote-paths)
- [Incremental Backups &amp; State](#incremental-backups--state)
- [Restoring Backups](#restoring-backups)
- [Scheduling](#scheduling)
- [Using the Facade](#using-the-facade)
- [Testing the Package](#testing-the-package)
- [Troubleshooting](#troubleshooting)
- [Version Compatibility](#version-compatibility)
- [Security Notes](#security-notes)
- [Contributing](#contributing)
- [License](#license)

---

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

[](#requirements)

- PHP **8.1+** (8.2/8.3 recommended)
- Laravel **10 / 11 / 12**
- DB client tools available on the host that runs the command:

    - PostgreSQL: `pg_dump`, `psql` (and `pg_dumpall` if using `--globals`)
    - MySQL/MariaDB: `mysqldump`, `mysqlbinlog` (for incremental)
- Properly configured Laravel **database connection(s)** and **filesystem disk(s)**

> The command preflights required tools and will error early if a binary is missing.

---

Install
-------

[](#install)

```
composer require tekkenking/dbbackupman
php artisan vendor:publish --provider="Tekkenking\Dbbackupman\DbBackupServiceProvider" --tag=config
```

This publishes `config/dbbackup.php`.

---

Configuration
-------------

[](#configuration)

`config/dbbackup.php`:

```
