Offload your shows to another drive! Even another machine...
Here's a tiny little archiver function i made to move your videos to another location and automatically adjust the database to reflect the new location..
NEW: it also creates the subdir for recordings for better organization..
It consists of just a batch file and sqlite3.exe...
First, you need to download the zip and extract the reloc.bat to your gbpvr\Third Party\ directory, and sqlite3.exe to gbpvr\ if you don't already have one there..
Then, add a profile to custom ffmpeg conversions section in config.xml with your destination dir like:
Note: """ = double quotes ["] and ">" = greater than [>] when used inside strings in config.xml
Replace "Archive to USB" with whatever you wish to call the profile. [Will appear as profile name in video library]
Replace "\\home\k\mpg\archive\" with your destination dir. [Either network path or local, must end with \]
Create a profile for each destination you wish to use, you can even make one to restore them to recordings dir as well..
I set up 2 drives, and a restore to original location profiles for myself..
[to setup a restore profile, just set regular recordings dir as destination]
To Use:
Go into Video Library and select file to archive, hit left arrow to get to menu on left, select "Transcode" and move down to select your archive profile and hit "start" and either wait,or hit "Close" and it will continue in background.
If you hit "Close", it will let you do other things in GBPVR while it runs, if you hit Stop, it will stop the process completely...
It will copy the file to new location, [it takes a while] then adjust the database to new location, then delete old file..
When you go back into Recordings screen, the file will still play and show all info as if nothing happened..[but notice all the new free space!]
**Just to be safe, turn off the 'AutoRemoveMissingRecordings' in config first..**
works fine for me without it because it copies, adjusts database, then deletes..but setting usefull
for those with removable USB drives..
Works with renamed files, and across network drives [\\server\drive\]
******UPDATE:
Now copies and deletes all files with same first name and extension .txt, .srt, .edl
Also removes old souce dir if no movies inside..
******Fixed:
oops, forgot a closing ")" at end of file after changes...fixed..
May 6 '08 Removed attrib.exe checks as some people don't have this installed and wasn't really needed anyways..
Also changed to not delete if there's a folder.* in the dir to save folder.jpgs and .pngs..
[COLOR="Red"] Changed Profiles! now needs a \ at end of dest. path
Adjust your profiles in config.xml accordingly if upgrading[/COLOR]
Added cmd-line help
[COLOR="Red"]Sept 15 08: added .ts to list of movies..
set default to not delete source dir [see end of file for 'set deldir=no' set to yes and it will cleanup empty source dirs][/COLOR]
Here's a tiny little archiver function i made to move your videos to another location and automatically adjust the database to reflect the new location..
NEW: it also creates the subdir for recordings for better organization..
It consists of just a batch file and sqlite3.exe...
First, you need to download the zip and extract the reloc.bat to your gbpvr\Third Party\ directory, and sqlite3.exe to gbpvr\ if you don't already have one there..
Then, add a profile to custom ffmpeg conversions section in config.xml with your destination dir like:
Code:
<Conversion name="[b][color=Red]Archive to USB[/color][/b]" exe="reloc.bat" cmd=" {SOURCE_FILE} [b]"[color=RoyalBlue]\\homepc\kdrv\mpg\archive\[/color]"[/b] >>archiver.txt" targetExtension=".mov" />
Replace "Archive to USB" with whatever you wish to call the profile. [Will appear as profile name in video library]
Replace "\\home\k\mpg\archive\" with your destination dir. [Either network path or local, must end with \]
Create a profile for each destination you wish to use, you can even make one to restore them to recordings dir as well..
I set up 2 drives, and a restore to original location profiles for myself..
[to setup a restore profile, just set regular recordings dir as destination]
To Use:
Go into Video Library and select file to archive, hit left arrow to get to menu on left, select "Transcode" and move down to select your archive profile and hit "start" and either wait,or hit "Close" and it will continue in background.
If you hit "Close", it will let you do other things in GBPVR while it runs, if you hit Stop, it will stop the process completely...
It will copy the file to new location, [it takes a while] then adjust the database to new location, then delete old file..
When you go back into Recordings screen, the file will still play and show all info as if nothing happened..[but notice all the new free space!]
**Just to be safe, turn off the 'AutoRemoveMissingRecordings' in config first..**
works fine for me without it because it copies, adjusts database, then deletes..but setting usefull
for those with removable USB drives..
Works with renamed files, and across network drives [\\server\drive\]
******UPDATE:
Now copies and deletes all files with same first name and extension .txt, .srt, .edl
Also removes old souce dir if no movies inside..
******Fixed:
oops, forgot a closing ")" at end of file after changes...fixed..
May 6 '08 Removed attrib.exe checks as some people don't have this installed and wasn't really needed anyways..
Also changed to not delete if there's a folder.* in the dir to save folder.jpgs and .pngs..
[COLOR="Red"] Changed Profiles! now needs a \ at end of dest. path
Adjust your profiles in config.xml accordingly if upgrading[/COLOR]
Added cmd-line help
[COLOR="Red"]Sept 15 08: added .ts to list of movies..
set default to not delete source dir [see end of file for 'set deldir=no' set to yes and it will cleanup empty source dirs][/COLOR]
Hardware: HDHR Prime, HDPVR 1212, Raspberry pi2, VFD display w/LCDSmartie