Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/belguinan/mysql-to-google-drive
Backup your database to google drive
https://github.com/belguinan/mysql-to-google-drive
Last synced: about 1 month ago
JSON representation
Backup your database to google drive
- Host: GitHub
- URL: https://github.com/belguinan/mysql-to-google-drive
- Owner: belguinan
- License: mit
- Created: 2020-02-26T20:57:41.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2020-02-26T21:12:07.000Z (almost 5 years ago)
- Last Synced: 2024-07-20T18:29:20.240Z (6 months ago)
- Language: PHP
- Size: 3.91 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# mysql-to-google-drive
This is a script that i use to backup my databases to google drive.
### Note
The only file needed here is **dumper.php**### Install
Set your database creds on **dumper.php**
```sh
composer install
```Enable your google drive API [here](https://developers.google.com/drive/api/v3/quickstart/php)
Download and replace **credentials.json**Then ...
```sh
php dumper
```Visit url and give your application access to the API, a new file named **token.json** is saved under the project directory.
Deploy all files to your server and configure a cron job that runs dumper.php every hour or every day.
(you are free to choose whatever you like)