Skip to content

Backup solution for DDEV preview servers #1

Description

@titouanmathis

Problem

A DDEV preview server hosts dozens of projects with databases and uploaded files. If the server dies, source code is recoverable from Git, but databases and uploaded files are not.

Proposed Solution

Agent-level scheduled backup using ddev export-db per project, with optional remote push (S3, rsync).

Features

  • trafic backup CLI command for manual runs
  • Scheduled task in the agent (tasks/backup.ts)
  • trafic restore CLI command
  • Configurable retention and remote storage

Config Example

[backup]
enabled = true
schedule = "0 3 * * *"
retain_days = 7
local_dir = "/var/backups/trafic"

[backup.remote]
type = "s3"
bucket = "my-trafic-backups"

CLI Surface

trafic backup                    # Backup all projects
trafic backup --name my-app      # Backup specific project
trafic backup --list             # List available backups
trafic restore --name my-app --date 2026-02-07

From exploration-ops-features.md
Priority: P2 — after agent is ported

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions