Index: /main/waeup-ansible/playbook-install-borg.yml
===================================================================
--- /main/waeup-ansible/playbook-install-borg.yml	(revision 15927)
+++ /main/waeup-ansible/playbook-install-borg.yml	(revision 15928)
@@ -155,4 +155,14 @@
         force: no
 
+  - name: "Create env scripts"
+    template:
+        src: "borg-env.sh.j2"
+        dest: "/root/backup/env-{{ item.fqdn }}.sh"
+        owner: "root"
+        group: "root"
+        mode: "0600"
+        force: no
+    with_items: "{{ borgbackup_servers }}"
+
   - name: "Initialize repo"
     command: /root/backup/borg-init.sh
Index: /main/waeup-ansible/templates/borg-env.sh.j2
===================================================================
--- /main/waeup-ansible/templates/borg-env.sh.j2	(revision 15928)
+++ /main/waeup-ansible/templates/borg-env.sh.j2	(revision 15928)
@@ -0,0 +1,27 @@
+#!/bin/bash
+#
+# Set env vars for easier execution of borg commands
+#
+# This script was generated from a template by ansible.
+#
+# Run it like this:
+#
+#  # . env-{{ item.fqdn }}
+#
+# Afterwards you can do something like
+#
+#  # borg list $REPO
+#  # borg check $REPO
+#  # borg list $REPO::2020-01-15_01:15
+#
+#
+
+# Sourcing the backup-passphrase
+. /root/backup/.borg_passphrase
+export REPO=ssh://{{ item.user }}@{{ item.fqdn }}:{{ item.port }}/./{{ item.home }}{{ item.pool }}/{{ inventory_hostname_short }}
+
+echo "Set \$BORG_PASSPHRASE and \$REPO"
+echo
+echo "Now you can do something like"
+echo "# borg list \$REPO"
+echo "# borg check \$REPO"
