From 2dccf5f1cbe954ed2b98bb6588410e18f8f5db40 Mon Sep 17 00:00:00 2001 From: Olivier CHURLAUD Date: Sun, 27 Mar 2022 21:41:16 +0200 Subject: [PATCH] [backup_raspi*] store backups in $HOST subdir instead of hardcoding name --- scripts/backup_raspi3.sh | 2 +- scripts/backup_raspi4.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/backup_raspi3.sh b/scripts/backup_raspi3.sh index 2f557ce..8e0b292 100755 --- a/scripts/backup_raspi3.sh +++ b/scripts/backup_raspi3.sh @@ -4,7 +4,7 @@ set -e LOGFILE=/home/olivier/.backup-rpi3.log BACKUP_HOST="olivier@raspi3" -BACKUP_ROOTPATH="/mnt/auto/MyBook/backups/OLINUX" +BACKUP_ROOTPATH="/mnt/auto/MyBook/backups/${HOST}" BACKUP_DIR_PREFIX="backup" BACKUP_FULLPATH_PREFIX="${BACKUP_ROOTPATH}/${BACKUP_DIR_PREFIX}" CURRENT_BACKUP_DIR="${BACKUP_DIR_PREFIX}.0" diff --git a/scripts/backup_raspi4.sh b/scripts/backup_raspi4.sh index de306cd..a7f3295 100755 --- a/scripts/backup_raspi4.sh +++ b/scripts/backup_raspi4.sh @@ -4,7 +4,7 @@ set -e LOGFILE=/home/olivier/.backup-rpi4.log BACKUP_HOST="olivier@raspi4" -BACKUP_ROOTPATH="/mnt/auto/MyBook/backups/OLINUX" +BACKUP_ROOTPATH="/mnt/auto/MyBook/backups/${HOST}" BACKUP_DIR_PREFIX="backup" BACKUP_FULLPATH_PREFIX="${BACKUP_ROOTPATH}/${BACKUP_DIR_PREFIX}" CURRENT_BACKUP_DIR="${BACKUP_DIR_PREFIX}.0"