From 2b7088717b9b8cd79d4dce6efb271db56377bac0 Mon Sep 17 00:00:00 2001
From: Trygve Laugstøl <trygvis@inamo.no>
Date: Wed, 2 Jan 2019 19:11:19 +0100
Subject: o Show info about backup after creating it, for the logs.

---
 ansible/roles/borg-client/templates/bin/create-backup | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

(limited to 'ansible/roles/borg-client/templates')

diff --git a/ansible/roles/borg-client/templates/bin/create-backup b/ansible/roles/borg-client/templates/bin/create-backup
index cf75edf..c3e249d 100644
--- a/ansible/roles/borg-client/templates/bin/create-backup
+++ b/ansible/roles/borg-client/templates/bin/create-backup
@@ -12,12 +12,15 @@ cmd=()
 cmd+=(borg create)
 cmd+=(--stats)
 #cmd+=(--progress)
-cmd+=(--json)
+#cmd+=(--json)
 cmd+=(--exclude-from=/etc/borg/excludes)
 cmd+=(--patterns-from=/etc/borg/patterns)
 cmd+=(::'{hostname}-{now:%Y-%m-%dT%H:%M:%S}')
 
+echo BORG_RSH=$BORG_RSH
 echo BORG_REPO=$BORG_REPO
 
 set -x
 time "${cmd[@]}"
+
+borg info --short --last 1
-- 
cgit v1.2.3