Skip to content

Instantly share code, notes, and snippets.

View horizon86's full-sized avatar
🤒
Out sick

horizon86

🤒
Out sick
View GitHub Profile
@horizon86
horizon86 / autobackup.sh
Last active November 7, 2024 13:28
Minecraft auto backup 下面是回档脚本,注意更改为你自己的存档文件夹
#!/bin/bash
# 该脚本会关闭服务器进行备份,适用于在linux tmux中开服的童鞋
set -euo pipefail
# tmux 会话名字
sessionName=mc
# 服务器关闭警告信息
stopDelay=10
stopWarn=服务器将在${stopDelay}秒后关闭进行备份