From 2224b034315fc00b0dc4e157be227eb1e507fdb7 Mon Sep 17 00:00:00 2001 From: Nathan Steel Date: Tue, 25 Aug 2026 15:34:55 +0100 Subject: [PATCH] Backup changes --- backup/fedora/backup.sh | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/backup/fedora/backup.sh b/backup/fedora/backup.sh index 81e3a67..008bb47 100644 --- a/backup/fedora/backup.sh +++ b/backup/fedora/backup.sh @@ -2,14 +2,14 @@ # 0 * * * * /home/nathan/Documents/backup.sh # Check if the USB is plugged in (Gnome auto-mounts to /run/media) -USB="/run/media/$USER/sd_backup"; +USB="/run/media/$USER/SD_BACKUP"; if [[ ! -d $USB ]]; then exit 1 # sd_backup is not plugged in; fi -USB_DIR="/fedora/borg"; +USB_DIR="/fedora"; -DIRS="git nas 360ss"; +DIRS="git nas"; BASE_DIR="/home/nathan/Documents/"; # Basically the code from directory_backup in scripts.git @@ -45,10 +45,13 @@ rsync_backup (){ --delete-before } +# Also do an over the internet backup some times +# weekdays at 12:30? so it can happen during break? + for bDir in $DIRS do - BACKUP_DIR=$USB$USB_DIR/$bDir; - CLONE_DIR=$USB/fedora/rsync/$bDir; + BACKUP_DIR=$USB$USB_DIR/borg/$bDir; + CLONE_DIR=$USB$USB_DIR/rsync/$bDir; DIR=$BASE_DIR$bDir; borg_backup