Google Drive Mysql Backup
- Backs up your mysql data to your google drive
Usage
const createAndUploadBackup = require('google-drive-mysql-backup');
const dbConfig = {
host: 'localhost',
user: 'root',
password: '',
database: 'databasename'
};
const googleDriveConfig = {
parentId: 'root',
deleteAfterUpload: false
};
const privateKeyPath = './path/to/your/private_key.json';
createAndUploadBackup(privateKeyPath, dbConfig, googleDriveConfig)
.then(() => console.log('Backup created and uploaded successfully'))
.catch(err => console.error('Error during backup and upload:', err));