NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public NextPVR Support Windows v
« Previous 1 … 14 15 16 17 18 … 107 Next »
update npvr database UNC paths

 
  • 0 Vote(s) - 0 Average
update npvr database UNC paths
artmetz
Offline

Senior Member

NW Montana
Posts: 370
Threads: 68
Joined: Dec 2016
#1
2024-10-25, 10:06 PM
My QNAP NAS finally failed, but fortunately I knew it was going to happen.
I have a new Terramaster NAS setup and have been using robocopy to keep it in synch with the old NAS until I had time to remap my clients.
Unfortunately, I'm forced to do that now.
This isn't an easy topic to search the forums on, or I'm using the wrong search terms without luck.
I've been using UNC paths for NPVR instead of drive letters, so it's not a simple matter of mapping the same letter to the new drive.
Question is, what's a good way to update the NPVR database and change my UNC from "NAS315" to "NAS0324"? (I'll backup the db first).

It's not clear to me if and of the NextTool commands will accomplish this.
I'm capable of using SQL to update the database.
Art
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 54,174
Threads: 968
Joined: May 2006
#2
2024-10-25, 10:15 PM
Why not just change the hostname of the new NAS?

Martin
artmetz
Offline

Senior Member

NW Montana
Posts: 370
Threads: 68
Joined: Dec 2016
#3
2024-10-25, 10:32 PM
Was hoping to keep both running and swap the roles.
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 54,174
Threads: 968
Joined: May 2006
#4
2024-10-25, 10:47 PM
Change the name on the old broken one first.

If you want to do this with sqlite3 it would be something like

Code:
update scheduled recording
set  filename = replace(filename,'NAS315','NAS0324')
where filename like '%NAS315%';

Make sure you have the config.xml settings to not remove files or trees that aren't found and backup first.

Martin
artmetz
Offline

Senior Member

NW Montana
Posts: 370
Threads: 68
Joined: Dec 2016
#5
2024-10-25, 10:56 PM (This post was last modified: 2024-10-25, 11:02 PM by artmetz.)
Thanks. You confirmed the SQL that I was just about to post.
should be scheduled_recording (is missing the underbar)
Thanks,
Art
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)



Possibly Related Threads…
Thread Author Replies Views Last Post
  [SOLVED] Windows won't sleep after waking for EPG update fla 2 85 2025-10-30, 07:56 PM
Last Post: fla
  NextPVR can't update EPG while recording a program cc58 5 470 2025-10-28, 12:50 PM
Last Post: JamesAllen
  EPG Update shortcut hansol123 4 244 2025-10-19, 04:28 PM
Last Post: hansol123
  New Install of 7..0.3.250920 can't update schedules Gary7254 4 444 2025-10-09, 07:27 PM
Last Post: mvallevand
  delete EPG database RedDawg 5 587 2025-09-14, 08:51 PM
Last Post: RedDawg
  EPG Update failing Bobins 2 544 2025-09-14, 08:33 PM
Last Post: Bobins
  Recommendations for remote for NPVR on PC Joram 2 495 2025-09-11, 07:16 PM
Last Post: Joram
  EPG Update no longer working... [0 inserted, 0 updated, 0 skipped] rightbryce 3 714 2025-08-09, 11:06 PM
Last Post: mvallevand
  DVT Tuner remains locked after EPG update. Bobins 4 802 2025-06-29, 04:57 PM
Last Post: Bobins
  NPVR Windows recordings folder cleanup.... Colincam 21 5,049 2025-04-16, 07:38 PM
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