Update to 2020-04-20 09:00

master
Daniel Berteaud 5 years ago
parent 065b47b9a0
commit adfb9b5c8a
  1. 2
      roles/bitwarden_rs/templates/post-backup.sh.j2
  2. 2
      roles/bitwarden_rs/templates/pre-backup.sh.j2

@ -1,4 +1,4 @@
#!/bin/bash -e
rm -f {{ bitwarden_root_dir }}/backup/*
umount /home/lbkp/bitwarden
umount /home/lbkp/bitwarden_rs

@ -14,4 +14,4 @@ cp {{ bitwarden_root_dir }}/data/rsa* {{ bitwarden_root_dir }}/backup/
{% else %}
sqlite3 {{ bitwarden_root_dir }}/data/db.sqlite3 ".backup '{{ bitwarden_root_dir }}/backup/db.sqlite3'"
{% endif %}
mount -o bind,ro {{ bitwarden_root_dir }}/backup/ /home/lbkp/bitwarden_rs/
mountpoint -q /home/lbkp/bitwarden_rs/ || mount -o bind,ro {{ bitwarden_root_dir }}/backup/ /home/lbkp/bitwarden_rs/

Loading…
Cancel
Save