Skip to content

Instantly share code, notes, and snippets.

@vehystrix
vehystrix / lxc-tklbam.sh
Last active September 14, 2025 13:27
Offline TKLBAM backup and restore for proxmox LXC containers
#!/bin/bash
# This script manages TurnKey Linux Backup and Migration (TKLBAM) operations for LXC containers.
# It supports backup, restore, and cleanup operations using a specified profile and LXC container ID.
# Backups are stored in /root/turnkey_backup/<lxc_id>.
#
# You will need to generate a tklbam profile first.
# The easy way to do this is to download or clone https://github.com/turnkeylinux/tklbam-profiles
# then run:
# cat tklbam-profiles/core tklbam-profiles/<appliance name> > <profile config file>