A Node.js module that automates MySQL database backups by dumping the database using mysqldump and uploading the resulting file to Google Drive. At version 0.0.9, it supports basic configuration for database connection and Google Drive folder selection, with an option to delete the local backup file after upload. It relies on Google API credentials via a service account private key JSON file. The package is simple and lightweight, but lacks TypeScript definitions and has minimal maintenance. Differentiators include a straightforward combined backup-and-upload workflow, but alternatives like `mysqldump` or `googleapis` may offer more flexibility.
npm install google-drive-mysql-backupNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Creates a MySQL database dump and uploads it to Google Drive using a service account key file.
Ensure mysqldump is installed (e.g., via mysql-client package) and accessible.
Enable Google Drive API in the Google Cloud Console and download the private key JSON for a service account with access to the Drive folder.
Consider using the official googleapis package directly for more control and updates.
Provide the correct absolute or relative path to the downloaded private key JSON file.
Check the DB_HOST environment variable or dbConfig.host; ensure MySQL server is running and accessible