SageTV Community  

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

Notices

SageTV Linux Discussion related to the SageTV Media Center for Linux. Questions, issues, problems, suggestions, etc. relating to the SageTV Linux should be posted here.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 02-22-2006, 10:01 PM
laurenglenn's Avatar
laurenglenn laurenglenn is offline
Sage Expert
 
Join Date: Mar 2003
Location: Levittown, PA
Posts: 601
Send a message via AIM to laurenglenn Send a message via MSN to laurenglenn
Smile TIP: Adding automatic Wiz.bin backup to startup

After having Wiz.bin corruption which caused my SageTV install to lose the ability to schedule recordings, I added the following to my SageTV startup:

date +%s > ~/.datenum
read chep < ~/.datenum
tar -cf /var/media/Wiz-backup-$chep.tar /opt/sagetv/usr/Wiz.bin

This will create a TAR compressed file of your Wiz.bin titled /var/media/Wiz-backup-114040444.tar ($chep ends up being the # of seconds since 1/1/1970, so it will be unique with each execution)

so...... to get this to work, edit your "~/.xinitrc" file and put these at the beginning. Also, I put an "exec .xinitrc" and the end of the file to force SageTV to be reloaded in case it crashes when running as a server (mode 0)

Lauren
Reply With Quote
  #2  
Old 02-23-2006, 12:02 AM
dbfresh23's Avatar
dbfresh23 dbfresh23 is offline
Sage Fanatic
 
Join Date: Oct 2004
Location: New York
Posts: 894
Alternatively, You could probably just add a cron job that backs up what ever file(s) you want at said time.

man cron (hmm - I wonder if they included the man pages)
Reply With Quote
  #3  
Old 02-24-2006, 06:42 PM
riversma riversma is offline
Sage User
 
Join Date: Jan 2006
Posts: 13
wizbin

Everytime i reboot my system, my wizbin gets corrupted. I added the lines and still not working. i am gettting a bunch of wiz.bin00 corupt files usr/directory. Do you know what i am doing wrong?

Last edited by riversma; 02-24-2006 at 06:53 PM.
Reply With Quote
  #4  
Old 02-24-2006, 08:12 PM
laurenglenn's Avatar
laurenglenn laurenglenn is offline
Sage Expert
 
Join Date: Mar 2003
Location: Levittown, PA
Posts: 601
Send a message via AIM to laurenglenn Send a message via MSN to laurenglenn
Quote:
Originally Posted by riversma
Everytime i reboot my system, my wizbin gets corrupted. I added the lines and still not working. i am gettting a bunch of wiz.bin00 corupt files usr/directory. Do you know what i am doing wrong?
If the Wiz.bin originally came from a Windows install, that's probably what's happening.... at least, that's what happened to me. I deleted the existing Wiz.bin file and had Sage start from scratch. It worked fine after that.

The lines do the following (per each line):
(1) Writes the date (in seconds from 1970) to a file
(2) Reads back the information from the file into a variable
(3) Creates a compressed file with that number as part of the filename

It doesn't change or overwrite your existing Wiz.bin file.

Lauren
Reply With Quote
  #5  
Old 02-24-2006, 08:13 PM
laurenglenn's Avatar
laurenglenn laurenglenn is offline
Sage Expert
 
Join Date: Mar 2003
Location: Levittown, PA
Posts: 601
Send a message via AIM to laurenglenn Send a message via MSN to laurenglenn
Quote:
Originally Posted by dbfresh23
Alternatively, You could probably just add a cron job that backs up what ever file(s) you want at said time.

man cron (hmm - I wonder if they included the man pages)
True, but if the file were in use, it might cause corruption.... but it's a great second option that I'll use in addition to it.

Lauren
Reply With Quote
  #6  
Old 03-31-2006, 11:52 AM
churth churth is offline
Sage User
 
Join Date: Jan 2006
Posts: 9
Quote:
Originally Posted by laurenglenn
After having Wiz.bin corruption which caused my SageTV install to lose the ability to schedule recordings, I added the following to my SageTV startup:

date +%s > ~/.datenum
read chep < ~/.datenum
tar -cf /var/media/Wiz-backup-$chep.tar /opt/sagetv/usr/Wiz.bin

This will create a TAR compressed file of your Wiz.bin titled /var/media/Wiz-backup-114040444.tar ($chep ends up being the # of seconds since 1/1/1970, so it will be unique with each execution)

so...... to get this to work, edit your "~/.xinitrc" file and put these at the beginning. Also, I put an "exec .xinitrc" and the end of the file to force SageTV to be reloaded in case it crashes when running as a server (mode 0)

Lauren
If you want to not have to write to a file everytime, you can do this in one line:

tar -cf /var/media/wiz-backup-`date +%s`.tar /opt/sagetv/usr/Wiz.bin

(those are `'s, which are under the ~)
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


All times are GMT -6. The time now is 12:35 PM.


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