This repository has been archived on 2025-02-14. You can view files and clone it, but cannot push or open issues or pull requests.
pyinfra-lxd/files/lxd-export.sh

8 lines
167 B
Bash
Raw Normal View History

#!/usr/bin/env bash
set -euo pipefail
cd /var/backups/lxd
for i in $(lxc list --format csv -c n); do
2021-02-02 17:58:43 +09:00
lxc export $i ${i}.tar --instance-only --compression none
done