diff options
author | Robin Obůrka <r.oburka@gmail.com> | 2016-07-22 22:03:16 +0200 |
---|---|---|
committer | Robin Obůrka <r.oburka@gmail.com> | 2016-07-24 16:34:02 +0200 |
commit | 5bdb6ae773378044801e8ea8d26b60c0320f6510 (patch) | |
tree | 69f4489d5223a77d587dd6872815189219892a3b | |
parent | Use scalable pipeline instead of one middle section (diff) | |
download | backuper-5bdb6ae773378044801e8ea8d26b60c0320f6510.tar.xz |
Add some comments and cleanup
-rw-r--r-- | backuper.sh | 14 |
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" # |