Craft Backup
The go-to backup package for Craft CMS, heavily inspired by spatie/laravel-backup.
Command-line only, database and files, compressed, encrypted, shipped off-site over SFTP.
If you've used laravel-backup on a Laravel project, you already know how this one feels.
No control-panel UI, no licensing fees. Schedule it from cron, forget about it.
Requirements
- Craft CMS 5.0 or later
- PHP 8.2 or later
- A database supported by Craft itself (we delegate to
Craft::$app->db->backup()):
| Engine | Versions | Dump tool required on PATH |
|---|---|---|
| MySQL | 5.7.8+ / 8.0.5+ | mysqldump |
| MariaDB | 10.4.6+ | mysqldump |
| PostgreSQL | 13+ | pg_dump |
MongoDB is not supported (Craft itself runs on SQL). For everything else — encryption, SFTP, archive handling — we use only PHP extensions that ship with Craft's own requirements.
Installation and docs
Head over to the repository for instructions.
Yet another backup plugin? Here's why:
At webhub we've been building on Craft CMS and Laravel for years, and we want backups to work the same way across every project — whether the site runs on Craft or Laravel. This plugin closes one more part of the gap between the two stacks, following our Craft Oh Dear and Flare plugins. On Laravel projects we reach for Spatie's excellent laravel-backup without a second thought; we wanted the same reliable, boring-in-a-good-way experience on Craft. And with Craft 5 (Yii-based) and Craft 6 (Laravel-based) both in the community's future, every Craft developer will soon be maintaining projects on both stacks — a backup tool that behaves consistently across all of them matters.
To install this plugin, copy the command above to your terminal.
This plugin doesn't have any reviews.