mirror of
https://github.com/yanhao98/docker-cron.git
synced 2026-02-04 10:30:33 +08:00
feat(docker): 初始化项目并配置定时备份 PostgreSQL 数据库示例
This commit is contained in:
7
examples/cron/10-postgres-dump-docker-sock.sh
Executable file
7
examples/cron/10-postgres-dump-docker-sock.sh
Executable file
@@ -0,0 +1,7 @@
|
||||
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=postgres17_all_databases_zstd_
|
||||
4
examples/init/00-install-deps.sh
Executable file
4
examples/init/00-install-deps.sh
Executable file
@@ -0,0 +1,4 @@
|
||||
#!/bin/sh
|
||||
# Dependency installation moved to entrypoint.sh.
|
||||
# Define APK_PACKAGES environment variable (e.g. "curl jq") to
|
||||
# make the entrypoint ensure the listed Alpine packages are present.
|
||||
Reference in New Issue
Block a user