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 … 257 258 259 260 261 … 433 Next »
Automatic Cleanup

Automatic Cleanup
tuckerman
Offline

Junior Member

Posts: 3
Threads: 3
Joined: Apr 2013
#1
2013-05-01, 04:04 AM
hello,
new to NextPVR, any plugins available to autocleanup old recordings or limit size of folder/storage warnings depending on space limitations ?

Thaks

Tom
Reddwarf
Offline

Posting Freak

Posts: 6,629
Threads: 230
Joined: Mar 2007
#2
2013-05-01, 09:16 AM
tuckerman Wrote:hello,
new to NextPVR, any plugins available to autocleanup old recordings or limit size of folder/storage warnings depending on space limitations ?

Thaks

Tom
Not to my knowledge, but for recurring recordings you can set the number of recordings to keep.

"I'd rather have a bottle in front of me than a frontal lobotomy"
Graham
Offline

Posting Freak

UK
Posts: 4,058
Threads: 102
Joined: Dec 2005
#3
2013-05-01, 10:43 AM
I don't recall anything that gives warnings. System plugin will display space used ... http://www.nextpvr.com/nwiki/pmwiki.php?n=Plugin.System
kcmcdona
Offline

Junior Member

Posts: 26
Threads: 4
Joined: May 2008
#4
2013-05-05, 06:28 AM
This is not a plugin to NPVR, but I run the following batch file nightly with a windows scheduled task. It scans a named directory looking for files that are older than 14 days. (uncut recordings) It moves these files to a 'deleted' folder.
It then scans the NPVR recordings directory and does the same for files older than 60 days. (My limit for how long something stays in the recordings directory.)
When this is done, the deleted folder is removed.

I then run a command that looks for empty directories in the Recordings folder and removes them.

There is a parameter in the config file for NPVR that removes recorded filenames from the NPVR database if it can't find them on disk. After the cleanup, NPVR will remove the entries for the deleted files.

Although it works for me, use it/modify it at your own risk.

kcmcdona

Rem Begin of batch file.
Rem Batch file to process nightly tasks. This batch file is run with Scheduled Tasks, every morning at 1 am
Rem
Rem Clean out the Uncut-Recordings directory. All files over 14 days old are deleted
Rem
Set logfile=F:\uncut-recordings\batchdelete-logs\dailybatch.log

time /t >%logfile%
mkdir "F:\Deleted-Files" >>%logfile%

forfiles /p "F:\uncut-recordings" /s /d -14 /c "cmd /c if @isdir==FALSE move @path f:\Deleted-Files" >>%logfile%

Rem
Rem Clean out the Live TV Directory of files older than 3 days.
Rem
forfiles /p "C:\temp\LiveTV" /s /d -3 /c "cmd /c if @isdir==FALSE move @path f:\Deleted-Files" >>%logfile%
Rem

Rem Delete Windows and Mac support files that keep directories from being emptied
cd "f:\recorded tv"
f:
del /a /s ".ds_store"
del /a /s "thumbs.db"

Rem Clean out old recordings, older than 60 days
forfiles /p "f:\recorded tv" /s /d -60 /c "cmd /c if @isdir==FALSE move @path f:\Deleted-Files" >>%logfile%
Rem
rmdir "f:\deleted-files" /s /q >>%logfile%
Rem
for /f "tokens=1-4 delims=/:- " %%i in ('date /t') do rename %logfile% %%j-%%k-%%l.log
Rem
Rem
Rem Delete any empty Directories in the Recordings Directory
for /F "tokens=1-8" %%a IN ('Dir "F:\Recorded TV" /AD /B') do rd "f:\Recorded TV\%%a %%b %%c %%d %%e %%f %%g %%h"
Rem
Rem End of Batch File
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)



Possibly Related Threads…
Thread Author Replies Views Last Post
  automatic EPG update virtualpaul 18 12,701 2021-01-29, 12:40 PM
Last Post: virtualpaul
  Automatic EPG Fails, Manual Works Confused 4 1,943 2019-10-02, 06:43 PM
Last Post: Confused
  NextPVR's EPG Mappings keep reverting to the Automatic Mappings ChaosMageX 7 2,005 2019-09-25, 12:29 PM
Last Post: BrettB
  downloaded media art automatic cleanup 2leftfeet 1 1,006 2018-07-19, 07:32 PM
Last Post: sub
  EPG OTA no automatic update Galliano 23 7,224 2018-05-26, 07:19 PM
Last Post: scJohn
  Automatic EPG update not updating guide. Manual does robbyp 0 957 2018-03-24, 07:16 PM
Last Post: robbyp
  and + or capability in automatic recording section? APJ 8 2,505 2017-05-10, 11:31 AM
Last Post: APJ
  Schedules Direct EPG update not working in automatic mode pascalb 3 1,350 2015-12-01, 07:21 AM
Last Post: pascalb
  Automatic EPG update not working christieec 1 1,308 2015-08-19, 06:40 PM
Last Post: sub
  [NPVR 2.3.6] Incomplete automatic EPG update tmrt 90 29,225 2015-05-15, 03:13 PM
Last Post: NumberFive

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

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

Linear Mode
Threaded Mode