diff --git a/README.md b/README.md index 26088bf..2f62f4d 100644 --- a/README.md +++ b/README.md @@ -283,6 +283,13 @@ Creates a database backup. --from-password-file .secrets/prod.pass \ --from-keep 3 # Keep last 3 dumps +# Slow uplink? Compress on the source host, then transfer the small file +./t-pgsql dump \ + --from "ssh://user@server/postgres@localhost/prod" \ + --from-password-file .secrets/prod.pass \ + --compress zstd \ + --compress-where source # 20 GB raw dump can shrink to ~1 GB before the copy + # Custom dump name ./t-pgsql dump \ --from "postgres@localhost/mydb" \ @@ -469,7 +476,7 @@ operation: exit_code: 0 environment: - script_version: "3.9.0" + script_version: "3.10.0" executed_by: dbadmin executed_on: macbookair working_dir: /opt/t-pgsql/t-pgsql @@ -1026,6 +1033,7 @@ Supported keys mirror the flags: `from`, `to`, `password`/`from_password`/`to_pa | `--compress ` | Compression algorithm | `gzip` | No | `zstd`, `xz`, `bzip2`, `none` | | `--compress-level <1-9>` | Compression level | `6` | No | `9` | | `--pg-compress-level <0-9>` | pg_dump internal compression | `6` | No | `0` (no compression) | +| `--compress-where ` | For SSH dumps: run zstd/xz/bzip2 on the `source` host before the copy, or on the `target` after it. `source` moves a much smaller file over slow uplinks; falls back to `target` if the tool is missing on the source | `target` | No | `source` | ### Storage Parameters @@ -1034,6 +1042,7 @@ Supported keys mirror the flags: `from`, `to`, `password`/`from_password`/`to_pa | `--output ` | Output directory for dumps | `