# strapi-plugin-backup

> Automate the backup of uploads and database to the cloud.

Latest version **2.0.3** (published 2026-04-09) · MIT license · 0 weekly downloads

## Install

```sh
npm install strapi-plugin-backup
pnpm add strapi-plugin-backup
yarn add strapi-plugin-backup
bun add strapi-plugin-backup
```

## Health

**Score 45/100 (D)** — status: active.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

## Facts

| | |
|---|---|
| Version | 2.0.3 |
| Published | 2026-04-09 |
| First published | 2023-06-27 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=18.0.0 <=22.x.x |
| Dependencies | 4 |
| Unpacked size | 64 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 12 |
| Author | Adebayo Hountondji |
| Maintainers | adebayohountondji |
| Keywords | strapi-plugin, backup, aws, s3, gcp, gcs, azure, azure blob storage, mysql, postgres, sqlite |

## Links

- npm: https://www.npmjs.com/package/strapi-plugin-backup
- Repository: https://github.com/adebayohountondji/strapi-plugin-backup
- Homepage: https://market.strapi.io/plugins/strapi-plugin-backup
- Issues: https://github.com/adebayohountondji/strapi-plugin-backup/issues
- npm.io page: https://npm.io/package/strapi-plugin-backup

## Dependencies (4)

- [tar](https://npm.io/package/tar.md) >=3.0.0 <=6
- [aws-sdk](https://npm.io/package/aws-sdk.md) ^2.23.0
- [@azure/storage-blob](https://npm.io/package/@azure/storage-blob.md) ^12.0.0
- [@google-cloud/storage](https://npm.io/package/@google-cloud/storage.md) >=2.0.0 <=6

## Alternatives

- [@opentelemetry/exporter-zipkin](https://npm.io/package/@opentelemetry/exporter-zipkin.md) — 14.8M weekly downloads
- [pusher-js](https://npm.io/package/pusher-js.md) — 2.0M weekly downloads
- [browserify](https://npm.io/package/browserify.md) — 1.7M weekly downloads
- [sqs-consumer](https://npm.io/package/sqs-consumer.md) — 1.7M weekly downloads
- [@sanity/eventsource](https://npm.io/package/@sanity/eventsource.md) — 930.8K weekly downloads

## Recent versions

- 2.0.3 (latest) — 2026-04-09
- 2.0.2 — 2026-03-03
- 2.0.1 — 2025-11-03
- 2.0.0 — 2025-10-31
- 1.1.3 — 2024-03-10
- 1.1.2 — 2023-12-23
- 1.1.1 — 2023-11-16
- 1.1.0 — 2023-08-23
- 1.0.0 — 2023-08-19
- 1.0.0-rc.1 — 2023-08-18
- 1.0.0-rc — 2023-06-27

## README

# Strapi Plugin Backup

Automate the backup of uploads and database to the cloud.

## Features

- Database backup
- Uploads files backup
- Cleanup of backups

## Installation

```sh
npm install strapi-plugin-backup
```

## Configuration

Please
see [documentation](https://github.com/adebayohountondji/strapi-plugin-backup/blob/1.x/documentation/configuration.md)
for more information about configuration.

## Example

```js
// ./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](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](https://github.com/adebayohountondji/strapi-plugin-backup/blob/1.x/LICENSE) for more
information.

---
_Source: https://npm.io/package/strapi-plugin-backup · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
