This commit is contained in:
Yawasau
2023-12-05 14:13:20 +08:00
parent 1326cf59ad
commit 2db2e8f24e
4 changed files with 138 additions and 65 deletions

11
tools/script/backup Normal file
View File

@@ -0,0 +1,11 @@
if [ -f "${0%/*/*/*}/tools/bin/tools.sh" ]; then
MODDIR="${0%/*/*/*}"
operate="backup"
conf_path="${0%/*/*/*}/backup_settings.conf"
[[ ! -f $conf_path ]] && echo "$conf_path遺失"
backup_mode=1
. "${0%/*}/app_details" &>/dev/null
. "${0%/*/*/*}/tools/bin/tools.sh" | tee "$MODDIR/log.txt"
else
echo "${0%/*/*}/tools/bin/tools.sh遺失"
fi