added hostname to backup file name

This commit is contained in:
locker98 2024-04-06 21:49:11 -04:00
parent f52afee12b
commit 90fed6868e

2
backup
View File

@ -5,7 +5,7 @@ if [ $# -ne 1 ]; then
fi fi
BACKUP_LOCATION="${1}backup-$(date +%Y-%m-%d).tar" BACKUP_LOCATION="${1}backup-${HOSTNAME}-$(date +%Y-%m-%d).tar"
echo $BACKUP_LOCATION echo $BACKUP_LOCATION