Skip to content

Commit

Permalink
[backup_raspi*] store backups in $HOST subdir instead of hardcoding name
Browse files Browse the repository at this point in the history
  • Loading branch information
ochurlaud committed Mar 27, 2022
1 parent ff1091f commit 2dccf5f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion scripts/backup_raspi3.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion scripts/backup_raspi4.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 2dccf5f

Please sign in to comment.