Socket
Socket
Sign inDemoInstall

google-drive-mysql-backup

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

google-drive-mysql-backup

Backs up your mysql data to your google drive


Version published
Weekly downloads
2
Maintainers
1
Weekly downloads
 
Created
Source

Google Drive Mysql Backup

  • Backs up your mysql data to your google drive

Usage

const createAndUploadBackup = require('google-drive-mysql-backup');

// Database configuration
const dbConfig = {
    host: 'localhost',
    user: 'root',
    password: '',
    database: 'databasename'
};

// Google Drive configuration
const googleDriveConfig = {
    parentId: 'root',
    deleteAfterUpload: false
};

// Path to the private key JSON file
const privateKeyPath = './path/to/your/private_key.json';

// Create and upload backup
createAndUploadBackup(privateKeyPath, dbConfig, googleDriveConfig)
    .then(() => console.log('Backup created and uploaded successfully'))
    .catch(err => console.error('Error during backup and upload:', err));

Keywords

FAQs

Package last updated on 31 May 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc