TVHEADEND RECODRING PATH CHANGE ISSUE
Added by Arshvinder Singh Sehmi over 10 years ago
Hi All,
I have changed the path of the files recorded by tvheadend, due to some disk issue. Now I want to map the new path of my existing recordings in tvheadend.
old path /hts/tvheadend/ -- its in /dev/sda8
new path /media/TVHEADEND/hts -- its in /dev/sda9
I have updated the path in Configuration -> Recording -> Recording system path in tvheadend.
But I couldn't able to plat my previously recorded files. How do I update this new path in tvheadend configuration file/ database.
Please help!
Regards,
ErSehmi
Replies (4)
RE: TVHEADEND RECODRING PATH CHANGE ISSUE - Added by Prof Yaffle over 10 years ago
Try editing the log files. If you're brave, and you're prepared to check this before running it as I take no responsibility - I don't know what distro you're using, and I haven't tested it... use it as a template, take a backup, test it first, E&OE, I am not responsible if your kitten dies, etc.
sudo su hts cd /home/hts/.hts/tvheadend/dvr/log grep -l "\/hts\/tvheadend" * | xargs -e sed -i 's/\/hts\/tvheadend/\/media\/TVHEADEND\/hts/g'
Although I'm surprised that the old recordings don't show up, unless you've moved them.
RE: TVHEADEND RECODRING PATH CHANGE ISSUE - Added by Arshvinder Singh Sehmi over 10 years ago
One thing I have forgotten to mention is I have already moved all the recording files from old to new path. And now I want tvheadend to pick the old recordings from new path forstreaming.
Look at this and suggest me something -
hts@HP6040in:~/.hts/tvheadend/dvr$ ls l 1 hts video 352 Feb 16 00:16 config
total 8
-rwx-----
drwx------ 2 hts video 4096 Feb 16 16:20 log
hts@HP6040in:~/.hts/tvheadend/dvr$ cd log
hts@HP6040in:~/.hts/tvheadend/dvr/log$ ls l 1 hts video 358 Jan 28 23:08 10
total 168
-rwx-----rwx----- 1 hts video 358 Jan 28 23:10 11rwx----- 1 hts video 358 Jan 29 22:32 12rwx----- 1 hts video 358 Jan 29 22:41 13rwx----- 1 hts video 361 Jan 31 23:26 14rwx----- 1 hts video 351 Feb 1 15:07 15rwx----- 1 hts video 356 Feb 1 22:10 16rwx----- 1 hts video 358 Feb 1 22:29 17rwx----- 1 hts video 358 Feb 1 22:37 18rwx----- 1 hts video 378 Feb 1 22:44 19rwx----- 1 hts video 378 Jan 27 22:47 2rwx----- 1 hts video 358 Feb 1 22:53 20rwx----- 1 hts video 358 Feb 1 22:57 21rwx----- 1 hts video 363 Feb 1 23:06 22rwx----- 1 hts video 353 Feb 1 23:37 23rwx----- 1 hts video 348 Feb 2 11:20 24rwx----- 1 hts video 348 Feb 2 11:22 25rwx----- 1 hts video 348 Feb 2 12:16 26rwx----- 1 hts video 358 Feb 4 22:25 27rwx----- 1 hts video 323 Feb 6 22:28 28rwx----- 1 hts video 358 Feb 6 22:31 29rwx----- 1 hts video 348 Feb 7 23:10 31rwx----- 1 hts video 348 Feb 8 00:17 32rwx----- 1 hts video 353 Feb 8 00:45 33rwx----- 1 hts video 363 Feb 8 11:34 34rwx----- 1 hts video 353 Feb 8 11:43 35rwx----- 1 hts video 363 Feb 8 11:51 36rwx----- 1 hts video 363 Feb 8 11:51 37rwx----- 1 hts video 356 Feb 8 22:00 38rwx----- 1 hts video 339 Feb 9 14:30 39rwx----- 1 hts video 358 Jan 27 23:06 4rwx----- 1 hts video 344 Feb 9 14:57 40rwx----- 1 hts video 329 Feb 9 14:59 41rwx----- 1 hts video 544 Feb 9 19:09 44rwx----- 1 hts video 572 Feb 10 20:31 45rwx----- 1 hts video 317 Feb 14 22:30 48rwx----- 1 hts video 353 Jan 27 23:16 5rwx----- 1 hts video 414 Feb 16 00:53 55rwx----- 1 hts video 348 Jan 28 00:25 6rwx----- 1 hts video 348 Jan 28 22:50 7rwx----- 1 hts video 358 Jan 28 23:02 8rwx----- 1 hts video 358 Jan 28 23:05 9
hts@HP6040in:~/.hts/tvheadend/dvr/log$ clear
hts@HP6040in:~/.hts/tvheadend/dvr/log$ grep -l "\/hts\/tvheadend" * | xargs -e sed -i 's/\/hts\/tvheadend/\/media\/TVHEADEND\/hts/g'
sed: no input files
Thanks & Regards,
ErSehmi
RE: TVHEADEND RECODRING PATH CHANGE ISSUE - Added by Prof Yaffle over 10 years ago
Can you provide a sample of a couple of those logs, please, just to check the details.
Just cat 10, cat 55, that sort of thing.
RE: TVHEADEND RECODRING PATH CHANGE ISSUE - Added by Hero of Shapeir over 10 years ago
Another option is to throw a symlink in for the original location for the duration that you have those files around. Not pretty, but it's easy.