[`grive2`](https://github.com/vitalif/grive2) is a Google Drive client for the local file-system in [[Linux]]. It will sync the files of the cloud to a local folder, and keep them in sync using a couple of `systemd` services.
## Set up `grive2`
To set up `grive2`, install it using the package manager (and make sure that `inotify-tools` or an equivalent package is installed) and then:
```shell
# Create a folder for the drive in $HOME
mkdir ~/google-drive
cd ~/google-drive
# Set up grive for the first time
grive -a
# Enable the service to watch files and upload changes
systemctl --user enable grive-changes@$(systemd-escape google-drive).service
systemctl --user start grive-changes@$(systemd-escape google-drive).service
# Enable the timer for sync
systemctl --user enable grive-timer@$(systemd-escape google-drive).timer
systemctl --user start grive-timer@$(systemd-escape google-drive).timer
```