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
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
// ./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.

Install now

npm install strapi-plugin-backup

STATS

4 GitHub stars48 weekly downloads

Last updated

54 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.