- keybind-setup/settings-manager: use getBackupSuffix() function

Conflicts:
	data/scripts/backup.sh

Signed-off-by: Thilo Graf <dbt@novatux.de>
This commit is contained in:
svenhoefer
2020-11-12 22:17:34 +01:00
committed by Thilo Graf
parent 31cea8ca29
commit 550ece306e
3 changed files with 8 additions and 12 deletions

View File

@@ -1,8 +1,11 @@
#!/bin/sh
HOST=$(hostname)
DATE=$(date +%Y%m%d_%H%M)
USRF="/var/tuxbox/config/tobackup.conf"
BAKF="$1/${2:-settings_${DATE}.tar.gz}"
BAKF="$1/${2:-settings_${HOST}_${DATE}}.tar.gz"
if [ -e "${USRF}" ]; then
# read user-files from $USRF