From 3cb6cee626c68986d8ee0a19fb6946953c3fba02 Mon Sep 17 00:00:00 2001 From: vanhofen Date: Tue, 17 Oct 2017 10:43:51 +0200 Subject: [PATCH] backup-script: allow free definable filename for backup tarball Origin commit data ------------------ Commit: https://github.com/neutrino-images/ni-neutrino/commit/cf1b3ef3eeb1d42c4f127d7455757c84b7fb85e9 Author: vanhofen Date: 2017-10-17 (Tue, 17 Oct 2017) Origin message was: ------------------ - backup-script: allow free definable filename for backup tarball --- data/scripts/backup.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data/scripts/backup.sh b/data/scripts/backup.sh index d30d5ab29..8b7039337 100755 --- a/data/scripts/backup.sh +++ b/data/scripts/backup.sh @@ -5,7 +5,7 @@ HOST=$(hostname) DATE=$(date +%Y-%m-%d_%H-%M-%S) USRF="/var/tuxbox/config/tobackup.conf" -BAKF="$1/settings_${HOST}_${DATE}.tar.gz" +BAKF="$1/${2:-settings_${HOST}_${DATE}.tar.gz}" TOBACKUP="\ /share/tuxbox/neutrino/flex/flex_eigene_scripte.conf \