1
0
Fork 0
mirror of https://github.com/roles-ansible/ansible_role_restic_archiver.git synced 2024-08-16 10:09:49 +02:00

make al restic commands as bash executable

This commit is contained in:
L3D 2021-01-11 19:05:42 +01:00
parent 70902baeb6
commit ceb48f9028
No known key found for this signature in database
GPG key ID: 5215C3441797AB2B
2 changed files with 2 additions and 2 deletions

View file

@ -26,7 +26,7 @@ cat <<EOT >> /tmp/mailcontent
$(restic check --quiet 2>/dev/null)
$(restic --quiet stats --json | python3 -c "import sys, json; jsondata=json.load(sys.stdin); print('Repo size: ', str(int(jsondata['total_size'] / 1024 / 1024 / 1024 * 1000 )/1000 ), 'GB with ', str(jsondata['total_file_count']), ' Files.')")
Latest Snapshots:
restic --quiet snapshots --last --json | jq -c '.[]' | while read i; do echo -e "$i" | python3 -c "import sys, json; jsondata=json.load(sys.stdin); print(' Hostname: ', jsondata['hostname'], ' \tbackup time: ', jsondata['time'], ' \tPath: ', str(jsondata['paths'][0]))" ; done
$(restic --quiet snapshots --last --json | jq -c '.[]' | while read i; do echo -e "$i" | python3 -c "import sys, json; jsondata=json.load(sys.stdin); print(' Hostname: ', jsondata['hostname'], ' \tbackup time: ', jsondata['time'], ' \tPath: ', str(jsondata['paths'][0]))" ; done)
EOT
{% if repo.archive|default(false) %}

View file

@ -1,3 +1,3 @@
---
playbook_version_number: 35 # should be over ninethousand
playbook_version_number: 36 # should be over ninethousand
playbook_version_path: 'role-restic_archiver_roles-ansible_github.com.version'