Backup functionality which is part of core #44
Need to do research into which plugins can be serve as base for this. Most important aspect is ability to perform a lightweight backup before installing and reverting in case of any failure.
User triggered backup/restore can wait for later phase of development.
The text was updated successfully, but these errors were encountered:
Minimal option for backup with the main goal of being able to recover the site after bad core/theme/plugin upgrade or install.
Backup should create backups of code files and options (options table). The idea is that if any content was created in time time between backup and restore it will not get lost, and same goes for user related settings.
It should be possible to trigger backup manually and perform automatically before upgrades (should it be a setting?).
Backups should be created in
Backups should be removed when they become older than 30 days and there are more than 30 in the directory. Probably should be configurable.
What is backuped should be extendable. Core of code files and options should always exist for a restore from safe mode, but plugins should be able to add whatever to it. Also trigger action when a backup was finished to be able to move the backups (but not remove) to external storage.
An action in the end of restore process should enable pluggins to trigger their own part of the restore. An action before the restore starts might enable plugins to "download" backups from external storage to present more restore options to the user.
…ructures for testing, modify backup code to use it. #44