Skip to content

Instantly share code, notes, and snippets.

@javasboy
javasboy / autobackup.sh
Created April 16, 2023 03:18 — forked from horizon86/autobackup.sh
Minecraft auto backup 下面是回档脚本,注意更改为你自己的存档文件夹
#!/bin/bash
set -euo pipefail
# tmux 会话名字
sessionName=mc
# 服务器关闭警告信息
stopDelay=10
stopWarn=服务器将在${stopDelay}秒后关闭进行备份
# 存档位置