constcreateAndUploadBackup=require('google-drive-mysql-backup');// Database configurationconstdbConfig={host: 'localhost',user: 'root',password: '',database: 'databasename'};// Google Drive configurationconstgoogleDriveConfig={parentId: 'root',deleteAfterUpload: false};// Path to the private key JSON fileconstprivateKeyPath='./path/to/your/private_key.json';// Create and upload backupcreateAndUploadBackup(privateKeyPath,dbConfig,googleDriveConfig).then(()=>console.log('Backup created and uploaded successfully')).catch(err=>console.error('Error during backup and upload:',err));