Strapi backup plugin for the cloud.

Latest version

v2.0.3

released April 9, 2026

npm install strapi-plugin-backup

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

// ./config/plugins.js

module.exports = ({env}) => {
  return ({
    // ...
    backup: {
      enabled: true,
      config: {
        cronSchedule: '0 9-17 * * *', // At minute 0 past every hour from 9 through 17
        storageService: 'aws-s3',
        awsAccessKeyId: '<AWS_ACCESS_KEY_ID>',
        awsSecretAccessKey: '<AWS_SECRET_ACCESS_KEY>',
        awsRegion: '<AWS_REGION>',
        awsS3Bucket: '<AWS_S3_BUCKET>',
        databaseDriver: env('DATABASE_CLIENT'),
        mysqldumpExecutable: '/path/to/your/mysqldump/bin',
        mysqldumpOptions: [
          '--add-drop-table',
          '--extended-insert',
          '--lock-tables',
          '--dump-date'
        ],
        allowCleanup: true,
        timeToKeepBackupsInSeconds: 172800, // 2 days
        cleanupCronSchedule: '0 9 * * *', // Each day at 09:00 AM
        errorHandler: (error, strapi) => {
          console.log(error);
        },
      }
    },
    // ...
  })
};

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.

Submit your content

Share your work with the community and get it listed in the Strapi ecosystem for everyone to discover and use.

Submit
Submit your content