Simple backup data and database to Cloud (Google Drive) service account and share to personal Google drive account
- Backup MySQL Database ✅
- Backup compressed data (like as images, video etc) (coming soon)
- Make sure your machine has installed NodeJS
- Clone this project and run
npm install // or yarn install
- Open file
.env
on the root project for setup configuration and fill configuration MySQL credentials and other filled what you want - Create google service account on this tutorial and enable Google Drive API on Google Console
- Download Service Account JSON Client file and put to
gdrive/account/
rename withservice-account.json
- Open
index.js
set interval backup what you want, for this example run backup every 6 hours, see interval documentation on thisinterval: '6 hours'
node index.js
If you run on the server and want to autorun at startup, you can follow this