Skip to content
Snippets Groups Projects
Verified Commit c9372be3 authored by Florian Pritz's avatar Florian Pritz
Browse files

borg-client: Add borg wrapper for easy usage


This allows to call borg commands without having to provide the backup
destination each time.

Signed-off-by: default avatarFlorian Pritz <bluewind@xinu.at>
parent d00b7a63
No related branches found
No related tags found
No related merge requests found
...@@ -15,8 +15,11 @@ ...@@ -15,8 +15,11 @@
BORG_PASSPHRASE: "" BORG_PASSPHRASE: ""
ignore_errors: True # This can sometimes fail if a backup is in progress :/ ignore_errors: True # This can sometimes fail if a backup is in progress :/
- name: install borg backup script - name: install scripts
template: src=borg-backup.sh.j2 dest=/usr/local/bin/borg-backup.sh owner=root group=root mode=755 template: src={{item}}.j2 dest=/usr/local/bin/{{item}} owner=root group=root mode=755
with_items:
- borg-backup.sh
- borg
- name: install postgres backup script - name: install postgres backup script
template: src=backup-postgres.sh.j2 dest=/usr/local/bin/backup-postgres.sh owner=root group=root mode=755 template: src=backup-postgres.sh.j2 dest=/usr/local/bin/backup-postgres.sh owner=root group=root mode=755
......
#!/bin/bash
BORG_REPO="{{ backup_host }}:{{ backup_dir }}" exec /usr/bin/borg "$@"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment