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 … 8 9 10 11 12 … 34 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
Online

Posting Freak

Ontario Canada
Posts: 52,817
Threads: 954
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
Online

Posting Freak

Ontario Canada
Posts: 52,817
Threads: 954
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
Online

Posting Freak

Ontario Canada
Posts: 52,817
Threads: 954
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
Online

Posting Freak

Ontario Canada
Posts: 52,817
Threads: 954
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
  Linux Command Line To Initiate SchedulesDirect EPG Update LinuxDVR 1 170 2025-04-13, 06:35 PM
Last Post: mvallevand
  NextPVR can't open RAI (Italian main TV channels) links f2fg 17 2,939 2025-03-29, 10:15 AM
Last Post: alice_anto
  Linux install failed -- permission denied? FrogFan 4 405 2025-03-26, 12:39 AM
Last Post: FrogFan
  Guide data issue using NextPVR in a Proxmox LXC njc 10 800 2025-03-23, 01:40 PM
Last Post: njc
  NextPVR oddly limited to 7 tuners DaVinylSmith 4 427 2025-02-12, 02:49 PM
Last Post: DaVinylSmith
  NextPVR webserver not starting, prevents client from starting homemaisonbaile 28 1,211 2025-02-04, 05:23 PM
Last Post: mvallevand
  Is there a 'recommended' version/release of Linux? Bobthegoldfish 1 363 2024-12-24, 12:28 AM
Last Post: mvallevand
  NextPVR 7 looses recordings after post processing ballfam 15 830 2024-12-20, 03:23 AM
Last Post: ballfam
  Colossus 2 and nextpvr Iriman 53 4,466 2024-12-16, 02:32 AM
Last Post: ehfortin
  NextPVR user1232 1 289 2024-11-09, 11:21 AM
Last Post: mvallevand

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

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

Linear Mode
Threaded Mode