From 3cb63740d5a2eef86b8d0f365ff51d2e2529b77e Mon Sep 17 00:00:00 2001 From: vanhofen Date: Wed, 1 Jun 2016 21:02:07 +0200 Subject: [PATCH] data/scripts/backup.sh: don't use $(hostname) in $DATE variable Origin commit data ------------------ Branch: ni/coolstream Commit: https://github.com/neutrino-images/ni-neutrino/commit/e124b0e99bb9c68add93903bc293783b05a44e86 Author: vanhofen Date: 2016-06-01 (Wed, 01 Jun 2016) Origin message was: ------------------ - data/scripts/backup.sh: don't use $(hostname) in $DATE variable ------------------ No further description and justification available within origin commit message! ------------------ This commit was generated by Migit --- data/scripts/backup.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/data/scripts/backup.sh b/data/scripts/backup.sh index 9606ab8c8..d30d5ab29 100755 --- a/data/scripts/backup.sh +++ b/data/scripts/backup.sh @@ -2,9 +2,10 @@ . /etc/init.d/globals -DATE=$(hostname)_$(date +%Y-%m-%d_%H-%M-%S) +HOST=$(hostname) +DATE=$(date +%Y-%m-%d_%H-%M-%S) USRF="/var/tuxbox/config/tobackup.conf" -BAKF="$1/settings_$DATE.tar.gz" +BAKF="$1/settings_${HOST}_${DATE}.tar.gz" TOBACKUP="\ /share/tuxbox/neutrino/flex/flex_eigene_scripte.conf \