upload-to-Gdrive
rclone is a tool to enable you to sync files on the command line with several online storage platforms.
- install rclone
- Bind with google account
- Upload files to the drive
Install rclone
To install rclone on Linux/macOS/BSD systems, run:
1 | sudo -v ; curl https://rclone.org/install.sh | sudo bash |
Bind with google account
first, create a google service account.link
Upload files to the drive
Upload silently:
rclone copy <sourcepath> <remotename>:<remotepath> -P >> log.txt
Check the log file:
tail --lines=8 log.txt && echo "\n"