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
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
// ./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
}
},
// ...
})
};
This project follows the Semantic Versioning convention (https://semver.org) for version numbering.
Please see CHANGELOG for more information on what has changed recently.
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.