aboutsummaryrefslogtreecommitdiffstats
path: root/backuper.sh
diff options
context:
space:
mode:
Diffstat (limited to 'backuper.sh')
-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