- `scp`: file backup using scp(1).
Use `files` to specify the files to copy.
+- `disabled`: job is disabled and will not be run. This becomes accounted as
+ "success" in the summary and exit code of the backup script.
+
Please note that neither `ssh_args_add`, `rsync_args_add`, `compress`, nor any
"exclude" parameters are supported when using the "scp" backup type! And There
"scp" backup type never _deletes_ files from the backup store; so if you reduce
declare -i count_started=0
declare -i count_ok=0
declare -i count_ok_vanished=0
+declare -i count_enabled=0
destinations=""
count_all=$count_all+1
+ # Check if job is disabled
+ if [ "$backup_type" = "disabled" ]; then
+ echo "Job is DISABLED and will be skipped."
+ echo; continue
+ fi
+
+ count_enabled=$count_enabled+1
+
# Check target directory
if [ -z "$target" ]; then
echo "No target directory specified for \"$system\"!? Skipped!"
echo -n "Done: "; date
echo
[ $count_all -eq 1 ] && s="" || s="s"
-echo " - $count_all job$s defined,"
+[ $count_enabled -eq $count_all ] \
+ && echo " - $count_all job$s defined (all enabled)," \
+ || echo " - $count_all job$s defined ($count_enabled enabled),"
[ $count_started -eq 1 ] && s="" || s="s"
echo " - $count_started job$s started,"
echo " - $count_ok done without errors."
echo "-----> THERE HAVE BEEN ERRORS! <-----"
echo
exit 6
-elif [ $count_all -ne $count_started ]; then
+elif [ $count_enabled -ne $count_started ]; then
exit 7
fi