Backup

Backup datitisev/flarum-backup

Backup your Flarum files and database to one or more local or remote storages.

Downloads
76
Subscribers
10

Plan comparison

Plans

Subscribe to any of the available plans below.

Plan Select
$40.00 once
For-Profit
log in
$25.00 per year
For-Profit
log in
$3.00 per month
For-Profit
log in

Backup

Backup offers the ability to periodically create and upload a backup of your most important data to any of the configured (remote) storage drivers, including S3, FTP and dropbox.

This extension will create a backup of your forum including the database and your assets directory. It combines them into a zip file and uploads it to all the configured storage drivers.

Installation

Follow the instructions @ https://extiverse.com/premium/subscriptions to configure Composer to be able to install premium extensions.

composer require datitisev/flarum-backup:"*"

Configuration

The admin area now has a new pane called "Backup" it lists all currently supported remote storage drivers. Some of these might be greyed out, you can see the requirements to use them when clicking the configuration modal by clicking the tripple dot behind the adapter.

Once the requirements for an adapter are met the configuration pane is now showing a form that asks for credentials or paths.

After you configured an adapter make sure you also enable them by checking the checkbox.

Activation

In order to test the configured and enabled backup adapter, we recommend doing a manual test run first via SSH:

php flarum backup -vvv

If any issues arise, try to see if your adapter(s) are configured correctly.

Now that this works you can set up a cronjob that runs the command, for instance running each night at midnight:

0 0 * * * cd /var/www/html && php flarum backup

Drivers

You can store your backup to the following locations.

If you need to back up your data to a service not listed below, please suggest it, and I'll do my best to add the service.

  • Local storage
  • Alibaba Cloud (Aliyun)
  • Microsoft Azure
  • Amazon AWS S3
  • Dropbox
  • FTP

Security

If you discover a security vulnerability within Backup, please email [email protected]. All security vulnerabilities will be promptly addressed.

Please include as many details as possible. You can use php flarum info to get the PHP, Flarum and extension versions installed.

Links

Original by Flagrow logo Flagrow.

Versions

  • Version 1.1.0.

    Likely works with Flarum v1.8.9.

  • 16 additional versions.
  • Extension created.