docs(postgres-dump-zstd-docker-sock): 调整示例命令中参数的顺序以匹配实际使用

This commit is contained in:
严浩
2025-09-22 19:06:29 +08:00
parent b2083e0198
commit df52a53026

View File

@@ -2,8 +2,8 @@
set -eu set -eu
# PostgreSQL backup triggered through the Docker Engine unix socket. # PostgreSQL backup triggered through the Docker Engine unix socket.
# Example: ./postgres-dump-zstd-docker-sock.sh --socket=/var/run/docker.sock --api-version=v1.51 --container=postgres17 --backup-dir=/backups --backup-prefix=pgvector17_all_databases_zstd_ # Example: ./postgres-dump-zstd-docker-sock.sh --socket=/var/run/docker.sock --api-version=v1.51 --backup-dir=/backups --container=postgres17 --backup-prefix=pgvector17_all_databases_zstd_
# Remote example: curl -fsSL https://git.1-h.cc/Scripts/Linux/raw/branch/main/postgres-dump-zstd-docker-sock.sh | sh -s -- --socket=/var/run/docker.sock --api-version=v1.51 --container=postgres17 --backup-dir=/backups --backup-prefix=pgvector17_all_databases_zstd_ # Remote example: curl -fsSL https://git.1-h.cc/Scripts/Linux/raw/branch/main/postgres-dump-zstd-docker-sock.sh | sh -s -- --socket=/var/run/docker.sock --api-version=v1.51 --backup-dir=/backups --container=postgres17 --backup-prefix=pgvector17_all_databases_zstd_
log() { log() {
printf '%s\n' "[cron] $(date -u '+%Y-%m-%dT%H:%M:%SZ') $*" printf '%s\n' "[cron] $(date -u '+%Y-%m-%dT%H:%M:%SZ') $*"
} }