Skip to content

Commit 8f982f6

Browse files
authored
feat(时区): 备份使用服务器时区 (#32)
1 parent f20561a commit 8f982f6

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

mysql-backup/compose.cbus.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ services:
44
container_name: mysql-cron-backup-cbus
55
volumes:
66
- "${DATA_DIR:-/data}/mysql8/backup:/backup"
7+
- /etc/localtime:/etc/localtime:ro
78
environment:
89
- MYSQL_HOST=${MYSQL_HOST:-mysql8}
910
- MYSQL_PORT=${MYSQL_PORT:-3306}

mysql-backup/compose.maintain.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ services:
44
container_name: mysql-cron-backup-maintain
55
volumes:
66
- "${DATA_DIR:-/data}/mysql8/backup:/backup"
7+
- /etc/localtime:/etc/localtime:ro
78
environment:
89
- MYSQL_HOST=${MYSQL_HOST:-mysql8}
910
- MYSQL_PORT=${MYSQL_PORT:-3306}

0 commit comments

Comments
 (0)