Backup

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

Compatible with Flarum 0.1.0-beta.14.1

0 subscribers

7 downloads

released on May 24, 2020

Tags

  • premium

  • backup

0
0
$5.00 per month
standard
not for profit
$40.00 per year
standard
not for profit
$60.00 once
standard
not for profit

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.

© 2020 Hyn by DaniĆ«l "Luceos" Klabbers. All rights reserved. · Extensions and extension information is provided by the respective (copyright holding) authors. · Images on Extiverse pages are from Unsplash.