# Google Drive

> Back up Vantuly sites to Google Drive, from one or several Google accounts, by signing in with Google.

Source: https://vantuly.com/docs/backups/google-drive

Google Drive needs no bucket or access keys: you sign in with Google and Vantuly creates a backup folder in your Drive. It suits small sites and personal projects. Drive is slower than S3 storage and Google limits uploads to 750 GB a day, so pick an [S3-compatible provider](/docs/backups) for large sites.

## Connect Google Drive

1. Go to **Settings → Storage → Add storage** and pick **Google Drive**.
2. Enter a **Name**, for example `Google Drive` or `Client backups`. A folder with this name is created at the top of your Drive.
3. Click **Connect Google Drive**, sign in to Google and allow access.

Back in Vantuly the storage is tested and ready. It shows the Google account it uses (`gdrive://you@gmail.com`). Then [turn on backups](/docs/backups/schedule) for your sites.

## Several Google accounts

You can connect as many Google accounts as you need. Each Google Drive storage is its own connection with its own folder:

1. Add another storage, pick **Google Drive** and give it a different name, for example `Drive: Acme`.
2. On Google's page, choose the other account (or **Use another account**).

Then choose per site which storage its backups go to. This keeps each client's backups in the client's own Drive, or spreads large teams over several accounts' storage and upload limits. Storage names are unique within a team.

## What Vantuly can see

- Vantuly asks Google only for the files and folders it creates. It cannot see or change anything else in your Drive.
- Each server gets its own folder inside the backup folder. Backups are [restic](https://restic.net) repositories, encrypted on the server before they are uploaded.
- Your Google sign-in stays encrypted in the panel. Each server gets its own credential that it trades for a short-lived Google access token, so a server never holds your Google refresh token.

## Reconnect or remove

- If you remove Vantuly's access in your Google account, or delete the backup folder, the storage shows as failed. Click **Reconnect** and sign in again. If you sign in with another account or the folder is gone, a new folder is created.
- Deleting the storage in Vantuly also ends its access to your Google account. The backups already in your Drive stay there.
