SageTV Community  

Go Back   SageTV Community > SageTV Products > SageTV Software
Forum Rules FAQs Community Downloads Today's Posts Search

Notices

SageTV Software Discussion related to the SageTV application produced by SageTV. Questions, issues, problems, suggestions, etc. relating to the SageTV software application should be posted here. (Check the descriptions of the other forums; all hardware related questions go in the Hardware Support forum, etc. And, post in the customizations forum instead if any customizations are active.)

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 12-07-2010, 06:53 PM
PeteCress's Avatar
PeteCress PeteCress is offline
Sage Fanatic
 
Join Date: Jan 2009
Location: Paoli, PA - USA, AKA "The Navel Of The Universe"
Posts: 843
I figured out how to move Wiz.bin by editing the props file and it works a-ok.

But I'd like to go the last mile and have *all* my SageTV data on a network share instead of on the system drive.

Is this possible?

If so, advisable? i.e. Have I been drinking too much coffee again?

My thought was that some applications can be started up with something like a /IniFile parm on the command line - so that when the app starts, it looks to the directory or file specified on the command line...
__________________
Server: SageTV 9, Windows 10, i5 NUC
Clients: HD200*3 over Cat5e Ethernet + 1 slightly flakey HD 300 + 1 HD200 remote at another residence
Plugins: (none yet, looking for recommendations)
Storage: NetGear Ultra-6 NAS 10 TB total w/dual redundancy. Plus 5tb QNAP for RecordedTV.
Capture: 3 Silicon Dust HomeRun tuner boxes (6 tuners total)
Program Source: OTA antenna

Last edited by PeteCress; 12-07-2010 at 09:02 PM.
Reply With Quote
  #2  
Old 12-07-2010, 10:11 PM
Nelbert Nelbert is offline
Sage Advanced User
 
Join Date: Oct 2010
Posts: 163
I wouldn't put config files required for an app to start on a network share. A backup of the config yes, but not the live config. The user data, no problem.

What happens when the fileserver isn't available and SageTV can't access it's database file? What happens if the fileserver crashes while SageTV is running?

If the user content/record locations aren't available Sage will still run and you can modify the config if needed, eg hardware failure in the fileserver, to work around it not being online.
Reply With Quote
  #3  
Old 12-08-2010, 12:58 AM
GKusnick's Avatar
GKusnick GKusnick is offline
SageTVaholic
 
Join Date: Dec 2005
Posts: 5,083
Quote:
Originally Posted by PeteCress View Post
But I'd like to go the last mile and have *all* my SageTV data on a network share instead of on the system drive.
Why? What problem are you trying to solve by doing this?
__________________
-- Greg
Reply With Quote
  #4  
Old 12-08-2010, 07:50 AM
PeteCress's Avatar
PeteCress PeteCress is offline
Sage Fanatic
 
Join Date: Jan 2009
Location: Paoli, PA - USA, AKA "The Navel Of The Universe"
Posts: 843
Quote:
Originally Posted by GKusnick View Post
Why? What problem are you trying to solve by doing this?
I modify Sage's props file. The location of Wiz.bin, for instance.

At that point, in my scheme of things, it becomes "Data" - and in my obsessive little world, data goes on a data drive, not a system drive.

As-is, I have to document the modification(s) and/or save a copy of the modified props file and remember to use the copy if/when I re-image the system drive or move SaveTV to another PC.

Seems simpler if the props file just lives on a LAN share where it can be used from whatever PC SageTV is currently installed on - or re-used in the event a PC goes south and had to be re-imaged.

Not a big deal... more a nicety/convenience..... seems simpler than documenting/saving a copy/remembering which copy to use next time.

In answer to Nelbert's observation of "What happens when the fileserver crashes..." I've got Wiz.bin on it already.... so SageTV isn't going anywhere anyhow if/when the file server goes South.
__________________
Server: SageTV 9, Windows 10, i5 NUC
Clients: HD200*3 over Cat5e Ethernet + 1 slightly flakey HD 300 + 1 HD200 remote at another residence
Plugins: (none yet, looking for recommendations)
Storage: NetGear Ultra-6 NAS 10 TB total w/dual redundancy. Plus 5tb QNAP for RecordedTV.
Capture: 3 Silicon Dust HomeRun tuner boxes (6 tuners total)
Program Source: OTA antenna

Last edited by PeteCress; 12-08-2010 at 07:53 AM.
Reply With Quote
  #5  
Old 12-08-2010, 08:12 AM
nyplayer nyplayer is offline
SageTVaholic
 
Join Date: Sep 2005
Posts: 4,997
Pete,

By putting the wiz.bin on a lan all you are doing is adding another point of failure. If you are writing to a wiz.bin on a lan and the lan goes down Sage stops recording period. By putting the wiz.bin locally the only time it will fail is if the server fails. The pont of disaster recovery setup etc.. is to eliminate points of failure not add them.


Wiz,bin on lan 2 points of failure
failures
1. Lan goes down
2. Server goes down

wiz.bin locally 1 point of failure
1. Server goes down.
__________________
Channels DVR UBUNTU Server 2 Primes 3 Connects TVE SageTV Docker with input from Channels DVR XMLTV and M3U VIA Opendct.
Reply With Quote
  #6  
Old 12-08-2010, 08:31 AM
gplasky's Avatar
gplasky gplasky is offline
SageTVaholic
 
Join Date: Jul 2003
Location: Howell, MI
Posts: 9,203
If you want easy access to the file share out the SageTV folder. Your network is more apt to hiccup or not be available in comparison to the drive. Moving application files out of their application folder of conveniently knowing where all the app files exist. Your mistake is the thought of wiz.bin and .properties files being data files. They're really not-they're application files needed by the app to work. In the sense that without them the app really won't work. Leave them where they were engineered to go. Just back them up to the network somewhere.

Gerry
__________________
Big Gerr
_______
Server - WHS 2011: Sage 7.1.9 - 1 x HD Prime and 2 x HDHomeRun - Intel Atom D525 1.6 GHz, Acer Easystore, RAM 4 GB, 4 x 2TB hotswap drives, 1 x 2TB USB ext Clients: 2 x PC Clients, 1 x HD300, 2 x HD-200, 1 x HD-100 DEV Client: Win 7 Ultimate 64 bit - AMD 64 x2 6000+, Gigabyte GA-MA790GP-DS4H MB, RAM 4GB, HD OS:500GB, DATA:1 x 500GB, Pace RGN STB.
Reply With Quote
  #7  
Old 12-08-2010, 01:03 PM
GKusnick's Avatar
GKusnick GKusnick is offline
SageTVaholic
 
Join Date: Dec 2005
Posts: 5,083
Quote:
Originally Posted by PeteCress View Post
Seems simpler if the props file just lives on a LAN share where it can be used from whatever PC SageTV is currently installed on
Properties files contain information specific to an installation. Trying to reuse a properties file on a different installation is asking for trouble and unless you're very careful can get you into an inconsistent and possibly unrecoverable state.

Also, Wiz.bin and Sage.properties are not the only files that get modified. Plugin state is spread over several files, including whatever private databases the plugins themselves use. Downloadable STV updates alter files in the STVs subdirectory. Singling out Sage.properties for special treatment pretty much guarantees that if you ever need it for disaster recovery, it will be out of sync with all this other state that you weren't so careful with.

Finally, as a general rule of thumb, trying things that no one has ever tried before (like moving crucial files out of their standard locations) is probably not a good strategy for improving the reliability of your system.
__________________
-- Greg
Reply With Quote
  #8  
Old 12-08-2010, 02:50 PM
PeteCress's Avatar
PeteCress PeteCress is offline
Sage Fanatic
 
Join Date: Jan 2009
Location: Paoli, PA - USA, AKA "The Navel Of The Universe"
Posts: 843
I don't claim to be the brightest bulb on the tree, but I'm trainable.

gKusnick, gPlasky, and nPlayer all make points that make sense to me.

Accordingly, I have moved Wiz.bin back to the Sage/System drive and tabled any further foolishness.

One question:
How much of an issue is there with backing up a Wiz.bin that is in use?

Is it worth working out some scheme where I auto-shutdown SageTV for the time period when the backup that copies Wiz.bin runs?

I wouldn't want to create a situation where Wiz.bin gets corrupted and then it turns out that all my incremental backups of it are bad bco being in use during the copy process.

I would hope that just making sure that Sage isn't recording anything during the backup process would be sufficient.... but, obviously, don't have a clue to back that up.
__________________
Server: SageTV 9, Windows 10, i5 NUC
Clients: HD200*3 over Cat5e Ethernet + 1 slightly flakey HD 300 + 1 HD200 remote at another residence
Plugins: (none yet, looking for recommendations)
Storage: NetGear Ultra-6 NAS 10 TB total w/dual redundancy. Plus 5tb QNAP for RecordedTV.
Capture: 3 Silicon Dust HomeRun tuner boxes (6 tuners total)
Program Source: OTA antenna

Last edited by PeteCress; 12-08-2010 at 04:13 PM.
Reply With Quote
  #9  
Old 12-08-2010, 04:52 PM
nyplayer nyplayer is offline
SageTVaholic
 
Join Date: Sep 2005
Posts: 4,997
Pete,

I overkill my backups. I backup the WIZ.bin..properties using SJQ after each recording. (This has saved my butt many times) I keep these for a duration of 2 days.

I do a backup of the full sagetv directory prior to upgrading. I also do a full backup during my weekly reboot. I keep a total of nine full backups.

The full backup script looks like this.

Code:
set backuppath=\\Freenas\ournas1\SAGEBACKUPS
if not exist "%backuppath%\exclude_%COMPUTERNAME%.txt" echo ################# > "%backuppath%\exclude_%COMPUTERNAME%.txt"
if not exist "%backuppath%\%COMPUTERNAME%" md "%backuppath%\%COMPUTERNAME%"
if not exist "%backuppath%\%COMPUTERNAME%\sagetvbk\xcopysuccess.txt" rmdir "%backuppath%\%COMPUTERNAME%\sagetvbk" /Q /S
if not exist "%backuppath%\%COMPUTERNAME%\sagetvbk" md "%backuppath%\%COMPUTERNAME%\sagetvbk"
if exist "%backuppath%\%COMPUTERNAME%\sagetvbk" xcopy "C:\Program Files\SageTV\*.*" "%backuppath%\%COMPUTERNAME%\sagetvbk" /S/E/H /EXCLUDE:%backuppath%\exclude_%COMPUTERNAME%.txt 
set checkxcopy=%ERRORLEVEL%
echo %checkxcopy%
If %checkxcopy% EQU 0 DATE /T > "%backuppath%\%COMPUTERNAME%\sagetvbk\xcopysuccess.txt"
If %checkxcopy% EQU 0 TIME /T >> "%backuppath%\%COMPUTERNAME%\sagetvbk\xcopysuccess.txt"
If %checkxcopy% EQU 0 if exist "%backuppath%\%COMPUTERNAME%\sagetv9" rmdir "%backuppath%\%COMPUTERNAME%\sagetv9" /Q /S
If %checkxcopy% EQU 0 if exist "%backuppath%\%COMPUTERNAME%\sagetv8" move  "%backuppath%\%COMPUTERNAME%\sagetv8" "%backuppath%\%COMPUTERNAME%\sagetv9"
If %checkxcopy% EQU 0 if exist "%backuppath%\%COMPUTERNAME%\sagetv7" move  "%backuppath%\%COMPUTERNAME%\sagetv7" "%backuppath%\%COMPUTERNAME%\sagetv8"
If %checkxcopy% EQU 0 if exist "%backuppath%\%COMPUTERNAME%\sagetv6" move  "%backuppath%\%COMPUTERNAME%\sagetv6" "%backuppath%\%COMPUTERNAME%\sagetv7"
If %checkxcopy% EQU 0 if exist "%backuppath%\%COMPUTERNAME%\sagetv5" move  "%backuppath%\%COMPUTERNAME%\sagetv5" "%backuppath%\%COMPUTERNAME%\sagetv6"
If %checkxcopy% EQU 0 if exist "%backuppath%\%COMPUTERNAME%\sagetv4" move  "%backuppath%\%COMPUTERNAME%\sagetv4" "%backuppath%\%COMPUTERNAME%\sagetv5"
If %checkxcopy% EQU 0 if exist "%backuppath%\%COMPUTERNAME%\sagetv3" move  "%backuppath%\%COMPUTERNAME%\sagetv3" "%backuppath%\%COMPUTERNAME%\sagetv4"
If %checkxcopy% EQU 0 if exist "%backuppath%\%COMPUTERNAME%\sagetv2" move  "%backuppath%\%COMPUTERNAME%\sagetv2" "%backuppath%\%COMPUTERNAME%\sagetv3"
If %checkxcopy% EQU 0 if exist "%backuppath%\%COMPUTERNAME%\sagetv1" move  "%backuppath%\%COMPUTERNAME%\sagetv1" "%backuppath%\%COMPUTERNAME%\sagetv2"
If %checkxcopy% EQU 0 if exist "%backuppath%\%COMPUTERNAME%\sagetvbk" move  "%backuppath%\%COMPUTERNAME%\sagetvbk" "%backuppath%\%COMPUTERNAME%\sagetv1"
exit
AS far as system backup.. My server is xp so I use casperXP to create a Hot swappable of my system to a usb external drive. All I have to do in an emergency is take the USB drive out of the enclosure and replace the broken one and i am all set.
__________________
Channels DVR UBUNTU Server 2 Primes 3 Connects TVE SageTV Docker with input from Channels DVR XMLTV and M3U VIA Opendct.

Last edited by nyplayer; 12-08-2010 at 05:07 PM.
Reply With Quote
  #10  
Old 12-08-2010, 06:14 PM
PeteCress's Avatar
PeteCress PeteCress is offline
Sage Fanatic
 
Join Date: Jan 2009
Location: Paoli, PA - USA, AKA "The Navel Of The Universe"
Posts: 843
Quote:
Originally Posted by nyplayer View Post
I overkill my backups....
How many times have you successfully recovered from a corrupted Wiz.bin by copying a backed-up version back to the SageTV dir?

CasperXP sounds interesting. I didn't know it was possible to mirror an XP system while it was running. Counting the moving gold fish and all that.... OTOH, I guess there are more than a few imaging apps that work while XP is up and running...
__________________
Server: SageTV 9, Windows 10, i5 NUC
Clients: HD200*3 over Cat5e Ethernet + 1 slightly flakey HD 300 + 1 HD200 remote at another residence
Plugins: (none yet, looking for recommendations)
Storage: NetGear Ultra-6 NAS 10 TB total w/dual redundancy. Plus 5tb QNAP for RecordedTV.
Capture: 3 Silicon Dust HomeRun tuner boxes (6 tuners total)
Program Source: OTA antenna
Reply With Quote
  #11  
Old 12-08-2010, 06:34 PM
nyplayer nyplayer is offline
SageTVaholic
 
Join Date: Sep 2005
Posts: 4,997
Corrupted never... Pilot error quite a few.. I tinker a lot.
__________________
Channels DVR UBUNTU Server 2 Primes 3 Connects TVE SageTV Docker with input from Channels DVR XMLTV and M3U VIA Opendct.
Reply With Quote
  #12  
Old 12-09-2010, 08:51 AM
PeteCress's Avatar
PeteCress PeteCress is offline
Sage Fanatic
 
Join Date: Jan 2009
Location: Paoli, PA - USA, AKA "The Navel Of The Universe"
Posts: 843
Quote:
Originally Posted by nyplayer View Post
Corrupted never... Pilot error quite a few.. I tinker a lot.
That addresses my concern nevertheless. i.e. Taking backups is no problem... the biggie is whether or not one can restore from them and have things work as expected.

Sounds to me like as long as I take my backups while SageTV is not recording something (i.e. writing to Wiz.bin) I'm ok - even though SageTV has it open.
__________________
Server: SageTV 9, Windows 10, i5 NUC
Clients: HD200*3 over Cat5e Ethernet + 1 slightly flakey HD 300 + 1 HD200 remote at another residence
Plugins: (none yet, looking for recommendations)
Storage: NetGear Ultra-6 NAS 10 TB total w/dual redundancy. Plus 5tb QNAP for RecordedTV.
Capture: 3 Silicon Dust HomeRun tuner boxes (6 tuners total)
Program Source: OTA antenna
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
SageTV 7 + .Properties files... moothekow SageTV Beta Test Software 4 06-21-2010 04:39 PM
Relocating Server mbahr SageTV Software 3 08-01-2009 07:13 PM
Difference between SageClient.properties and Sage.properties? morfinx SageTV Software 1 12-30-2006 09:01 AM
SageTV properties file(s) Ken C SageTV Software 3 05-21-2006 08:51 AM
OT: Need advice on relocating to near Long Beach, CA area JasonJoel The SageTV Community 2 09-12-2005 08:47 AM


All times are GMT -6. The time now is 09:08 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2023, vBulletin Solutions Inc.
Copyright 2003-2005 SageTV, LLC. All rights reserved.