Strapi backup plugin for the cloud.
Automate the backup of uploads and database to the cloud.
npm install strapi-plugin-backup
Please see documentation for more information about configuration.
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};
This project follows the Semantic Versioning convention (https://semver.org) for version numbering.
If you discover any security-related issues, please email mail@adebayo.fr instead of using the issue tracker.
Please see License File for more information.
npm install strapi-plugin-backup
Check out the available plugin resources that will help you to develop your plugin or provider and get it listed on the marketplace.