Added warning for missing xtraLocations

This commit is contained in:
Asif Bacchus 2018-10-16 02:15:34 -06:00
parent 0d018e3b65
commit aca45311ea
1 changed files with 6 additions and 0 deletions

View File

@ -273,6 +273,7 @@ warningExplain[2112]="No remote borg instance specified. Operations will be slow
warningExplain[2113]="The specified file containing extra files for inclusion in borgbackup could not be found"
warningExplain[2114]="The specified file containing exclusion patterns for borgbackup could not be found. Backup was performed as though NO exclusions were defined"
warningExplain[2115]="No paramters provided for borg prune. No repo pruning has taken place. You should reconsider this decision to control the size/history of your backups"
warningExplain[2116]="No additional locations are specified for inclusion in backup. ONLY NextCloud DATA will be backed up (no configuration, etc). If this is unintentional, check the inclusion file referenced in your borgbackup settings"
warningExplain[2200]="Borg completed with warnings. Please check this script's logfile for details"
warningExplain[2201]="Borg exited with an unknown return-code. Please check this script's logfile for details"
warningExplain[2210]="Borg prune exited with warnings. Please check this script's logfile for details"
@ -624,6 +625,11 @@ if [ -n "$borgXtra" ]; then
else
exitWarn+=('2113')
fi
else
# no extra locations specified
echo -e "${op}${stamp} No additional locations specified for backup." \
"only NextCloud data files will be backed up${normal}" >> "$logFile"
exitWarn+=('2116')
fi
## Check if borgExclude exists since borg will throw an error if it's missing