#!/bin/sh # Full system backup with Borg # Backup root partition sudo borg create --verbose --list --stats --show-rc --exclude-caches --one-file-system \ --exclude '/dev/*' \ --exclude '/proc/*' \ --exclude '/sys/*' \ --exclude '/tmp/*' \ --exclude '/mnt/*' \ --exclude '/media/*' \ "/mnt/onsite-backup/titan::root-{now:%Y-%m-%d}" / # Backup boot parition sudo borg create --verbose --list --stats --show-rc --exclude-caches --one-file-system \ "/mnt/onsite-backup/titan::boot-{now:%Y-%m-%d}" /boot # Backup home partition sudo borg create --verbose --list --stats --show-rc --exclude-caches --one-file-system \ "/mnt/onsite-backup/titan::home-{now:%Y-%m-%d}" /home # Backup var partition sudo borg create --verbose --list --stats --show-rc --exclude-caches --one-file-system \ "/mnt/onsite-backup/titan::var-{now:%Y-%m-%d}" /var