Files
sh/mc_backup.sh
openclaw 0784a11c19
Some checks failed
Weekly Translation Workflow / translate (push) Has been cancelled
init: fork of kejilion/sh with certbot host-network fix
- Replace 'docker run -p 80:80' with '--network host' for certbot standalone HTTP-01 to avoid timeout in environments where Docker NAT port-publish breaks LE inbound traffic but host port 80 is reachable.
- Applies to kejilion.sh (all locale variants) and auto_cert_renewal.sh.
- README install command points to this Gitea mirror.
2026-05-18 17:06:42 +08:00

8 lines
239 B
Bash

#!/bin/bash
clear
mkdir -p /home/game
docker cp mcserver:/data /home/game/mc
cd /home/game/mc && tar czvf mc_$(date +"%Y%m%d%H%M%S").tar.gz mc
rm -rf /home/game/mc/
echo -e "\033[0;32m游戏存档已导出存放在: /home/game/mc/\033[0m"