feat: dump in every format import understands

This commit is contained in:
2026-09-07 14:03:21 +00:00
parent 77703485b9
commit ad269308cc
4 changed files with 175 additions and 46 deletions

View File

@@ -85,6 +85,10 @@ ahab django make-command <app> <name>
```bash
ahab postgres dump <path> # pg_dump, custom format
ahab postgres dump -F plain <path> # pg_dump, plain sql
ahab postgres dump -F tar <path> # pg_dump, tar
ahab postgres dump -F directory <d> # pg_dump, a directory of files
ahab postgres dump -F cluster <path> # pg_dumpall, roles and all databases
ahab postgres dump -F plain -z <path> # any of them, gzipped
ahab postgres import <path> # drop, create, then restore
```