NextPVR Forums
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Wishlist v
« Previous 1 … 9 10 11 12 13 … 190 Next »
Automatic backup of Config.xml and NPVR.db3

 
  • 0 Vote(s) - 0 Average
Automatic backup of Config.xml and NPVR.db3
p37307
Offline

Member

Posts: 249
Threads: 45
Joined: Jul 2016
#1
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.

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:
meccano
Offline

Member

Posts: 109
Threads: 36
Joined: Jan 2008
#2
2017-12-07, 04:08 PM
I also support this request. I recently had a case where NextPVR failed in some manner on a Monday but I was not able to investigate until I returned from out of the country on Friday. Please also add a config variable that controls how many log files kept in the log folder.
jksmurf
Offline

Posting Freak

HK (DMBTH)
Posts: 3,590
Threads: 410
Joined: Jul 2005
#3
2017-12-10, 01:01 AM
+1
ASUS STRIX X470-F AMD 2700x 4GHz | Win10Prox64 | 32GB | NVIDIA GEforce GT1030 Fanless | WinTV DMB-TH | WinTV HVR-1280 | Hauppauge Colossus | AC86U/AC68U | USB-UIRT | RPi4 Libreelec | Sony Bravia LCD X9000F Android TV |
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)



Possibly Related Threads…
Thread Author Replies Views Last Post
  posibility of two or three Automatic EPG Update per day kfmf 3 795 2020-12-28, 12:19 PM
Last Post: Graham
  Backup stream cords911 0 577 2020-02-11, 10:43 PM
Last Post: cords911
  Orginal Air Date show up in native NPVR guide and search result jtcreate 14 4,245 2017-07-27, 12:15 AM
Last Post: jtcreate
  NPVR notification area icon right click to settings without having to "Start N-PVR" tripkip 4 2,022 2015-12-20, 05:36 PM
Last Post: sub
  Config to control what Channel Group is presented to Kodi JavaWiz 1 1,908 2015-11-04, 02:15 AM
Last Post: sub
  Additional transcode options in config.xml trummel 0 1,077 2015-09-28, 02:18 PM
Last Post: trummel
  Multiple NPVR system intergration browned 4 1,851 2015-08-04, 02:15 AM
Last Post: browned
  Import XMLTV valid series.episode data from Epgcollector in NZ into NPVR db MCEabused 6 4,484 2014-10-30, 09:41 AM
Last Post: kylebrophy
  Red, Green, Yellow, Blue flags saved in recordings backup file martint123 7 2,029 2014-05-09, 03:30 PM
Last Post: martint123
  National char support for NPVR aallinen 5 1,759 2014-05-08, 02:52 PM
Last Post: aallinen

  • View a Printable Version
  • Subscribe to this thread
Forum Jump:

© Designed by D&D, modified by NextPVR - Powered by MyBB

Linear Mode
Threaded Mode