fix(postgres-dump-zstd-docker-sock): 移除日志中多余的 cron 前缀

This commit is contained in:
严浩
2025-09-22 23:42:00 +08:00
parent 2d46c292e3
commit e5ed660dc7

View File

@@ -5,7 +5,7 @@ set -eu
# 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 # 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 # 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
log() { log() {
printf '%s\n' "[cron] $(date -u '+%Y-%m-%dT%H:%M:%SZ') $*" printf '%s\n' "$(date -u '+%Y-%m-%dT%H:%M:%SZ') $*"
} }
log_stream() { log_stream() {