Backup to HDD script
Backup to HDD script
Hi I'm new around here
Picked up a DP-P1 the other week. Discovered the limitations of it specifically lacking the ability to overflow or record to an external HDD.
Using the WizFX source / Openwiz documentation / Help from forum members, I've put together something in PHP to grab the recordings and the delete them from the BW.
Just to give you some background as to why, I'm about to go away for a couple of weeks, and well I'd like to record the AFL games over the next few weeks plus some NFL games plus whatever else I can I wanted a way of keeping the BW HDD as empty as possible so I didn't miss anything!
I have a Mac Mini connected to my TV as a semi HTPC, it also acts as my BTTV machine and I can surf the web or whatever from it. Even better is that OSX has a Unix based core... So thankfully I can schedule jobs to run whever i need them to etc etc So basically I'm downloading the files to the Mac Mini using the web service and putting them into a directory that's also a SMB share visible to the BW
If anyone wants the script I'm happy to supply it warranty free... All it does is generate two shell scripts which are executed by another that's crontabbed. It's pretty lazy programming... actually very very lazy programming, just enough to get the job done quickly without over complicating it.
When I get back from my trip I may look into building a web interface so you can do stuff to your recordings remotely!
Picked up a DP-P1 the other week. Discovered the limitations of it specifically lacking the ability to overflow or record to an external HDD.
Using the WizFX source / Openwiz documentation / Help from forum members, I've put together something in PHP to grab the recordings and the delete them from the BW.
Just to give you some background as to why, I'm about to go away for a couple of weeks, and well I'd like to record the AFL games over the next few weeks plus some NFL games plus whatever else I can I wanted a way of keeping the BW HDD as empty as possible so I didn't miss anything!
I have a Mac Mini connected to my TV as a semi HTPC, it also acts as my BTTV machine and I can surf the web or whatever from it. Even better is that OSX has a Unix based core... So thankfully I can schedule jobs to run whever i need them to etc etc So basically I'm downloading the files to the Mac Mini using the web service and putting them into a directory that's also a SMB share visible to the BW
If anyone wants the script I'm happy to supply it warranty free... All it does is generate two shell scripts which are executed by another that's crontabbed. It's pretty lazy programming... actually very very lazy programming, just enough to get the job done quickly without over complicating it.
When I get back from my trip I may look into building a web interface so you can do stuff to your recordings remotely!
Rob,
When you get back, you may wish to contribute your efforts to http://OpenWiz.org/
If you want, we can set you up with a separate Trac project and your work can become a basis for a community effort.
When you get back, you may wish to contribute your efforts to http://OpenWiz.org/
If you want, we can set you up with a separate Trac project and your work can become a basis for a community effort.
Re: Backup to HDD script
hey Rob, I just experienced this myself where I had to dump some recordings to a NAS before I went on holidays. I did by using eric's wizmac program.magicRob wrote:Hi I'm new around here
If anyone wants the script I'm happy to supply it warranty free... All it does is generate two shell scripts which are executed by another that's crontabbed. It's pretty lazy programming... actually very very lazy programming, just enough to get the job done quickly without over complicating it.
When I get back from my trip I may look into building a web interface so you can do stuff to your recordings remotely!
Can the script be easily modified to transfer the files to a NAS rather than a Mac? I not a expert by any imagination, hence the question/request. This would be a more useful proposition for me.
cheers,
John
You can get it to send the files anywhere you want
Basically it generates a shell script that had a bunch of wget's in it
for example...
wget -O /Users/xxxxxxxx/Desktop/ABC1_Sep.2.2008_20.33/0000 http://192.168.0.80:49152/idehdd%2Freco ... wiz%2F0000
that /Users/xxxxxxx/Desktop/ can be whatever you want, provided you can path to it...
Basically it generates a shell script that had a bunch of wget's in it
for example...
wget -O /Users/xxxxxxxx/Desktop/ABC1_Sep.2.2008_20.33/0000 http://192.168.0.80:49152/idehdd%2Freco ... wiz%2F0000
that /Users/xxxxxxx/Desktop/ can be whatever you want, provided you can path to it...
This is an old thread, but has something changed to the index.txt file? I just ran my script and it now gets 404's etc when trying to navigate to the various directories. Is the ":" character replaced with something other than a "_" ?
So if I point my browser at:
http://<beyonwiz ip>:<beyonwiz port>/idehdd/Recordings/SBS_HD_Apr.1.2010_19.25+55287.69900.tvwiz/Italian Food Safari.tvwizts
I get a 404.
Has something changed in the latest firmware?
The original document that I based stuff on is this: http://www.openwiz.org/wiki/Recorded_Files
Code: Select all
Glass_ A Portrait Of Philip In Twelve Parts Jan.26.2009_20.28|idehdd/Recordings/ABC1_Jan.26.2009_20.28+54857.73680.tvwiz/Glass_ A Portrait Of Philip In Twelve Parts.tvwizts
NFL_ America's Game Jan.1.2010_22.25|idehdd/Recordings/ONE_HD_Jan.1.2010_22.25+55197.80700.tvwiz/NFL_ America's Game.tvwizts
NFL_ America's Game Jan.8.2010_22.25|idehdd/Recordings/ONE_HD_Jan.8.2010_22.25+55204.80700.tvwiz/NFL_ America's Game.tvwizts
NFL_ America's Game Jan.15.2010_22.25|idehdd/Recordings/ONE_HD_Jan.15.2010_22.25+55211.80700.tvwiz/NFL_ America's Game.tvwizts
NFL_ America's Game Jan.22.2010_22.25|idehdd/Recordings/ONE_HD_Jan.22.2010_22.25+55218.80700.tvwiz/NFL_ America's Game.tvwizts
NFL_ America's Game Feb.2.2010_22.55|idehdd/Recordings/ONE_HD_Feb.2.2010_22.55+55229.82500.tvwiz/NFL_ America's Game.tvwizts
NFL_ America's Game Feb.5.2010_22.25|idehdd/Recordings/ONE_HD_Feb.5.2010_22.25+55232.80700.tvwiz/NFL_ America's Game.tvwizts
Italian Food Safari Mar.18.2010_19.25|idehdd/Recordings/SBS_HD_Mar.18.2010_19.25+55273.69900.tvwiz/Italian Food Safari.tvwizts
Italian Food Safari Mar.25.2010_19.25|idehdd/Recordings/SBS_HD_Mar.25.2010_19.25+55280.69900.tvwiz/Italian Food Safari.tvwizts
Italian Food Safari Apr.1.2010_19.25|idehdd/Recordings/SBS_HD_Apr.1.2010_19.25+55287.69900.tvwiz/Italian Food Safari.tvwizts
idehdd/contents
http://<beyonwiz ip>:<beyonwiz port>/idehdd/Recordings/SBS_HD_Apr.1.2010_19.25+55287.69900.tvwiz/Italian Food Safari.tvwizts
I get a 404.
Has something changed in the latest firmware?
The original document that I based stuff on is this: http://www.openwiz.org/wiki/Recorded_Files
-
- Wizard God
- Posts: 32703
- Joined: Tue Sep 04, 2007 13:49
- Location: Canberra; Black Mountain Tower transmitters
It's been a long time since http://<beyonwiz ip>:<beyonwiz port>/idehdd/Recordings/SBS_HD_Apr.1.2010_19.25+55287.69900.tvwiz/Italian Food Safari.tvwizts did anything useful.magicRob wrote:This is an old thread, but has something changed to the index.txt file? I just ran my script and it now gets 404's etc when trying to navigate to the various directories. Is the ":" character replaced with something other than a "_" ?
So if I point my browser at:Code: Select all
... Italian Food Safari Mar.18.2010_19.25|idehdd/Recordings/SBS_HD_Mar.18.2010_19.25+55273.69900.tvwiz/Italian Food Safari.tvwizts Italian Food Safari Mar.25.2010_19.25|idehdd/Recordings/SBS_HD_Mar.25.2010_19.25+55280.69900.tvwiz/Italian Food Safari.tvwizts Italian Food Safari Apr.1.2010_19.25|idehdd/Recordings/SBS_HD_Apr.1.2010_19.25+55287.69900.tvwiz/Italian Food Safari.tvwizts idehdd/contents
http://<beyonwiz ip>:<beyonwiz port>/idehdd/Recordings/SBS_HD_Apr.1.2010_19.25+55287.69900.tvwiz/Italian Food Safari.tvwizts
I get a 404.
Has something changed in the latest firmware?
The original document that I based stuff on is this: http://www.openwiz.org/wiki/Recorded_Files
What you want to fetch is http://<beyonwiz ip>:<beyonwiz port>/idehdd/Recordings/SBS_HD_Apr.1.2010_19.25+55287.69900.tvwiz/{header.tvwiz,stat,trunc,0000,0001,...}
There's very little in http://www.openwiz.org/wiki/Recorded_Files about how to parse the index.txt file.
Peter
T4 HDMI
U4, T4, T3, T2, V2 test/development machines
Sony BDV-9200W HT system
LG OLED55C9PTA 55" OLED TV
T4 HDMI
U4, T4, T3, T2, V2 test/development machines
Sony BDV-9200W HT system
LG OLED55C9PTA 55" OLED TV
Actually it was the screenshot on that page that gave it away The parsing of all the files is still the same.
I can't remember when I last used that script to rip data off my Beyonwiz Must have been ages (at least sometime around September 2008!!) All I know is it is slow Why haven't they shoved gigabit ethernet in it already
I can't remember when I last used that script to rip data off my Beyonwiz Must have been ages (at least sometime around September 2008!!) All I know is it is slow Why haven't they shoved gigabit ethernet in it already