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 02-09-2011, 10:31 AM
personalt's Avatar
personalt personalt is offline
Sage Advanced User
 
Join Date: Apr 2008
Posts: 243
Making Sage more appliance like by moving configs to a seperate drive

I finally have my PC/sage server working exactly like I want it. I had a lot of problems getting my HD-PVR running stable and after a few re-installs it is rock solid. Not really sure how I got it stable but it is very stable now. Tthe big help seemed to be going to a SSD drive for the OS believe it or not.

I have imaged/snapshoted the PC at this point in time. My plan is to try and treat this PC like an appliance and revert back to this snapshot on a as needed basis. If anything goes bad I will roll back to that version. Honestly, if I can figure out a way to auto load the snapshot on restart(like you can do with a VMware install) I would do that.

If I make my OS drive 'appliance' like I realize some Sage files like the wiz.bin should be offloaded to another drive. This way if I roll back I dont lose the latest and greatest list of recorded shows. I am trying to get some ideas on what else I should move(and if I can easily move individual config files to another drive).

I was thinking about the sage properties files and the client properties files. Since these files can be changed by making changes to the extenders it would seem to me like these files should not be considered 'static' files for my 'appliance' install and moved to another drive.

Taking it a step further, if you can install plug-in's via the extenders you need make sure the jars dont get reverted back if I go back to the snapshot.

Has anyone done anything like this?
Reply With Quote
  #2  
Old 02-09-2011, 12:59 PM
GKusnick's Avatar
GKusnick GKusnick is offline
SageTVaholic
 
Join Date: Dec 2005
Posts: 5,083
I'm not sure this is a viable strategy, for a couple of reasons.

First, it seems a bit odd to say that now that your system is running stably, you want to perturb it by moving important files away from their default locations. The more such changes you make, the farther you're getting into uncharted territory, and the more likely you are to run into subtle problems that no one has ever seen before. This doesn't really seem compatible with the goal of keeping things running smoothly.

Also, the idea of a static snapshot that you can reliably revert to doesn't entirely hold water. Your system is connected to a larger world of extender firmware, EPG servers, downloadable plugins and STV updates, web scrapers, and so on. Changes to any of those connected components -- some of which are not under your control -- can in principle render your snapshot obsolete or unusable.

As a purely practical matter, I think you're going to have a tough time sorting out exactly which files need to be excluded from the snapshot or backed up and restored separately. I just got done telling someone on another thread not to try to back up files selectively, but to always back up and restore the entire Sage installation directory as a unit. (Your example of plugins and JAR files is part of the reason I give that advice.) That pretty much undermines any notion of separating things cleanly into stable infrastructure v. mutable config files.
__________________
-- Greg
Reply With Quote
  #3  
Old 02-09-2011, 01:03 PM
bastafidli bastafidli is offline
Sage Expert
 
Join Date: Dec 2007
Location: Charlottesville, VA
Posts: 728
I have done some of this on my Linux install using symlinks. Most files can be moved (key, etc.) but some of them can't (e.g. Win.biz) since Sage deletes them and then recreates them. The only way around it is to treat the Sage installation directory as "data" directory and then symlink all the static files (programs, etc.) from somewhere else.
__________________

TV: Samsung UN46D8000
Server: Intel Core i3 540, 4G RAM, Matrox G450, 70GB EXT3 encrypted software RAID1 system drive, 1TB XFS tv recording drive, 2TB EXT3 encrypted data drive mirror across 2 machines, 2TB EXT3 encrypted media drive mirror across 2 machines, CentOS 6 64 bit, Experimenting with DNLA servers
1Gb wired network
Disconnected after G day[HD 100 Media Extender, Placeshifter 7.x, SageTV 7.x, HDHomeRun]
Reply With Quote
  #4  
Old 02-09-2011, 01:27 PM
personalt's Avatar
personalt personalt is offline
Sage Advanced User
 
Join Date: Apr 2008
Posts: 243
You certainly make some valid points.

I agree, it would not be an easy task to identify what files in the sage folder are supposed to change and what files are not. If I miss some file that should be allowed to get updated and they get reverted back I would end up with an incompatable combination of files.

Does sage make changes to files outside of the sage folder? You mention that you dont recommend someone restoring individual files inside the sage folder.

That makes sense, but can the sage folder be backed up and restored independently of the rest the computer? I guess what I am asking is does Sage make changes during run-time outside of c:\program files\SageTV?

I am looking at using a program called deep freeze to get a handle on keeping the rest of the PC getting screwed up. http://www.faronics.com/en/Products/...Corporate.aspx
DeepFreeze can allow the user to specify folders which don't get rolled back on a reset so I can allow the sage folder to make changes to itself while keeping the rest of the OS drive on lockdown. I can then supplement this with folder based backups of the sage folder on a schedule.
Reply With Quote
  #5  
Old 02-09-2011, 01:39 PM
gplasky's Avatar
gplasky gplasky is offline
SageTVaholic
 
Join Date: Jul 2003
Location: Howell, MI
Posts: 9,203
At anytime that you backup the entire SageTV directory you can restore that directory and overwrite the existing SageTV folder. (Make sure to stop the SageTV service and/or quit the Sage application) It will restore Sage to the exact condition it was in when you made the backup. You will initially lose recordings made from the backup to present but they will show back up because some of the metadata in now stored in the recording itself. It should show up with the next Sage scan which by default happens every 2 hours. Same with any media added after the backup. And I believe the same situation with plugins. If you add a plugin after the backup and then restore the backup, the plugin that was added after will no longer show as installed. But you will have a fully functional SageTV installation as of the backup date.

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
  #6  
Old 02-09-2011, 01:59 PM
personalt's Avatar
personalt personalt is offline
Sage Advanced User
 
Join Date: Apr 2008
Posts: 243
I didnt know that about the meta data. That is sweet. I was really concerned about not backing up the wiz.bin daily. I assume the way this works is that it adds recorded shows/dvds on scan and that anything that was watched and deleted since last wiz.bin backup shows a 'cant file recording' error which is okay if I already watched and deleted the show.
Reply With Quote
  #7  
Old 02-09-2011, 03:44 PM
david1234 david1234 is offline
Sage Aficionado
 
Join Date: Nov 2007
Location: Beaverton, OR
Posts: 313
Why not just install Sage on a drive other than the OS drive? There's nothing special about the "Program Files" directory that's sitting on your C drive.

You might want to back up the sage parts of the registry occasionally, but that's not too big a deal.
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
Moving a hard drive with sage programming between computers mike0987 SageTV Software 0 05-30-2010 04:39 PM
Sage Linux 'Appliance' - advice please Madz SageTV Linux 5 03-05-2009 07:38 AM
? About Moving Recordings to Another Drive geogecko SageTV Software 14 12-05-2006 06:43 PM
Moving My Sage directory to a new hard drive bmcraig SageTV Software 4 07-01-2006 08:10 PM
During crashes I am losing my configs chrysek SageTV Software 0 08-09-2004 10:11 AM


All times are GMT -6. The time now is 10:15 PM.


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