- unify backup suffixes

Conflicts:
	data/scripts/backup.sh

Signed-off-by: Thilo Graf <dbt@novatux.de>
This commit is contained in:
svenhoefer
2020-11-10 22:01:57 +01:00
committed by Thilo Graf
parent 3c5ea6452c
commit 0a9a0e77e8
2 changed files with 7 additions and 4 deletions

View File

@@ -1,6 +1,6 @@
#!/bin/sh
DATE=$(date +%Y-%m-%d_%H-%M-%S)
DATE=$(date +%Y%m%d_%H%M)
USRF="/var/tuxbox/config/tobackup.conf"
BAKF="$1/${2:-settings_${DATE}.tar.gz}"

View File

@@ -42,7 +42,7 @@
#include <driver/display.h>
#include <driver/screen_max.h>
#include <driver/display.h>
#include <lib/libnet/libnet.h>
#include <system/helpers.h>
#include <system/debug.h>
@@ -106,8 +106,11 @@ int CSettingsManager::exec(CMenuTarget* parent, const std::string &actionKey)
return res;
}
std::string fname = "neutrino.conf";
CKeyboardInput * sms = new CKeyboardInput(LOCALE_EXTRA_SAVECONFIG, &fname);
std::string hostName = "";
netGetHostname(hostName);
std::string timeStr = getNowTimeStr("_%Y%m%d_%H%M");
std::string fname = "neutrino_" + hostName + timeStr + ".conf";
CKeyboardInput * sms = new CKeyboardInput(LOCALE_EXTRA_SAVECONFIG, &fname, 45);
sms->exec(NULL, "");
delete sms;