2017-12-06, 01:19 PM
I don't know how anyone else feels but I would like to see an automatic backup option in the MISC options that rolls config.xml and npvr.db3 for 5 days like what happens to the logs.
Just a simple input field of what directory you want it backed up to. In my case it's going to external drive g:\npvrbackup
I added some code to run in my PostUpdateEPG.bat file but it might be something to consider in the next update by default.
I included a "mock up" with the feature added.
Although it would be nice if it could be done automatically in a zipped file.
[ATTACHMENT NOT FOUND]
Just a simple input field of what directory you want it backed up to. In my case it's going to external drive g:\npvrbackup
I added some code to run in my PostUpdateEPG.bat file but it might be something to consider in the next update by default.
I included a "mock up" with the feature added.
Although it would be nice if it could be done automatically in a zipped file.
Code:
@Echo off
GoTo :BEGIN
:: Roll config.xml & npvr.db3 once per day when the EPG update is triggered
:BEGIN
SETLOCAL
Set SCRIPTNAME=%0
Set BASEDIR="c:\users\public\npvr"
Set DATA=%BASEDIR%\npvr.db3
Set DATA2=%BASEDIR%\config.xml
SET Setbackup="g:\npvrbackup\npvr.db3"
SET Setbackup2="g:\npvrbackup\config.xml"
:ROLL_backup
If EXIST %Setbackup%.4 COPY %Setbackup%.4 %Setbackup%.5 > nul
If EXIST %Setbackup%.3 COPY %Setbackup%.3 %Setbackup%.4 > nul
If EXIST %Setbackup%.2 COPY %Setbackup%.2 %Setbackup%.3 > nul
If EXIST %Setbackup%.1 COPY %Setbackup%.1 %Setbackup%.2 > nul
If EXIST %DATA% COPY %DATA% %Setbackup%.1 > nul
If EXIST %Setbackup2%.4 COPY %Setbackup2%.4 %Setbackup2%.5 > nul
If EXIST %Setbackup2%.3 COPY %Setbackup2%.3 %Setbackup2%.4 > nul
If EXIST %Setbackup2%.2 COPY %Setbackup2%.2 %Setbackup2%.3 > nul
If EXIST %Setbackup2%.1 COPY %Setbackup2%.1 %Setbackup2%.2 > nul
If EXIST %DATA2% COPY %DATA2% %Setbackup2%.1 > nul
GoTo :EOF
GoTo :EXITJOB
Exit /b
[ATTACHMENT NOT FOUND]
~Paul
If you haven't broken it at least once, you're not doing it right. :eek:
If you haven't broken it at least once, you're not doing it right. :eek: