Skip to content

Seeding data

Seed your workspaces with data from production dumps, live databases, or S3 backups — at service setup time or any time after.

SourceFormNotes
PostgreSQL URLpostgresql://user:pass@host:5432/dblive pg_dump from a running server
Local file./dump.sql, ./backup.dump.sql via psql, other extensions via pg_restore (custom format)
S3 objects3://bucket/path/dump.sqlcredentials/region from standard AWS env vars
Terminal window
devflow service add app-db --provider local --service-type postgres --from ./backup.sql
devflow service add app-db --provider local --service-type postgres \
--from postgresql://readonly:pass@replica:5432/mydb
devflow service add app-db --provider local --service-type postgres \
--from s3://my-bucket/backups/latest.dump
Terminal window
devflow service seed main --from dump.sql
devflow service seed feature/auth --from postgresql://readonly:pass@replica:5432/mydb
devflow service seed main --from s3://my-bucket/backups/latest.dump
devflow service seed main -s app-db --from dump.sql # specific service

From a PostgreSQL URL — devflow runs pg_dump in an ephemeral Docker container against the source, downloads the dump to a temp file, and restores it into the target container with pg_restore. localhost URLs are rewritten to host.docker.internal automatically so the dump container can reach databases running on your host.

From a local file.sql is piped through psql; any other extension is treated as custom format and restored with pg_restore.

From S3 — the object is downloaded using standard AWS credentials (AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY, AWS_DEFAULT_REGION/AWS_REGION), then restored like a local file.

For “give me a clean copy of the parent again”, prefer:

Terminal window
devflow service reset feature/auth

It re-clones from the parent state — faster than re-restoring a dump, and exactly what agent retry loops want.