PHPackages                             swishdigital/db-dump - 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. swishdigital/db-dump

ActiveCraft-plugin[Database &amp; ORM](/categories/database)

swishdigital/db-dump
====================

A simple way to perform database backups in Craft CMS 3/4.

5.0.0(2y ago)43.5k1[1 issues](https://github.com/helloswish/craft-db-dump/issues)MITPHPCI failing

Since Nov 7Pushed 2y ago1 watchersCompare

[ Source](https://github.com/helloswish/craft-db-dump)[ Packagist](https://packagist.org/packages/swishdigital/db-dump)[ RSS](/packages/swishdigital-db-dump/feed)WikiDiscussions master Synced today

READMEChangelog (10)Dependencies (1)Versions (13)Used By (0)

DB Dump plugin for Craft CMS 4.x/5.x
====================================

[](#db-dump-plugin-for-craft-cms-4x5x)

A simple way to perform database backups in Craft CMS 4/5.

This version of Dump was ported from the original [Craft 2 version](https://github.com/putyourlightson/craft-dump) with permission by [Ben Croker](https://github.com/putyourlightson).

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

[](#requirements)

This plugin requires Craft CMS 4.0.0-alpha or later, or Craft CMS 5.x or later.

Installation
------------

[](#installation)

To install the plugin, follow these instructions:

### Automated Installation

[](#automated-installation)

Visit the Plugin Store within your Craft project Control Panel. Search for "DB Dump" and select the plugin. Click install.

### Manual Installation

[](#manual-installation)

1. Open your terminal and go to your Craft project:

    ```
     cd /path/to/project

    ```
2. Then tell Composer to load the plugin:

    ```
     composer require swishdigital/db-dump

    ```
3. In the Control Panel, go to Settings → Plugins and click the “Install” button for DB Dump.

Configuring DB Dump
-------------------

[](#configuring-db-dump)

### Before You Begin

[](#before-you-begin)

Open your config/general.php file and add

```
'extraAllowedFileExtensions' => 'sql'

```

to either your global settings array, or the array for the environment where you want to perform backups.

### Settings

[](#settings)

In the Craft Control Panel, navigate to Settings &gt; Plugins &gt; DB Dump &gt; Settings. Set a key, choose an asset volume with which to store your backups, and set a number of old backups to keep.

Using DB Dump
-------------

[](#using-db-dump)

To run a backup, create a GET or a POST request to the DB Dump action URL.

#### Link to the Backup Function in a Twig Template:

[](#link-to-the-backup-function-in-a-twig-template)

```
Backup Now

```

#### Trigger a Backup by Visiting a URL in your Browser:

[](#trigger-a-backup-by-visiting-a-url-in-your-browser)

```
https://domain.com/index.php?p=actions/db-dump&key=12345

```

#### Setup a CRON Job to Trigger Backups on a Regular Interval:

[](#setup-a-cron-job-to-trigger-backups-on-a-regular-interval)

Your server CRON syntax may vary. Try either of the examples below. *Ensure you've set (above) the maximum number of backups to keep, unless you potentially want many, many backups.*

```
wget https://domain.com/index.php?p=actions/db-dump&key=12345 >/dev/null 2>&1

```

or

```
curl -s -o /dev/null "http://aamgi.loc/actions/db-dump?key=12345678"

```

DB Dump Roadmap
---------------

[](#db-dump-roadmap)

Some things to do, and ideas for potential features:

- Nothing at this time

Brought to you by [Swish Digital](https://swishdigital.co)

###  Health Score

32

—

LowBetter than 69% of packages

Maintenance15

Infrequent updates — may be unmaintained

Popularity23

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity65

Established project with proven stability

 Bus Factor1

Top contributor holds 53.8% 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 ~148 days

Recently: every ~174 days

Total

12

Last Release

799d ago

Major Versions

3.0.3 → 4.0.0-alpha2022-05-31

4.1.1 → 5.0.02024-04-26

### Community

Maintainers

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

---

Top Contributors

[![chadcrowell](https://avatars.githubusercontent.com/u/48151?v=4)](https://github.com/chadcrowell "chadcrowell (14 commits)")[![jrrdnx](https://avatars.githubusercontent.com/u/4584671?v=4)](https://github.com/jrrdnx "jrrdnx (12 commits)")

---

Tags

backupcmsCraftcraftcmscraft-plugindb dump

### Embed Badge

![Health badge](/badges/swishdigital-db-dump/health.svg)

```
[![Health](https://phpackages.com/badges/swishdigital-db-dump/health.svg)](https://phpackages.com/packages/swishdigital-db-dump)
```

###  Alternatives

[verbb/formie

The most user-friendly forms plugin for Craft.

102393.6k70](/packages/verbb-formie)[verbb/comments

Add comments to your site.

13753.9k](/packages/verbb-comments)[verbb/vizy

A flexible visual editor field for Craft.

4250.4k](/packages/verbb-vizy)[verbb/hyper

A user-friendly links field for Craft.

24147.8k12](/packages/verbb-hyper)[verbb/social-poster

Automatically post entries to social media.

918.5k](/packages/verbb-social-poster)[dgrigg/craft-migration-assistant

Create content migrations at the click of a mouse. Keep environments in sync with ease.

2783.1k](/packages/dgrigg-craft-migration-assistant)

PHPackages © 2026

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