NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public NextPVR Support Legacy (v4.x and earlier) v
« Previous 1 … 173 174 175 176 177 … 433 Next »
Archiving

Archiving
browned
Offline

Junior Member

Posts: 39
Threads: 6
Joined: Jul 2015
#1
2015-08-13, 11:19 PM
I have looked everywhere and can't seem to find any conclusive instructions or guides on how to archive recordings to another drive or network share.

I have a small Windows 7 VM with NextPVR setup, it currently records to the SSD C drive which has only 22GB of space. I want to move the recorded files to a network share quickly after recording finishes. Is there a plugin or some simple steps I can follow to get this process working?

Thanks
psycik
Offline

Posting Freak

Posts: 5,210
Threads: 424
Joined: Sep 2005
#2
2015-08-13, 11:44 PM
I had a script for doing just this. But I was moving files overnight rather than after recording...then updating the db with it's new location.

You could probably adapt it to use the post_processing.bat file which is what you need to hook into to run it after recording.
browned
Offline

Junior Member

Posts: 39
Threads: 6
Joined: Jul 2015
#3
2015-08-13, 11:46 PM
psycik Wrote:I had a script for doing just this. But I was moving files overnight rather than after recording...then updating the db with it's new location.

You could probably adapt it to use the post_processing.bat file which is what you need to hook into to run it after recording.

sounds good, where can I find said script if it is available for public consumption?

Thanks
psycik
Offline

Posting Freak

Posts: 5,210
Threads: 424
Joined: Sep 2005
#4
2015-08-14, 12:28 AM
Here It is here:
Code:
@Echo Off
@for /f "Tokens=1-4 Delims=/ " %%i in ('date /t') do  @set dt=%%l-%%k-%%j
@for /f "Tokens=1-4 Delims=/ " %%i in ('date /t') do  @set dm=%%l-%%k
@for /f "Tokens=1" %%i in ('time /t') do @set tm=-%%i
@set tm=%tm::=-%
@set dtt=%dt%%tm%
rem
set source=%1
set title=%2
set destPath=\\aragorn%~p1
set sourcePath=%~dp1
set filename=%~n1
set dest=%source:c:=\\aragorn%
set log=C:\Users\tv\Documents\Batchjob\Logs\MoveRecordings.log
echo dest=%dest%
echo ================================================================================ >> %log%
echo Post Processing started: %dtt% for %title% >> %log%
echo source=%source% >> %log%
echo destination=%destPath% >> %log%
echo xcopy %sourcePath%%filename%.* %destPath% /z /j /y /i >> %log%
xcopy "%sourcePath%%filename%.*" "%destPath%" /z /j /y
if %errorlevel% equ 0 GOTO :OK
GOTO :ERROR

:OK
echo Successful Copy, deleting source file: %source%  >> %log%
echo Successful Copy, deleting source file: %source%
del "%sourcePath%%filename%.*"
Echo Running nScript helper on %source% to %dest%
Echo Running nScript helper on %source% >> %log%
"C:\Program Files (x86)\NPVR\NScriptHelper" -Rename %source% %dest%
goto :EOF

:ERROR
echo Error when copying %source% error was: %errorlevel%
GOTO :EOF
:EOF
echo End Processing of %source% >> %log%

So this will move a single file. You could adapt it to run from post_processing.bat
jksmurf
Offline

Posting Freak

HK (DMBTH)
Posts: 3,590
Threads: 410
Joined: Jul 2005
#5
2015-08-14, 08:10 AM
browned Wrote:I have looked everywhere and can't seem to find any conclusive instructions or guides on how to archive recordings to another drive or network share.

The bacth file is probably best for doing this autmatically, but I find the Wiki has a reasonable descripiton

Under here http://www.nextpvr.com/nwiki/pmwiki.php?...Recordings scroll down until you see the section entitled "The Recording Details Popup" which shwois a screen Grab showing "Archive".

To set up NPVR so that you have multiple directories, which generates the ability for the Archive prompt, go into settings as per here:

http://www.nextpvr.com/nwiki/pmwiki.php?....Recording

k.
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 |
browned
Offline

Junior Member

Posts: 39
Threads: 6
Joined: Jul 2015
#6
2015-08-14, 11:50 AM
Thanks psycik, a few mods and the script is working well. Even managed to use robocopy and slow the network transfer a little so it doesn't impact on live tv as much.

Cheers
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)



Possibly Related Threads…
Thread Author Replies Views Last Post
  Archiving Orphan Files jksmurf 7 2,694 2015-09-15, 11:49 AM
Last Post: jksmurf
  Bonkers Archiving Problem Graham 10 3,465 2014-03-07, 02:35 PM
Last Post: Graham
  How do I setup auto archiving every night coolwizkid 5 2,310 2013-05-17, 09:24 PM
Last Post: sub
  Archiving Question saitoh183 13 3,883 2013-01-31, 02:11 AM
Last Post: saitoh183
  Archiving from client not working mvallevand 8 2,941 2012-08-25, 03:08 AM
Last Post: whurlston
  New Archiving function does not delete folder agerdin 1 1,246 2012-08-14, 09:44 PM
Last Post: sub
  Archiving to a NAS fjbpchristiaens 1 1,320 2012-05-27, 10:16 PM
Last Post: sub

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

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

Linear Mode
Threaded Mode