Sign inSign up

edwarddn/proton-drive-backup

By edwarddn

•Updated 19 days ago

Mirrors restic repositories to Proton Drive using the official Proton Drive CLI.

Image
Databases & storage
0

71

edwarddn/proton-drive-backup repository overview

⁠proton-drive-backup

Mirrors restic⁠ repositories to Proton Drive using the official Proton Drive CLI⁠. Uploads start shortly after the repository changes, idle checks make no API calls, and nothing is ever deleted from the Drive.

Not affiliated with or endorsed by Proton AG.

⁠Tags

TagDescription
latestLatest release.

Architectures: linux/amd64 and linux/arm64.

⁠Quick start

services:
  protondrive:
    image: edwarddn/proton-drive-backup:latest
    container_name: proton-drive-backup
    restart: unless-stopped
    environment:
      TZ: UTC
      DRIVE_DEST: /my-files/backup
      TELEGRAM_BOT_TOKEN: ${TELEGRAM_BOT_TOKEN}
      TELEGRAM_CHAT_ID: ${TELEGRAM_CHAT_ID}
    volumes:
      - ./config:/config
      - /path/to/restic-repo-parent:/backup:ro

Authenticate once, then start:

docker compose run --rm protondrive proton-drive auth login
docker compose up -d

The session is stored encrypted in /config with a local GPG key generated on first start.

⁠Main variables

VariableDefaultDescription
DRIVE_DEST/my-files/backupDestination folder in Proton Drive.
POLL_INTERVAL600Seconds between change checks.
CYCLE_TIMEOUT6hMaximum duration of one upload cycle.
HEALTH_WINDOW172800Seconds without success before becoming unhealthy.
WEBHOOK_URLGeneric JSON webhook for notifications.
TELEGRAM_BOT_TOKENTelegram bot token for notifications.
TELEGRAM_CHAT_IDTelegram chat that receives notifications.

The full list is in the README⁠.

⁠License

MIT⁠. Copyright (c) 2026 Edward.

Tag summary

Content type

Image

Digest

sha256:71595cfc5…

Size

94.7 MB

Last updated

19 days ago

docker pull edwarddn/proton-drive-backup