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
2021-02-02 17:58:43 +09:00

7 lines
167 B
Bash

#!/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 --compression none
done