Strapi plugin logo for Backup

Backup
Plugin verified by Strapi

Strapi backup plugin for the cloud.

Strapi Plugin Backup

Automate the backup of uploads and database to the cloud.

Features

  • Database backup
  • Uploads files backup
  • Cleanup of backups

Installation

npm install strapi-plugin-backup

Configuration

Please see documentation for more information about configuration.

Example

1// ./config/plugins.js
2
3module.exports = ({env}) => {
4  return ({
5    // ...
6    backup: {
7      enabled: true,
8      config: {
9        cronSchedule: '0 9-17 * * *', // At minute 0 past every hour from 9 through 17
10        storageService: 'aws-s3',
11        awsAccessKeyId: '<AWS_ACCESS_KEY_ID>',
12        awsSecretAccessKey: '<AWS_SECRET_ACCESS_KEY>',
13        awsRegion: '<AWS_REGION>',
14        awsS3Bucket: '<AWS_S3_BUCKET>',
15        databaseDriver: env('DATABASE_CLIENT'),
16        mysqldumpExecutable: '/path/to/your/mysqldump/bin',
17        mysqldumpOptions: [
18          '--add-drop-table',
19          '--extended-insert',
20          '--lock-tables',
21          '--dump-date'
22        ],
23        allowCleanup: true,
24        timeToKeepBackupsInSeconds: 172800, // 2 days
25        cleanupCronSchedule: '0 9 * * *', // Each day at 09:00 AM
26        errorHandler: (error, strapi) => {
27          console.log(error);
28        },
29      }
30    },
31    // ...
32  })
33};

Releases

This project follows the Semantic Versioning convention (https://semver.org) for version numbering.

Security

If you discover any security-related issues, please email mail@adebayo.fr instead of using the issue tracker.

License

Please see License File for more information.

Install now

npm install strapi-plugin-backup

STATS

9 GitHub stars140 weekly downloads

Last updated

257 days ago

Strapi Version

4.0.0 and above

Author

github profile image for Adebayo Hountondji
Adebayo Hountondji

Useful links

Create your own plugin

Check out the available plugin resources that will help you to develop your plugin or provider and get it listed on the marketplace.