diff --git a/README.md b/README.md index fbbec95..685ba80 100644 --- a/README.md +++ b/README.md @@ -57,7 +57,7 @@ 可以在执行脚本前检查是否为root权限\ ```shell -# ordinary +# general NeedRoot=1 ``` @@ -80,13 +80,14 @@ RootPath=/ 开启=不使用tar增量备份模式(-g 参数) ```shell -# ordinary +# general Tar_Default_Full_Backup=1 ``` ### 日志目录 设置日志存放的目录(目前没什么有用的信息啦) +>不要在最后加 / 我也不知道为什么 ```shell # log diff --git a/src/config b/src/config index b61511c..84d3fcd 100644 --- a/src/config +++ b/src/config @@ -1,7 +1,7 @@ # 0 == false # 1 == true -# ordinary +# general NeedRoot=1 Disable_init_Path_Detection=0 Tar_Default_Full_Backup=1 diff --git a/src/main.sh b/src/main.sh index 79be532..62ec48f 100755 --- a/src/main.sh +++ b/src/main.sh @@ -5,7 +5,7 @@ ShellFilePath=$( cd $(dirname $0) || exit 1 && pwd) # 读取配置文件 source $ShellFilePath/config -[ -f $ShellFilePath/config.d/* ] && source $ShellFilePath/config.d/* && echo loading +[ -f $ShellFilePath/config.d/* ] && source $ShellFilePath/config.d/* # 读取初始化函数 source $ShellFilePath/init.sh # 读取备份逻辑函数