A script to make borg backups of lxd instances without writing the full archive on disk temporary
-
add & modify config.txt
-
execute ./lxborg.sh
-
overwrite config with commandline parameters
-r | --runfor a borg command -./lxborg.sh -r "rlist"or./lxborg.sh -r "rlist myContainer_2023-02-17_07:37:25-m | --machinenamefor the conteriner/vm name-a | --archivenamefor a custom archive name (defaults tomachinename_$(date +%F_%T)-s | --snapshotnamefor the name of the source snapshot (defaults toborg)
-
create a backup
./lxborg.sh -b(using parameters from config.txt or form the script itself)-/lxborg.sh -b -m c2for overwriting the machinename toc2- [...]
-
restore a backup
- get list:
./lxborg.sh -l - extract:
./lxborg.sh -x "myContainer_2023-02-17_07:37:25" - import:
lxc import myContainer_2023-02-17_07:37:25.tar
- get list: