From 5c9df935636c6b5610a0d1f2bf3ed8dfcd10c856 Mon Sep 17 00:00:00 2001 From: Sam Chudnick Date: Sun, 28 Nov 2021 23:13:19 -0500 Subject: Combined borg-onsite and borg-offsite scripts into a single script that takes an argument to specify the location. Reorganized script to use variables to reduce redundant strings. Added automated retrieval of repository password via pass. Removed --list from borg create options and redirect output to log file. --- .local/bin/backups/borg-offsite | 25 ------------------------- 1 file changed, 25 deletions(-) delete mode 100755 .local/bin/backups/borg-offsite (limited to '.local/bin/backups/borg-offsite') diff --git a/.local/bin/backups/borg-offsite b/.local/bin/backups/borg-offsite deleted file mode 100755 index dfc9c01..0000000 --- a/.local/bin/backups/borg-offsite +++ /dev/null @@ -1,25 +0,0 @@ -#!/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/offsite-backup/titan::root-{now:%Y-%m-%d}" / - -# Backup boot parition -sudo borg create --verbose --list --stats --show-rc --exclude-caches --one-file-system \ - "/mnt/offsite-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/offsite-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/offsite-backup/titan::var-{now:%Y-%m-%d}" /var - -- cgit v1.2.3