PHPackages                             pauloamgomes/backupandrestore - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. pauloamgomes/backupandrestore

AbandonedArchivedProject[Utility &amp; Helpers](/categories/utility)

pauloamgomes/backupandrestore
=============================

Backup and Restore addon for Cockpit CMS.

1625[4 issues](https://github.com/pauloamgomes/BackupAndRestore/issues)[3 PRs](https://github.com/pauloamgomes/BackupAndRestore/pulls)Hack

Since Feb 4Pushed 7y ago2 watchersCompare

[ Source](https://github.com/pauloamgomes/BackupAndRestore)[ Packagist](https://packagist.org/packages/pauloamgomes/backupandrestore)[ RSS](/packages/pauloamgomes-backupandrestore/feed)WikiDiscussions master Synced 2w ago

READMEChangelog (1)DependenciesVersions (1)Used By (0)

Cockpit Backup and Restore
==========================

[](#cockpit-backup-and-restore)

This addon extends Cockpit CMS core functionality by providing a granular and flexible backup and restore mechanism.

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

[](#installation)

1. Confirm that you have Cockpit CMS (Next branch) installed and working.
2. Download zip and extract to 'your-cockpit-docroot/addons' (e.g. cockpitcms/addons/BackupAndRestore)
3. Access module settings () and confirm that page loads.

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

[](#configuration)

The Backup and Restore operations are available to the super admin user, and they can be used by other users if they belong to a group with proper permissions. The following permissions are defined:

- manage.create → Can create and upload backups
- manage.view → Can view and download backups
- manage.restore → Can restore backups
- manage.delete → Can delete backups

Above ACLs can be added to the global configuration file as below:

```
groups:
  managers:
    BackupAndRestore:
        manage.create: true
        manage.view: true
        manage.restore: true
        manage.delete: true
  editors:
        manage.view: true

```

Usage
-----

[](#usage)

### Creating a backup (UI)

[](#creating-a-backup-ui)

When a user clicks the Backup button a new page will be open with the backup options. The user can set a description for the backup and define what he wants to be stored along with the backup. The options are the following:

- Global Cockpit configuration: the global config.yaml file settings
- Collection definitions: the structure (Name, Icon, Fields, Rules, etc..) of all existing collections
- Form definitions: the structure (Name, etc..) of all existing forms
- Region definitions: the structure (Name, fields, etc..) of all existing regions
- Webhook definitions: the configurations of all existing webhooks
- User accounts: all existing user accounts
- Collection entries: the contents of all collections
- Assets: all the saved assets
- Uploads: all the files and directories inside the uploads folder

Screencast:

### Creating a backup (REST API)

[](#creating-a-backup-rest-api)

It's possible to create a backup using the REST API, that can be useful for example for doing automatic backups on cron execution. For using the rest API is required to have a configured token (global or that can use the backupandrestore/create rule):

[![Cockpit Backup and Restore tokens](https://camo.githubusercontent.com/325fa2b748d3192733e2c82027c6c5bcbc3f8bad66288f638eb0aee659fa4a23/68747470733a2f2f6d6f6e6f736e61702e636f6d2f66696c652f53685232314847454e47536f644b57564b427633424251444c4d394b70782e706e67)](https://camo.githubusercontent.com/325fa2b748d3192733e2c82027c6c5bcbc3f8bad66288f638eb0aee659fa4a23/68747470733a2f2f6d6f6e6f736e61702e636f6d2f66696c652f53685232314847454e47536f644b57564b427633424251444c4d394b70782e706e67)

Triggering the backup only requires a request like in the screencast

### Restoring a backup

[](#restoring-a-backup)

Any valid backup file that is stored in the Cockpit backups folder can be restored using the UI, the process of restoring is similar to creating a backup:

Backup files can be also uploaded and restored using the UI, just click on upload and select your backup, after uploading the file, it will be available on the backups list.

Possible issues
---------------

[](#possible-issues)

The approach taken to handle backups is based on the Cockpit API functions, so further changes on Cockpit may affect existing backup/restore functionality. The decision to handle the backups that way, instead of a simple backup/dump of the database, was to provide more granularity and flexibility, so a backup can consist for example only in user accounts, system config, collections structure or everything. Also, there is no need to deal with particularities of dumping/restoring sqlite or mongodb databases.

Copyright and license
---------------------

[](#copyright-and-license)

Copyright 2018 pauloamgomes under the MIT license.

###  Health Score

21

—

LowBetter than 18% of packages

Maintenance15

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity39

Early-stage or recently created project

 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.

### Community

Maintainers

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

---

Top Contributors

[![pauloamgomes](https://avatars.githubusercontent.com/u/102261?v=4)](https://github.com/pauloamgomes "pauloamgomes (12 commits)")

---

Tags

cockpit-cmscockpit-cms-addon

### Embed Badge

![Health badge](/badges/pauloamgomes-backupandrestore/health.svg)

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

###  Alternatives

[fungio/google-calendar-bundle

Provides a google calendar integration for your Symfony 3 Project.

1042.2k](/packages/fungio-google-calendar-bundle)[hubleto/erp

Business Application Hub. Opensource ERP and CRM.

391.5k5](/packages/hubleto-erp)

PHPackages © 2026

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