SageTV Community  

Go Back   SageTV Community > SageTV Development and Customizations > SageTV Customizations
Forum Rules FAQs Community Downloads Today's Posts Search

Notices

SageTV Customizations This forums is for discussing and sharing user-created modifications for the SageTV application created by using the SageTV Studio or through the use of external plugins. Use this forum to discuss customizations for SageTV version 6 and earlier, or for the SageTV3 UI.

Reply
 
Thread Tools Search this Thread Display Modes
  #41  
Old 09-30-2010, 06:07 AM
Peter_h Peter_h is offline
Sage Fanatic
 
Join Date: May 2008
Location: Kailua, HI
Posts: 798
Quote:
Originally Posted by ChaOConnor View Post
Jason, attached is the error I'm getting. I'm running this from the Admin account on the WHS box. When it's done there isn't anything in the backup folder. Thanks!
Did you ever figure this one out? I'm running the script on WHS and I'm getting the same exact error messages.
Reply With Quote
  #42  
Old 10-31-2010, 11:38 AM
HuMan321's Avatar
HuMan321 HuMan321 is offline
Sage Aficionado
 
Join Date: Apr 2009
Location: Idaho
Posts: 365
Quote:
Originally Posted by robogeek View Post
READ THIS IF YOU ARE USING THESE SCRIPTS WITH SAGETV V7!

While it's fresh in my mind, the sagetv-config-backup script isn't fully compatible with SageTV v7 and may cause problems with the plugins installed using the plugin manager if you restore one of these config backups. The plugin manager uses an additional properties file (filetracker.properties and filetracker.properties.autobackup) and some plugins store additional properties and other information in their own folders. The plugin manager stores info in the SageTV main properties file as well as the filetracker properties file. If these properties files get out of sync, it may cause issues with plugins failing, failing to uninstall, or failing to install. I'm not sure what kind of sanity checks the plugin manager has to prevent these possible situations, so please be careful restoring configuration backups.

The weekly and manual backups should catch everything, but the additional files and folders would have to be added to the sagetv-config-backup script to ensure things don't go bad when restoring configuration backups. I'll try to get these incorporated along with some of the great additions others have added to the original scripts.
Was this issue with V7 plug-ins ever resolved?
Thanks,
Reply With Quote
  #43  
Old 10-31-2010, 12:35 PM
robogeek robogeek is offline
Sage Expert
 
Join Date: Apr 2003
Location: Appleton, WI USA
Posts: 568
Quote:
Originally Posted by HuMan321 View Post
Was this issue with V7 plug-ins ever resolved?
Thanks,
No, not yet. There should be no problems using the weekly or manual full backup scripts with SageTV V7, but extreme caution should be taken with daily config backups. For daily config backups, the main problem is restoring the sage.properties file that contains some critical plugin information. If the plugin data in the sage.properties file doesn't match up with what is in the filetracker.properties file and with the actual contents of the JARs, PluginInstallers, and various other plugin related folders, you'll likely end up with plugins out of sync and in an inconsistent state.

I'm considering just removing the daily config backup script and making the weekly full backup the new daily backup script. Seems a bit overkill, but I think it would be the safest way to go.
__________________
--Jason

Server Hardware: GIGABYTE GA-EP45-UD3R, Intel Q9550 CPU 2.83GHz, 11GB RAM, 1xHDHR, 1xHVR1600, 1xHVR2250
29TB Server Storage: 1TB SSD (OS), 1TB (data), 2x6TB+2x10TB (22TB FlexRaid storage pool), 2x2TB (recordings), 1x750GB (VMs).
Server Software: Win10 Pro x64 OS, SageTV 64bit v9.2.0.441, Java 1.8 u241, PlayOn, Comskip (Donator) v0.82.003, WampServer v2.5.
Clients: 3xHD300s, 2xHD100, 2xPlaceshifters
Reply With Quote
  #44  
Old 11-01-2010, 03:22 PM
HuMan321's Avatar
HuMan321 HuMan321 is offline
Sage Aficionado
 
Join Date: Apr 2009
Location: Idaho
Posts: 365
Thanks for the reply.

Did you need to install an add-in to your WHS for a scheduler such as this?
New Add-in: WHS Trigger

I would like to move my cache files to the D: shares as well. The folder name would be cache and it would be a subfolder of Fanart which is on the D share. I get confused on the syntax (/\) Could you help?
The location would be D:/shares/fanart/cache or D:\shares\fanart\cache to change the location in the properties file?n Any spaces needed in the property file?
Thanks,
Reply With Quote
  #45  
Old 11-01-2010, 07:44 PM
robogeek robogeek is offline
Sage Expert
 
Join Date: Apr 2003
Location: Appleton, WI USA
Posts: 568
Quote:
Originally Posted by HuMan321 View Post
Thanks for the reply.

Did you need to install an add-in to your WHS for a scheduler such as this?
New Add-in: WHS Trigger

I would like to move my cache files to the D: shares as well. The folder name would be cache and it would be a subfolder of Fanart which is on the D share. I get confused on the syntax (/\) Could you help?
The location would be D:/shares/fanart/cache or D:\shares\fanart\cache to change the location in the properties file?n Any spaces needed in the property file?
Thanks,
For the scheduler, I just used the builtin Windows Task Scheduler which is available in the Control Panel. You'll either need to login to the WHS machine with Remote Desktop, login directly at the WHS machine, or use an Add-in that allows you to access the Control Panel from the WHS Console. In the Task Scheduler settings, just remember to set the 'Start in' setting to the base directory where the scripts are located.

For the cache directory change in the sage properties file, I use backslashes. And the colon and backslashes need to be escaped with backslashes. So you would have:

D\:\\shares\\fanart\\cache

But I think you can also use forward slashes which don't need to be escaped, but the colon still needs to be escaped with a backslash like this:

D\:/shares/fanart/cache

There are a few different bmt/phoenix/fanart cache properties. Be sure to scan the sage properties file for the word cache and any properties that start with bmt or phoenix you might want to move off of the C: partition to ensure none of the bmt/phoenix cache files fill up what little space is left on that small 20GB C: partition.
__________________
--Jason

Server Hardware: GIGABYTE GA-EP45-UD3R, Intel Q9550 CPU 2.83GHz, 11GB RAM, 1xHDHR, 1xHVR1600, 1xHVR2250
29TB Server Storage: 1TB SSD (OS), 1TB (data), 2x6TB+2x10TB (22TB FlexRaid storage pool), 2x2TB (recordings), 1x750GB (VMs).
Server Software: Win10 Pro x64 OS, SageTV 64bit v9.2.0.441, Java 1.8 u241, PlayOn, Comskip (Donator) v0.82.003, WampServer v2.5.
Clients: 3xHD300s, 2xHD100, 2xPlaceshifters
Reply With Quote
  #46  
Old 11-05-2010, 07:34 PM
phareous phareous is offline
Sage Advanced User
 
Join Date: Jul 2009
Posts: 234
Imagine my surprise today when I needed to actually use the weekly backup and found that it backed up absolutely none of the subdirectories of the SageTV folder

These xcopy flags seem to fix the issue:
/c /h /e /y /q

c - continue if errors happened
h - copy hidden and system files
e - copy all subdirectories
y - say yes if there is an overwrite prompt
q - quiet
Reply With Quote
  #47  
Old 11-05-2010, 07:36 PM
phareous phareous is offline
Sage Advanced User
 
Join Date: Jul 2009
Posts: 234
Also just to clarify, I believe locked files were causing the issue, thus the /C flag fixes that (skips the files)

In my case it appears to be a directory called activemq-data/ortus
Reply With Quote
  #48  
Old 11-05-2010, 08:23 PM
phareous phareous is offline
Sage Advanced User
 
Join Date: Jul 2009
Posts: 234
I also found it helpful to exclude a few directories, which saved over 2 GB in my case. I don't know how to exclude them with xcopy so I just remove them before the zip is created:


ECHO Compressing backup: %folderName%
CD /D "%backupDirTemp%\%folderName%"
RD /s /Q "%backupDirTemp%\%folderName%\SageTV\cache"
RD /s /Q "%backupDirTemp%\%folderName%\SageTV\STVs\Ortus\Trailers"
"%~DP0\zip.exe" -r -9 -q -S "%~DP0\%folderName%".zip *.*
Reply With Quote
  #49  
Old 01-23-2012, 03:26 PM
ptzink ptzink is offline
Sage Aficionado
 
Join Date: Mar 2008
Posts: 300
Digging up an old thread... I am going to start using these scripts, but is there the opportunity (read: likelihood) that my wiz.bin backup will be corrupt each time since the sagetv service is always running when the backup is made? Or does something in the script accommodate for this situation? If not, how are other people running these scripts shutting down the service prior to backup to ensure a good wiz.bin file. Thanks for the help.
__________________
Server: SageTV Media Center 7.1.19, Windows 7 Home Premium x64, Pentium Core2Duo, 4GB RAM, (1) Hauppauge HVR-2250, (1) Hauppauge HVR-1600, 1.5 TB of recording space
Android MiniClient: Nvidia Shield TV (16GB) HDMI out to Samsung LN46C630 46" LCD
Extender: STP-HD300, beta firmware "20110506-0", HDMI out to LG 37LD450 37" LCD
Reply With Quote
  #50  
Old 01-23-2012, 07:08 PM
Slugger Slugger is offline
SageTVaholic
 
Join Date: Mar 2007
Location: Kingston, ON
Posts: 4,008
Prior to each EPG update the core creates wiz.bak - backup that file instead of wiz.bin. If you schedule the backup to happen shortly after an EPG update then the wiz.bak is pretty close to a live backup.
__________________
Twitter: @ddb_db
Server: Intel i5-4570 Quad Core, 16GB RAM, 1 x 128GB OS SSD (Win7 Pro x64 SP1), 1 x 2TB media drive
Capture: 2 x Colossus
STB Controller: 1 x USB-UIRT
Software:Java 1.7.0_71; SageTV 7.1.9
Clients: 1 x HD300, 2 x HD200, 1 x SageClient, 1 x PlaceShifter
Plugins: Too many to list now...
Reply With Quote
  #51  
Old 01-24-2012, 07:24 AM
pjwerdna pjwerdna is offline
Sage Aficionado
 
Join Date: Oct 2004
Location: UK, Slough
Posts: 397
Quote:
Originally Posted by Slugger View Post
Prior to each EPG update the core creates wiz.bak - backup that file instead of wiz.bin. If you schedule the backup to happen shortly after an EPG update then the wiz.bak is pretty close to a live backup.
This is correct. But doesnt guarantee that either wiz file is not corrupt.

Ive had four times when SageTV stopped updating the wiz files correctly and the only time I found out was when I restarted the SageTV service.

As far as I can tell it creates the wiz.bak and then tries to update the wiz.bin. If this update fails, then the next time it does this update process it overwrites the usable wiz.bak with the now corrupted wiz.bin.

I currently backup all configuration files every night and keep every backup (theyre only a few MB) The last corruption caused me to go back nearly two months until I could find a wiz file that wasnt instantly marked as corrupt.

One thing I have found is that after the EPG update the wiz.bak is usually bigger than the wiz.bin, unless the wiz.bin is corrupt in which case wiz.bin seems to get appended to and so be larger than the backup.
__________________
SageTV Server : Akasa Inifiiti Case, Gigabyte GA-P35C-DS3 MB, 8600GT, Core2 Duo (E6850 3GHz), 4GB RAM, ~6TB Filestore , Nova-TD500, TBS 6280, SageTV 7.1.9
New Client 2 :MSI P67A-GD53, i5 2500K Quad core (3.3GHz), 12GB, Windows 10 Pro (and test SageTV 9 Install)
Sage Client 1 : HD300, Logitech Harmony One
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
/opt/sagetv/scripts references slamduncan SageTV Linux 1 05-12-2007 12:29 PM
Scripts to modify XMLTV data. grooves12 SageTV EPG Service 3 12-31-2006 11:50 PM
init scripts ChePazzo SageTV Linux 0 12-16-2006 12:28 PM
Using Full SageTV as Client backsix SageTV Software 8 05-17-2005 10:32 AM
Full manual recording ashenshugar SageTV Software 2 10-28-2003 01:55 PM


All times are GMT -6. The time now is 07:59 PM.


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