# Grive2

Grive2 is an archived Docker image that used the grive2 command-line client to sync Google Drive files to a local path on a cron schedule for homelab users, but it no longer works because Google changed the Drive API. It is open source and self-hosted, installable on Docker Hub and Unraid.

Canonical page: https://ourlocalhost.com/app/1545/grive2

## Description

Grive2 is an archived Docker image that used the grive2 command-line client to sync Google Drive files to a local path on a cron schedule for homelab users, but it no longer works because Google changed the Drive API integration.

## Platform availability

Available on 1 of 10 platforms: Unraid.

## Health score

28/100 (Low), based on 5 of 5 factors.
- Maintained: 0 (GitHub repository is archived)
- Popular: 20 (9 GitHub stars)
- Easy to install: 35 (1 install platform, install notes, Docker image)
- Light to run: 30 (4 GB minimum RAM)
- Security check: 85 (no serious findings, CI)

## Links

- Docker Hub: https://hub.docker.com/r/agusalex/grive2
- GitHub: https://github.com/agusalex/grive2docker
- Unraid: https://ca.unraid.net/apps/grive2-13d628r0g0kqen?q=Grive2

## Common questions

### Can I sync only specific Google Drive folders?

Yes. Set the PARAMS environment variable to pass grive2 flags such as -s folder_name; otherwise it syncs all Drive folders and files to the mounted path.

### What Google authorization information does the container need?

It needs a client ID and client secret from a Google OAuth client credential created as a TV device type, plus an authorization code from the initial grant-access flow.

### How do I set the sync schedule?

Set the CRON environment variable to a crontab expression; the container runs the grive2 sync on that schedule.

### Can I set Unix file permissions on the synced files?

Yes. Use the PERM environment variable to specify Unix permissions applied to all files in the folder.

### How is the Docker image updated?

The snapshot tag is rebuilt automatically on Docker Hub on the first day of each month from the master branch of grive2.

---
Source: Our Local Host (https://ourlocalhost.com/app/1545/grive2), the self-hosted and open-source app directory.
