mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-26 23:13:13 +02:00
- unify backup suffixes
Conflicts: data/scripts/backup.sh Signed-off-by: Thilo Graf <dbt@novatux.de>
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
DATE=$(date +%Y-%m-%d_%H-%M-%S)
|
DATE=$(date +%Y%m%d_%H%M)
|
||||||
USRF="/var/tuxbox/config/tobackup.conf"
|
USRF="/var/tuxbox/config/tobackup.conf"
|
||||||
BAKF="$1/${2:-settings_${DATE}.tar.gz}"
|
BAKF="$1/${2:-settings_${DATE}.tar.gz}"
|
||||||
|
|
||||||
|
@@ -42,7 +42,7 @@
|
|||||||
|
|
||||||
#include <driver/display.h>
|
#include <driver/display.h>
|
||||||
#include <driver/screen_max.h>
|
#include <driver/screen_max.h>
|
||||||
#include <driver/display.h>
|
#include <lib/libnet/libnet.h>
|
||||||
#include <system/helpers.h>
|
#include <system/helpers.h>
|
||||||
#include <system/debug.h>
|
#include <system/debug.h>
|
||||||
|
|
||||||
@@ -106,8 +106,11 @@ int CSettingsManager::exec(CMenuTarget* parent, const std::string &actionKey)
|
|||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
|
|
||||||
std::string fname = "neutrino.conf";
|
std::string hostName = "";
|
||||||
CKeyboardInput * sms = new CKeyboardInput(LOCALE_EXTRA_SAVECONFIG, &fname);
|
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, "");
|
sms->exec(NULL, "");
|
||||||
delete sms;
|
delete sms;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user