aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--backuper.sh14
1 files changed, 2 insertions, 12 deletions
diff --git a/backuper.sh b/backuper.sh
index 5cda722..8acc4b6 100644
--- a/backuper.sh
+++ b/backuper.sh
@@ -72,6 +72,8 @@ die() {
if [ -n "$1" ]; then
echo "DIE: $1" >&2
fi
+ ## -6 ~ SIGABRT
+ ## This is the only SIGNAL that cleanup doesn't reset
kill -6 "$$"
}
@@ -156,13 +158,6 @@ start_command() {
## Exclude keep without quotes
/usr/bin/time -f "$TIME_FMT" $GENERATE tar c --preserve-permissions $EXCLUDE "$PLACES" > "$RUNDIR"/fifo_0
fi
-
-
-# if [ -z "$GENERATE" ]; then
-# $COMMAND > "FIFO_GEN"
-# else
-# echo $COMMAND | $GENERATE sh -s
-# fi
}
start_pipeline() {
@@ -183,11 +178,6 @@ start_pipeline() {
done
}
-#backup_cmd() {
-# /usr/bin/time -f "$TIME_FMT" $COMMAND
-# [ "$?" != 0 ] && die "Generator command exited with error"
-#}
-#
#create_backup() {
# title "Create"
#