Backup your Flarum files and database to one or more local or remote storages.
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.
Follow the instructions @ https://extiverse.com/premium/subscriptions to configure Composer to be able to install premium extensions.
composer require datitisev/flarum-backup
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.
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
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
If you discover a security vulnerability within Backup, please email [email protected]isev.me. 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.
Original by Flagrow.