Backup Mysql DB to AWS S3. Provides a simple class to create MySQL database backups and store them in AWS S3 using the AWS SDK. Version 1.5.0. Supports automatic scheduling via cron syntax and a webhook feature (Express-based) to trigger backups remotely. Key differentiators: minimal configuration via environment variables, built-in scheduler, optional webhook server. Release cadence appears irregular. Compared to alternatives like mysql-s3-backup or node-cron, this package is less maintained but offers a straightforward wrapper for automated backups.
npm install backupdbtos3No compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to import and run a backup manually using the default class and runBackupProcess method.
Ensure all required env variables are set, e.g., via .env file.
To enable scheduling, pass a cron string like '0 2 * * *'. For no scheduling, pass false or omit the argument (but note that omitting still disables it).
Avoid using for very large databases in production without testing. Consider alternative packages that stream backups.
If you need AWS SDK v3, consider migrating to a different package or updating dependencies manually.
Add authentication middleware or restrict access via firewall/whitelist.
Set AWS_REGION in your environment or .env file.
Run 'npm install express' or ensure it is in your package.json dependencies.
Use 'import MySqlS3Backup from "backupdbtos3"' and instantiate with 'new MySqlS3Backup()'.