minor fixes
This commit is contained in:
parent
7fb56fab68
commit
a1a99930a8
12
btrbk
12
btrbk
|
@ -10,7 +10,7 @@ function bkRun {
|
||||||
for i in ${!SUBVOLS[@]}; do
|
for i in ${!SUBVOLS[@]}; do
|
||||||
snapName=${VOLNAME[$i]}.$date
|
snapName=${VOLNAME[$i]}.$date
|
||||||
getSnap "$i"
|
getSnap "$i"
|
||||||
if [[ -d "$SNAPDIR$snapName" ]] && ! $force; then
|
if [[ -d "$SNAPDIR$snapName" && "$force" != true ]]; then
|
||||||
echo "backup already run today"
|
echo "backup already run today"
|
||||||
continue
|
continue
|
||||||
else
|
else
|
||||||
|
@ -115,9 +115,9 @@ function testConf {
|
||||||
fi
|
fi
|
||||||
if rclone ls $RCLONEDIR > /dev/null 2>&1; then
|
if rclone ls $RCLONEDIR > /dev/null 2>&1; then
|
||||||
if gpg --list-key $PUBKEY > /dev/null 2>&1; then
|
if gpg --list-key $PUBKEY > /dev/null 2>&1; then
|
||||||
if $restore; then
|
if [ "$restore" = true ]; then
|
||||||
runRestore
|
runRestore
|
||||||
elif $backup; then
|
elif [ "$backup" = true ]; then
|
||||||
testDate
|
testDate
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
|
@ -172,8 +172,10 @@ while true; do
|
||||||
esac
|
esac
|
||||||
shift
|
shift
|
||||||
done
|
done
|
||||||
if $fullRestore; then
|
if [ "$fullBackup" = true ]; then
|
||||||
runFullRestore
|
runFullRestore
|
||||||
elif $backup
|
elif [ "$backup" = true ]; then
|
||||||
testConf
|
testConf
|
||||||
|
else
|
||||||
|
echoHelp
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue