aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Robin Obůrka <r.oburka@gmail.com> 2016-07-23 23:05:04 +0200
committerGravatar Robin Obůrka <r.oburka@gmail.com> 2016-07-24 16:34:02 +0200
commit14147fce74705037892f620ff26c0c0641f1d3a7 (patch)
tree249370044fc124d47e876ebf7a4045f20f3e9eff
parentA lot of cleanup (diff)
downloadbackuper-14147fce74705037892f620ff26c0c0641f1d3a7.tar.xz
Report time of backup
-rw-r--r--backuper.sh4
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