All you need is to include the phrase include logs in the backup command. 需要做的只是在备份命令中加上短语includelogs。
For instance, the [ [ - d $ directory ] ] | | continue phrase uses a logical OR ( | | ) it executes the first command and executes the second command if and only if the first command fails. 例如,[[-d$directory]]continue短语使用逻辑“或”()它首先执行第一个命令,并且当且仅当第一个命令失败时才执行第二个命令。