1 unstable release
0.1.2 | Jun 28, 2021 |
---|---|
0.1.1 |
|
0.1.0 |
|
#20 in #google-drive
66KB
1K
SLoC
GSync
GSync is a tool to help you stay backed up. It does this by synchronizing the folders you want to Google Drive, while respecting .gitignore files
Installation
You've got two options to install GSync
- Preferred method: Via crates.io:
cargo install gsync
- Via GitHub: Releases
Usage
- Create a project on Google Deveopers
- Configure the OAuth2 consent screen and create OAuth2 credentials
- Enable the Google Drive API
- If you are planning to use a Team Drive/Shared Drive, run
gsync drives
to get the ID of the drive you want to sync to - Configure GSync:
gsync config -i <GOOGLE APP ID> -s <GOOGLE APP SECRET> -f <INPUT FILES> -d <ID OF SHARED DRIVE>
. The-d
parameter is optional - Login:
gsync login
- Sync away!
gsync sync
To update your configuration later, run gsync config
again, you don't have to re-provide all options if you don't want to change them
Licence
GSync is dual licenced under the MIT and Apache-2.0 licence, at your discretion
Dependencies
~60MB
~1M SLoC