PHPackages                             bcairns/silverstripe-backuprestore - 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. bcairns/silverstripe-backuprestore

ActiveSilverstripe-vendormodule[Database &amp; ORM](/categories/database)

bcairns/silverstripe-backuprestore
==================================

Simple one-click backup &amp; restore of SilverStripe MySQL databases from within the CMS.

5.0(2y ago)815.1k↓50%3BSD-3-ClausePHP

Since Jul 20Pushed 2y ago1 watchersCompare

[ Source](https://github.com/bcairns/silverstripe-backuprestore)[ Packagist](https://packagist.org/packages/bcairns/silverstripe-backuprestore)[ Docs](http://github.com/bcairns/silverstripe-backuprestore)[ RSS](/packages/bcairns-silverstripe-backuprestore/feed)WikiDiscussions 5.x Synced 1mo ago

READMEChangelog (4)Dependencies (2)Versions (10)Used By (0)

SilverStripe Backup/Restore
===========================

[](#silverstripe-backuprestore)

[![Screenshot](https://raw.githubusercontent.com/bcairns/silverstripe-backuprestore/4.x/screenshot.png)](https://raw.githubusercontent.com/bcairns/silverstripe-backuprestore/4.x/screenshot.png)

Versions
--------

[](#versions)

- The 5.x branch contains the SilverStripe 5 version.
- The 4.x branch contains the SilverStripe 4 version.
- The 3.x branch contains the SilverStripe 3 version.

Description
-----------

[](#description)

This module provides a CMS panel (for Admins only) with buttons to Backup and Restore the current database.

Ideal for when you need to pull down a copy of the live database but don't have direct access.

This module does NOT require mysqldump command-line utility, unlike some other similar modules.

Usage
-----

[](#usage)

Install via composer:

```
composer require bcairns/silverstripe-backuprestore

```

There will be a new Backup/Restore panel in the main CMS menu.

- Under "Backup", click "Download Backup File" to download a GZIPPED database dump. This is a standard SQL dump file that should be usable with other applications than this module. It performs DROP TABLE on each table and then recreates them.
- Under "Restore", click "Select File" to choose a database dump file (either gzipped or uncompressed should both work), then click "Upload Backup File" to upload and execute it.

If a live environment is detected, Backup/Restore will display a very prominent alert message in the Restore section, warning against overwriting your live database.

Options
-------

[](#options)

### Excluded Tables

[](#excluded-tables)

There is an `excluded_tables` option which can be used to omit certain tables if needed.

```
BCairns\BackupRestore\BackupRestore:
  excluded_tables:
    - SubmittedFormField

```

### Database Temp Dir and .htaccess File

[](#database-temp-dir-and-htaccess-file)

The module writes the DB dump to disk (on the server) for compression and download.

By default, it will write to "assets/.protected/\_db", and also will create an `.htaccess` file blocking access to the directory (as an extra precaution, even though typically this should already not be web-accessible).

These can both be configured:

```
BCairns\BackupRestore\BackupRestore:
  db_temp_dir: "../../my_temp_dir"
  create_htaccess: false

```

Acknowledgements
----------------

[](#acknowledgements)

- This module borrows heavily from Drupal's [Backup and Migrate](https://www.drupal.org/project/backup_migrate) module.

###  Health Score

36

—

LowBetter than 82% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity31

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity68

Established project with proven stability

 Bus Factor1

Top contributor holds 66.7% 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 ~233 days

Recently: every ~362 days

Total

9

Last Release

989d ago

Major Versions

3.x-dev → 4.02019-05-03

4.x-dev → 5.02023-08-27

### Community

Maintainers

![](https://www.gravatar.com/avatar/581411a15383c5e336fc3c7996a73dca59e088e3e0a8c53331465835041fa6b0?d=identicon)[bcairns](/maintainers/bcairns)

---

Top Contributors

[![bcairns](https://avatars.githubusercontent.com/u/638372?v=4)](https://github.com/bcairns "bcairns (2 commits)")[![davejtoews](https://avatars.githubusercontent.com/u/9664035?v=4)](https://github.com/davejtoews "davejtoews (1 commits)")

---

Tags

databasebackupdumpmysqlsilverstripeuploadrestoredownloaddeploymentstaging

### Embed Badge

![Health badge](/badges/bcairns-silverstripe-backuprestore/health.svg)

```
[![Health](https://phpackages.com/badges/bcairns-silverstripe-backuprestore/health.svg)](https://phpackages.com/packages/bcairns-silverstripe-backuprestore)
```

###  Alternatives

[rah/danpu

Zero-dependency MySQL dump library for easily exporting and importing databases

64401.8k10](/packages/rah-danpu)[cytopia/mysqldump-secure

Secure mysqldump script with encryption, compression, logging, blacklisting and Nagios monitoring integration

1474.7k1](/packages/cytopia-mysqldump-secure)[cornford/backup

An easy way backup and restore databases in Laravel.

4225.6k](/packages/cornford-backup)[tommyknocker/pdo-database-class

Framework-agnostic PHP database library with unified API for MySQL, MariaDB, PostgreSQL, SQLite, MSSQL, and Oracle. Query Builder, caching, sharding, window functions, CTEs, JSON, migrations, ActiveRecord, CLI tools, AI-powered analysis. Zero external dependencies.

845.7k](/packages/tommyknocker-pdo-database-class)[phelium/mysql-backup

Backup easily your MySQL database !

278.2k2](/packages/phelium-mysql-backup)[spanjeta/yii2-backup

Database Backup and Restore functionality

285.0k1](/packages/spanjeta-yii2-backup)

PHPackages © 2026

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