https://github.com/sebastianfeldmann/phpbu-google-drive
Tiny CLI script to generate the google drive access token
https://github.com/sebastianfeldmann/phpbu-google-drive
Last synced: about 2 months ago
JSON representation
Tiny CLI script to generate the google drive access token
- Host: GitHub
- URL: https://github.com/sebastianfeldmann/phpbu-google-drive
- Owner: sebastianfeldmann
- License: mit
- Created: 2018-06-24T09:40:02.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2021-04-01T16:43:33.000Z (about 4 years ago)
- Last Synced: 2025-04-02T05:12:34.217Z (2 months ago)
- Language: PHP
- Homepage: https://phpbu.de
- Size: 8.79 KB
- Stars: 3
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# PHPBU Google Drive utility
With this CLI script you can create a Google Drive access token file that is
required by PHPBU to sync your files to Google Drive.Also it lists the names and IDs of your Google Drive files and directories.
The ID of the directory where you want to store your backups is needed for your
PHPBU configuration.All you need is a Google API client JSON credential file that you can easily
generate online in your Google account settings.## Installation
There are two ways to install the PHPBU Google Drive utility.
### Composer
composer require phpbu/google-drive-utility
vendor/bin/phpbu-gdu
### gitgit clone https://github.com/sebastianfeldmann/phpbu-google-drive.git
cd phpbu-google-drive
./phpbu-gdu
## Usagephpbu-gdu [client_secret.json] [client_access.json]
The first argument is the path to your local `client_secret.json` that you have
generated in your Google account settings.
If you do not provide the argument it defaults to `./client_secret.json`.The second argument is the path where the access token should be stored.
If not provided it defaults to `./client_access.json`.