Skip to content

Commit

Permalink
Merge branch 'main' into release
Browse files Browse the repository at this point in the history
  • Loading branch information
SourLemonJuice committed Nov 18, 2023
2 parents 94987d7 + d6494eb commit 363afba
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
可以在执行脚本前检查是否为root权限\

```shell
# ordinary
# general
NeedRoot=1
```

Expand All @@ -80,13 +80,14 @@ RootPath=/
开启=不使用tar增量备份模式(-g 参数)

```shell
# ordinary
# general
Tar_Default_Full_Backup=1
```

### 日志目录

设置日志存放的目录(目前没什么有用的信息啦)
>不要在最后加 / 我也不知道为什么
```shell
# log
Expand Down
2 changes: 1 addition & 1 deletion src/config
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# 0 == false
# 1 == true

# ordinary
# general
NeedRoot=1
Disable_init_Path_Detection=0
Tar_Default_Full_Backup=1
Expand Down
2 changes: 1 addition & 1 deletion src/main.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
# 读取备份逻辑函数
Expand Down

0 comments on commit 363afba

Please sign in to comment.