From 4419c15d8ee113f2151a1121ebab3cb7cfc604e3 Mon Sep 17 00:00:00 2001 From: SourLemonJuice Date: Tue, 14 Nov 2023 09:25:10 +0800 Subject: [PATCH 1/3] =?UTF-8?q?=E5=88=A0=E6=8E=89=E8=B0=83=E8=AF=95?= =?UTF-8?q?=E5=AE=8C=E5=BF=98=E5=88=A0=E4=BA=86=E7=9A=84=E6=8F=90=E7=A4=BA?= =?UTF-8?q?=E4=BF=A1=E6=81=AF=20=20...?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 # 读取备份逻辑函数 From 06b8a77e595f1880089e64edfc2f400b0209cfdc Mon Sep 17 00:00:00 2001 From: SourLemonJuice Date: Tue, 14 Nov 2023 09:33:30 +0800 Subject: [PATCH 2/3] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E8=87=AA=E8=BF=B0?= =?UTF-8?q?=E6=96=87=E4=BB=B6=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index fbbec95..896e812 100644 --- a/README.md +++ b/README.md @@ -87,6 +87,7 @@ Tar_Default_Full_Backup=1 ### 日志目录 设置日志存放的目录(目前没什么有用的信息啦) +>不要在最后加 / 我也不知道为什么 ```shell # log From d6494eb98b76e55040081d05fdbafdab0b40d753 Mon Sep 17 00:00:00 2001 From: SourLemonJuice Date: Wed, 15 Nov 2023 22:04:33 +0800 Subject: [PATCH 3/3] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=99=AE=E9=80=9A?= =?UTF-8?q?=E9=80=89=E5=9E=8B=E7=9A=84=E6=B3=A8=E9=87=8A=E5=90=8D=E7=A7=B0?= =?UTF-8?q?=E4=B8=BAgeneral?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 4 ++-- src/config | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 896e812..685ba80 100644 --- a/README.md +++ b/README.md @@ -57,7 +57,7 @@ 可以在执行脚本前检查是否为root权限\ ```shell -# ordinary +# general NeedRoot=1 ``` @@ -80,7 +80,7 @@ RootPath=/ 开启=不使用tar增量备份模式(-g 参数) ```shell -# ordinary +# general Tar_Default_Full_Backup=1 ``` diff --git a/src/config b/src/config index 8afcd79..bee8c1d 100644 --- a/src/config +++ b/src/config @@ -1,7 +1,7 @@ # 0 == false # 1 == true -# ordinary +# general NeedRoot=0 Disable_init_Path_Detection=0 Tar_Default_Full_Backup=0