Initial commit
This commit is contained in:
7
vaultwarden/hooks/pre-backup.sh
Normal file
7
vaultwarden/hooks/pre-backup.sh
Normal file
@@ -0,0 +1,7 @@
|
||||
#!/bin/bash
|
||||
set -euo pipefail
|
||||
|
||||
echo "==> [vaultwarden] Creating SQLite backup"
|
||||
mkdir -p /mnt/staging
|
||||
sqlite3 /mnt/source/bw-data/db.sqlite3 ".backup /mnt/staging/db.sqlite3"
|
||||
echo "==> [vaultwarden] SQLite backup complete ($(du -h /mnt/staging/db.sqlite3 | cut -f1))"
|
||||
Reference in New Issue
Block a user