|
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. |
|
Thread Tools | Search this Thread | Display Modes |
#1
|
||||
|
||||
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 |
#2
|
||||
|
||||
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) |
#3
|
|||
|
|||
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. |
#4
|
||||
|
||||
Quote:
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 |
#5
|
||||
|
||||
Quote:
Lauren |
#6
|
|||
|
|||
Quote:
tar -cf /var/media/wiz-backup-`date +%s`.tar /opt/sagetv/usr/Wiz.bin (those are `'s, which are under the ~) |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|