cartwright
Features

Google Drive media & backup

Import images from a Drive folder into the media library, and push DB/media backups to Drive — reusing the existing media pipeline and backup dump.

googleDrive adds two Drive (API v3) capabilities on top of the Google Workspace connector: importing images into the media library, and pushing backups to Drive. It depends on mediaLibrary.

Enable it

Connect the Google Workspace connector and ensure mediaLibrary is on.
Turn on googleDrive in /admin/features (runtime).
Configure the Drive folder in /admin/drive.

What it does

  • Media import — pulls images from a configured Drive folder into the media library, reusing the existing MediaAsset + Vercel Blob pipeline with sha256 de-duplication (no parallel storage path).
  • Backup to Drive — pushes the logical DB/media backup (reuses lib/backup/dump.ts) to Drive as an off-Vercel copy.

Scheduled backup

/api/cron/drive-backup runs on a schedule (vercel.json), gated by CRON_SECRET, and no-ops when the flag is off. Admin actions under /admin/drive are requireAdmin-gated. Tools: drive.import_folder, drive.backup_now.

FlaggoogleDrive
Tierruntime (depends on mediaLibrary)
Defaultoff
NeedsWorkspace connector + Drive scope, CRON_SECRET for the cron

Fail-soft: with no connection, import/backup no-op. Drive backup complements Backup & restore — it doesn't replace Turso's physical backups.

On this page