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 … 7 8 9 10 11 … 100 Next »
update npvr database UNC paths

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

Senior Member

NW Montana
Posts: 367
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
Offline

Posting Freak

Ontario Canada
Posts: 52,766
Threads: 954
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: 367
Threads: 68
Joined: Dec 2016
#3
2024-10-25, 10:32 PM
Was hoping to keep both running and swap the roles.
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 52,766
Threads: 954
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: 367
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
  NPVR Windows recordings folder cleanup.... Colincam 21 2,774 2025-04-16, 07:38 PM
Last Post: mvallevand
  Schedulesdirect will not update.. shortputt 8 407 2025-04-11, 07:39 PM
Last Post: BrettB
  Freezing/Buffering on Windows 11 (NPVR app only) nextpvrnoob 64 7,546 2025-02-21, 07:52 PM
Last Post: mvallevand
  NPVR No Longer Acessible From LAN 4zm4r3d02 2 248 2025-01-26, 04:35 PM
Last Post: 4zm4r3d02
  NPVR NOT in system tray now RichU 4 358 2025-01-05, 10:20 PM
Last Post: RichU
  No standby after update to Version 7 Escape7 163 8,732 2025-01-04, 05:27 PM
Last Post: sub
  Which OS is "best" for NPVR? boringgit 3 475 2024-11-29, 09:48 PM
Last Post: boringgit
  Automate Update Channels on Specific IPTV Device or Group of Devices taylormia 33 2,631 2024-11-15, 02:48 AM
Last Post: taylormia
  TV Guide Showing Duplicate Channels After IPTV Update Channels taylormia 27 1,771 2024-11-10, 12:24 AM
Last Post: sub
  Issues with TV Guide in NPVR client Bobins 9 694 2024-11-08, 11:02 AM
Last Post: Bobins

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

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

Linear Mode
Threaded Mode