You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
normal_restore() {
mkdir -p /tmp/upload/restore
# 检查backup.tar.gz文件是否存在
if [ -f /tmp/upload/backup.tar.gz ]; then
tar -xzvf /tmp/upload/backup.tar.gz -C /tmp/upload/restore
cd /tmp/upload/restore
# 恢复overlay,但排除两个位置的fstab文件
tar -xzvf overlay_backup.tar.gz
--exclude="*/etc/config/fstab"
-C /
green "恢复已完成, 系统正在重启....."
reboot
else
red "请将恢复文档backup.tar.gz上传到/tmp/upload目录再重试。"
exit 1
fi
}
The text was updated successfully, but these errors were encountered:
normal_restore() {
mkdir -p /tmp/upload/restore
# 检查backup.tar.gz文件是否存在
if [ -f /tmp/upload/backup.tar.gz ]; then
tar -xzvf /tmp/upload/backup.tar.gz -C /tmp/upload/restore
cd /tmp/upload/restore
# 恢复overlay,但排除两个位置的fstab文件
tar -xzvf overlay_backup.tar.gz
--exclude="*/etc/config/fstab"
-C /
green "恢复已完成, 系统正在重启....."
reboot
else
red "请将恢复文档backup.tar.gz上传到/tmp/upload目录再重试。"
exit 1
fi
}
The text was updated successfully, but these errors were encountered: