Installing the command-line executable
Assuming you have Rust/Cargo installed , run this command in a terminal:
cargo install gsync
It will make the gsync command available in your PATH if you've allowed the PATH to be modified when installing Rust . cargo uninstall gsync uninstalls.
Back to the crate overview .
Readme
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