NextPVR Forums
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public NextPVR Support Linux v
« Previous 1 2 3 4 5 6 … 28 Next »
Moving NextPVR to new system (linux)

 
  • 0 Vote(s) - 0 Average
Moving NextPVR to new system (linux)
cyber
Offline

Junior Member

UK
Posts: 12
Threads: 1
Joined: Jan 2022
#1
2023-01-01, 01:02 PM
Hi all,

I'm trying to work out the steps I need to follow to move my existing NextPVR setup to a new system.

So far, I've installed NextPVR on the new machine using the .deb file and its running in a 'clean' state. The old machine was also installed using the .deb file.

The main change is going to be the recordings location which was /mnt/MyPassport/NextPVR/recordings and is now going to be /mnt/data/NextPVR/recordings

In terms of the steps to follow, I've got:

1. Copy recordings from old location to new
2. Stop nextpvr service on both computers
3. Move npvr.db3 and config.xml in /var/opt/nextpvr to the same location on the new computer

Is this right and what else do I need to do?
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 47,327
Threads: 889
Joined: May 2006
#2
2023-01-01, 01:13 PM
Make sure that the directory can be read and written too.

2.a

backup npvr.db3 and config.xml

edit config.xml to

<AutoRemoveMissingRecordings>false</AutoRemoveMissingRecordings>
<CheckForRenamedRecordings>false</CheckForRenamedRecordings>
<NoRemoveWhenTreeMissing>true</NoRemoveWhenTreeMissing>

3. copy not move.

4. Use NextTool to import the recordings I think --merge will change the filenames but I can't remember.
cyber
Offline

Junior Member

UK
Posts: 12
Threads: 1
Joined: Jan 2022
#3
2023-01-01, 07:14 PM
Thanks, I'm reading the wiki on NextTool here and a couple of questions:

1. Do I run this on the old system or new one - I assume its the new one.
2. What command would I have to give? Is sudo -u nextpvr /opt/dotnet/dotnet /opt/nextpvr/system/NextTool.dll --merge /mnt/data/NextPVR/recordings the right command for me?
3. Why do I need to change the file names?
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 47,327
Threads: 889
Joined: May 2006
#4
2023-01-01, 09:15 PM
The full path is stored with the recording
cyber
Offline

Junior Member

UK
Posts: 12
Threads: 1
Joined: Jan 2022
#5
2023-01-02, 04:26 PM
Thanks, do I run nexttool on the new system once I've moved the recordings and is the above command the right one?
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 47,327
Threads: 889
Joined: May 2006
#6
2023-01-02, 04:37 PM
It updates the database on the system you run it on, so yes on the new machine

I would probably run this in case of a typo

Code:
cd /opt/nextpvr/system
sudo -u nextpvr /opt/dotnet/dotnet NextTool.dll --merge /mnt/data/NextPVR/recordings

I'd first make sure I could record new recording to that folder to check permissions and stress the importance of doing this on a backup.

Martin
cyber
Offline

Junior Member

UK
Posts: 12
Threads: 1
Joined: Jan 2022
#7
2023-01-06, 09:03 PM
I'm going to give this a try this weekend and will report back on the results.

What's the difference between between using --merge and --import? I have all of the xml metadata files available for the recordings.
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 47,327
Threads: 889
Joined: May 2006
#8
2023-01-06, 10:31 PM
Merge simply replaces the full path/filename when a filename match is found. Import will add files not in the database, and uses a few tricks to get as much metadata as it can. If you have the metadata there wouldn't be much different for the imported files but the old recording would be there until you changed config.xml settings to have NextPVR remove them.

Martin
cyber
Offline

Junior Member

UK
Posts: 12
Threads: 1
Joined: Jan 2022
#9
2023-01-07, 09:30 PM
I've followed the steps in this thread but when I enter the --merge NextTool command I get a SQLite Error 14 as follows. Any ideas on how to resolve?

Code:
/opt/nextpvr/system$ cd /opt/nextpvr/system
/opt/nextpvr/system$ sudo -u nextpvr /opt/dotnet/dotnet NextTool.dll --merge /mnt/data/NextPVR/recordings/
NEXTPVR_INSTALLDIR /opt/nextpvr/system/
NEXTPVR_DATADIR /opt/nextpvr/system/data/
NEXTPVR_DATADIR_USERDATA /var/opt/nextpvr/
SQLite Error 14: 'unable to open database: /mnt/data/NextPVR/recordings/'.

If I run ls -lR /mnt/data/NextPVR/recordings/ I can see all my recordings from my previous system so its definately the correct path.
cyber
Offline

Junior Member

UK
Posts: 12
Threads: 1
Joined: Jan 2022
#10
2023-01-07, 09:55 PM
Also, this is the output from NextTool.log

Code:
[...startup]
2023-01-07 21:21:24.968    [DEBUG][1]    NextTool, Version=2.2.1.0, Culture=neutral, PublicKeyToken=null
2023-01-07 21:21:24.983    [INFO][1]    Using remote RecordingService
2023-01-07 21:21:24.983    [DEBUG][1]    Database: /var/opt/nextpvr/npvr.db3
2023-01-07 21:21:25.088    [INFO][1]    --merge /mnt/data/NextPVR/recordings/
2023-01-07 21:21:25.088    [DEBUG][1]    Attach '/mnt/data/NextPVR/recordings/' as oldversion
2023-01-07 21:21:25.110    [ERROR][1]    SQLite Error 14: 'unable to open database: /mnt/data/NextPVR/recordings/'.
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)

Pages (2): 1 2 Next »


Possibly Related Threads…
Thread Author Replies Views Last Post
  NextPVR can't open RAI (Italian main TV channels) links f2fg 10 156 2023-09-18, 05:22 PM
Last Post: mvallevand
  WinTV Dual HD tuner not detecting through NextPVR on RPI joshdee 11 237 2023-09-11, 09:39 PM
Last Post: LynnO
  Nextpvr + Jellyfin JumboAg 3 136 2023-08-31, 01:41 PM
Last Post: mvallevand
  NextPVR on Ubuntu 22.04 adwsail 29 431 2023-08-30, 07:51 PM
Last Post: mvallevand
  NextPVR won't install Paul_G 4 171 2023-07-26, 03:34 PM
Last Post: mvallevand
  Which version of Linux? Paul_G 6 176 2023-07-21, 03:30 PM
Last Post: VCR58
Photo Copy Channel Lineup in Linux boukmandutty 11 271 2023-06-15, 06:53 PM
Last Post: mvallevand
  Nextpvr Has Stopped Recording Mark_S 4 163 2023-05-28, 04:27 PM
Last Post: Mark_S
  how can I disable NextPVR on Pi3 markosjal 0 110 2023-05-27, 05:45 PM
Last Post: markosjal
  Raspberry Pi 3 Linux Stretch Upgrade success markosjal 1 124 2023-05-20, 05:15 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