Automatic Backup Plugin

Post Reply
User avatar
StephanStanisic
Support/Developer
Posts: 34
Joined: Fri Jul 05, 2019 8:51 pm

Automatic Backup Plugin

Post by StephanStanisic »

Hi,

Since I've had some bad luck with an installation of mine, I had lost a WonderCMS websites' database. Now the real solution to this is to take regular backups, but I didn't have a single one.

Backups should be automated, and I am really temped to write a plugin for this. My question, what would you like to see in this backup plugin?

Couple of points that I'm thinking about:
  • Using the default WonderCMS backup procedure for a full site backup.
  • Option to separately backup the database.js, and various .json database files (e.g. more frequent than a full backup).
  • Writing backups to local disk
  • Writing backups to external storage providers
    • FTP based? Maybe WebDAV based for Nextcloud support?
    • Dropbox, or other personal storage provider?
Please leave any idea's and suggestions!

wiz
Admin
Posts: 468
Joined: Sat Oct 30, 2010 12:23 am

Re: Automatic Backup Plugin

Post by wiz »

Hi Steph.
- Using the default WonderCMS backup procedure for a full site backup.
Seems like definitely the right way to go. The issue here could be if the user doesn't visit their website in a month, and if a backup is done daily, the backup system itself with always back up all other backups. A solution here would be to ignore other backups (the default backup mechanism doesn't ignore anything currently).
- Option to separately backup the database.js, and various .json database files (e.g. more frequent than a full backup).
This would also solve some of the issues (like huge backups).

The last two points you wrote don't seem as important for the start of the plugin, what do you think?

I wouldn't leave the user with too many options to avoid confusion, maybe just a "often" parameter which would decide when a backup would be performed (daily, weekly?), but for this to work, a start date has to be set (possibly when the plugin is installed to save the "start" date and go on from there).

This definitely sounds like an awesome plugin!

Post Reply