From 9b51fb15754b300c435a0df8595b559aa5d85629 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=A5=E6=B5=A9?= Date: Tue, 23 Sep 2025 09:49:34 +0800 Subject: [PATCH] =?UTF-8?q?refactor(script):=20=E9=87=8D=E5=91=BD=E5=90=8D?= =?UTF-8?q?=E8=84=9A=E6=9C=AC=E6=96=87=E4=BB=B6=E4=BB=A5=E6=9B=B4=E5=87=86?= =?UTF-8?q?=E7=A1=AE=E5=8F=8D=E6=98=A0=E5=85=B6=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...td-docker-sock.sh => postgres-dump-zstd-via-docker-sock.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) rename postgres-dump-zstd-docker-sock.sh => postgres-dump-zstd-via-docker-sock.sh (95%) diff --git a/postgres-dump-zstd-docker-sock.sh b/postgres-dump-zstd-via-docker-sock.sh similarity index 95% rename from postgres-dump-zstd-docker-sock.sh rename to postgres-dump-zstd-via-docker-sock.sh index 35c0bb1..0f2f2a9 100755 --- a/postgres-dump-zstd-docker-sock.sh +++ b/postgres-dump-zstd-via-docker-sock.sh @@ -2,8 +2,8 @@ set -eu # PostgreSQL backup triggered through the Docker Engine unix socket. -# Example: ./postgres-dump-zstd-docker-sock.sh --container=postgres17 --backup-prefix=pgvector17_all_databases_zstd_ --socket=/var/run/docker.sock --api-version=v1.51 --backup-dir=/backups -# Remote example: curl -fsSL https://git.1-h.cc/Scripts/Linux/raw/branch/main/postgres-dump-zstd-docker-sock.sh | sh -s -- --container=postgres17 --backup-prefix=pgvector17_all_databases_zstd_ --socket=/var/run/docker.sock --api-version=v1.51 --backup-dir=/backups +# Example: ./postgres-dump-zstd-via-docker-sock.sh --container=postgres17 --backup-prefix=pgvector17_all_databases_zstd_ --socket=/var/run/docker.sock --api-version=v1.51 --backup-dir=/backups +# Remote example: curl -fsSL https://git.1-h.cc/Scripts/Linux/raw/branch/main/postgres-dump-zstd-via-docker-sock.sh | sh -s -- --container=postgres17 --backup-prefix=pgvector17_all_databases_zstd_ --socket=/var/run/docker.sock --api-version=v1.51 --backup-dir=/backups log() { printf '%s\n' "$(date -u '+%Y-%m-%dT%H:%M:%SZ') $*" }