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

7 lines
187 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 --optimized-storage --compression none
done