Add lxd-export script + databases zfs dataset

This commit is contained in:
Benoit S 2021-02-01 19:31:27 +09:00
parent 58926a218e
commit 05f8068a75
2 changed files with 55 additions and 0 deletions

7
files/lxd-export.sh Normal file
View file

@ -0,0 +1,7 @@
#!/usr/bin/env bash
set -euo pipefail
cd /var/backups/lxd
for i in $(lxc list --format csv -c n); do
lxc export $i ${i}.tar --instance-only --optimized-storage --compression none
done