Skip to content

pedrogalv/mysqlgooglestorage

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Mysql dump to google storage

Create an automatic mysql backup file and upload it on google storage.

I needed a free and automatic solution to maintain backups of my database without using my server space. So there it is.

Google Storage has a free quota of 5gb storage.

Tech

  • Node 8.x
  • Have MySQL installed and mysqldump on path

Installation

Install the dependencies in the project folder:

$ npm install

Create a Service Account. Save the credentials in credentials.json

Execution

$ node .

(Linux) Cronjob - Everyday, at midnight

0 0 * * * <NODE_PATH>/bin && <PROJECT_PATH>/index.js

About

Automatically backup mysql database and upload google storage

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors