Backup

Backup LVM volumes

We will create a LVM snapshot and store it on a remote SFTP server. The archive will be encrypted with a GPG key to secure it outside of our network. lvm-backup.sh #!/bin/sh set -e # Create snapshot of LVM volume and tar its content # Thomas Leuxner <tlx@leuxner.net> 16-04-2024 . sftp_login.inc gpg_key=’backups@example.com’ if [ $# […]