aboutsummaryrefslogtreecommitdiff
path: root/ansible
diff options
context:
space:
mode:
authorTrygve Laugstøl <trygvis@inamo.no>2019-01-02 19:11:19 +0100
committerTrygve Laugstøl <trygvis@inamo.no>2019-01-02 19:21:09 +0100
commit2b7088717b9b8cd79d4dce6efb271db56377bac0 (patch)
treef6bd54a77792a6d26b5503a7fc301785e362805d /ansible
parent5e94eb31c5baafb6a2c0498b92b91c00164d7c5a (diff)
downloadinfra-2b7088717b9b8cd79d4dce6efb271db56377bac0.tar.gz
infra-2b7088717b9b8cd79d4dce6efb271db56377bac0.tar.bz2
infra-2b7088717b9b8cd79d4dce6efb271db56377bac0.tar.xz
infra-2b7088717b9b8cd79d4dce6efb271db56377bac0.zip
o Show info about backup after creating it, for the logs.
Diffstat (limited to 'ansible')
-rw-r--r--ansible/roles/borg-client/templates/bin/create-backup5
1 files changed, 4 insertions, 1 deletions
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