diff options
author | Robin Obůrka <r.oburka@gmail.com> | 2016-07-23 23:05:04 +0200 |
---|---|---|
committer | Robin Obůrka <r.oburka@gmail.com> | 2016-07-24 16:34:02 +0200 |
commit | 14147fce74705037892f620ff26c0c0641f1d3a7 (patch) | |
tree | 249370044fc124d47e876ebf7a4045f20f3e9eff /backuper.sh | |
parent | A lot of cleanup (diff) | |
download | backuper-14147fce74705037892f620ff26c0c0641f1d3a7.tar.xz |
Report time of backup
Diffstat (limited to 'backuper.sh')
-rw-r--r-- | backuper.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/backuper.sh b/backuper.sh index a68d1a3..871965e 100644 --- a/backuper.sh +++ b/backuper.sh @@ -4,7 +4,7 @@ GPG_RECIPIENT="robin.oburka@nic.cz" ## Style -TIME_FMT="Time:\t%E" +TIME_FMT="\nBackup took:\t%E" ## Internal variables NAME="" @@ -154,7 +154,7 @@ start_store() { start_command() { title "Create backup" if [ -n "$COMMAND" ]; then - echo "$COMMAND" | $REMOTE $GENERATE sh -s > "$RUNDIR"/fifo_0 + echo "$COMMAND" | /usr/bin/time -f "$TIME_FMT" $REMOTE $GENERATE sh -s > "$RUNDIR"/fifo_0 else ## Exclude keep without quotes /usr/bin/time -f "$TIME_FMT" $REMOTE $GENERATE tar c --preserve-permissions $EXCLUDE "$PLACES" > "$RUNDIR"/fifo_0 |