Project

General

Profile

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
total 8
-rwx-----
1 hts video 352 Feb 16 00:16 config
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
total 168
-rwx-----
1 hts video 358 Jan 28 23:08 10
rwx----- 1 hts video 358 Jan 28 23:10 11
rwx----- 1 hts video 358 Jan 29 22:32 12
rwx----- 1 hts video 358 Jan 29 22:41 13
rwx----- 1 hts video 361 Jan 31 23:26 14
rwx----- 1 hts video 351 Feb 1 15:07 15
rwx----- 1 hts video 356 Feb 1 22:10 16
rwx----- 1 hts video 358 Feb 1 22:29 17
rwx----- 1 hts video 358 Feb 1 22:37 18
rwx----- 1 hts video 378 Feb 1 22:44 19
rwx----- 1 hts video 378 Jan 27 22:47 2
rwx----- 1 hts video 358 Feb 1 22:53 20
rwx----- 1 hts video 358 Feb 1 22:57 21
rwx----- 1 hts video 363 Feb 1 23:06 22
rwx----- 1 hts video 353 Feb 1 23:37 23
rwx----- 1 hts video 348 Feb 2 11:20 24
rwx----- 1 hts video 348 Feb 2 11:22 25
rwx----- 1 hts video 348 Feb 2 12:16 26
rwx----- 1 hts video 358 Feb 4 22:25 27
rwx----- 1 hts video 323 Feb 6 22:28 28
rwx----- 1 hts video 358 Feb 6 22:31 29
rwx----- 1 hts video 348 Feb 7 23:10 31
rwx----- 1 hts video 348 Feb 8 00:17 32
rwx----- 1 hts video 353 Feb 8 00:45 33
rwx----- 1 hts video 363 Feb 8 11:34 34
rwx----- 1 hts video 353 Feb 8 11:43 35
rwx----- 1 hts video 363 Feb 8 11:51 36
rwx----- 1 hts video 363 Feb 8 11:51 37
rwx----- 1 hts video 356 Feb 8 22:00 38
rwx----- 1 hts video 339 Feb 9 14:30 39
rwx----- 1 hts video 358 Jan 27 23:06 4
rwx----- 1 hts video 344 Feb 9 14:57 40
rwx----- 1 hts video 329 Feb 9 14:59 41
rwx----- 1 hts video 544 Feb 9 19:09 44
rwx----- 1 hts video 572 Feb 10 20:31 45
rwx----- 1 hts video 317 Feb 14 22:30 48
rwx----- 1 hts video 353 Jan 27 23:16 5
rwx----- 1 hts video 414 Feb 16 00:53 55
rwx----- 1 hts video 348 Jan 28 00:25 6
rwx----- 1 hts video 348 Jan 28 22:50 7
rwx----- 1 hts video 358 Jan 28 23:02 8
rwx----- 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.

    (1-4/4)