Navigation » MPC Club Community Board > Community Development > Community Development!! > KiSS Stage 2 Development » CGI-Scripts for martinb-fw 1.1.4 (Backup/Restore)

Notices

» Slysoft Recommended!
1 CLick BD and DVD backups
Download AnyDVD HD!
For Blu-Ray and DVD!
» Log in
User Name:

Password:

Not a member yet?
Register Now!
» Stats
Members: 85,385
Threads: 29,398
Posts: 247,950
Welcome to our newest member, Automator_Al
» MPC Club Advertisers and Sponsors
Reply
 
Thread Tools
Old 02-10-05, 17:48   #1
PatPowerMan
Premium Potential
TIP: Upgrade to Premium
Expert Member
 
PatPowerMan's Avatar
 
Join Date: Jul 2004
Posts: 1,218
Contribution: 0.49%
Thanks: 11
Thanked 1 Time in 1 Post
Downloads: 0
Uploads: 0
Default CGI-Scripts for martinb-fw 1.1.4 (Backup/Restore)

I wrote the Backup/Restore-CGI-Scripts as requested on http://stage2.herejez.us/request.html

Should I post it here? Or is it better to send such scripts to martinb? Or uploading to the MPC?

What do you think?
PatPowerMan is offline   Reply With Quote
Advertising
Advertising temporarily disabled
Old 02-10-05, 17:56   #2
martinb
Premium Potential
TIP: Upgrade to Premium
Think Tank
 
Join Date: Jan 2005
Posts: 2,658
Contribution: 1.07%
Thanks: 0
Thanked 40 Times in 11 Posts
Downloads: 0
Uploads: 0
Default Re: CGI-Scripts for martinb-fw 1.1.4

Originally Posted by PatPowerMan
I wrote the Backup/Restore-CGI-Scripts as requested on http://stage2.herejez.us/request.html

Should I post it here? Or is it better to send such scripts to martinb? Or uploading to the MPC?

What do you think?
I think your free to do what you want, but if you think its better to place it on the first available web update you better send it so me

or first give us a look and maybe we can give comment (and can improve it)
But I?m sure its better then nothing, course your the first who build the backup script
martinb is offline   Reply With Quote
Old 02-10-05, 18:16   #3
PatPowerMan
Premium Potential
TIP: Upgrade to Premium
Expert Member
 
PatPowerMan's Avatar
 
Join Date: Jul 2004
Posts: 1,218
Contribution: 0.49%
Thanks: 11
Thanked 1 Time in 1 Post
Downloads: 0
Uploads: 0
Default

In the /htmlroot/cgi.html, I added this 3 lines:

Code:
<LI><NOBR><CODE>BACKUP 'ChannelList.ch'-File</CODE></NOBR>: Makes a backup from your /systempart/ChannelList.ch to the /htmlroot/backup and /htmlroot/restore directory

--> <NOBR><CODE>DOWNLOAD 'ChannelList.ch.zip'-File</CODE></NOBR>: Save previously made backup from your /systempart/ChannelList.ch to your local PC-drive

--> <NOBR><CODE>RESTORE 'ChannelList.ch'-File</CODE></NOBR>: Restore a previously made backup from your /htmlroot/restore directory to the /systempart/ChannelList.ch
Then, in the /htmlroot/cgi/ I wrote the 'backupchannelfile.cgi'
Code:
#!/bin/hush
echo Content-type: text/html
echo
echo Backup ChannelList.ch ...
echo
cd /systempart
cp ChannelList.ch /hdd/stage2/htmlroot/backup/ChannelList.ch
cp ChannelList.ch /hdd/stage2/htmlroot/restore/ChannelList.ch
cd /hdd/stage2/htmlroot/backup
gzip -5 ChannelList.ch
mv ChannelList.ch.gz ChannelList.ch.zip
echo
echo Finished - send me back
echo
cat /hdd/stage2/htmlroot/cgi/goback.txt
the /htmlroot/cgi/goback.txt
Code:
  <HTML>
  <header>
  <meta http-equiv="Refresh" Content="1; URL=/index.html">
  </header><body>
  </BODY>
  </HTML>
and finally the /htmlroot/cgi/ restorechannelfile.cgi
Code:
#!/bin/hush
echo Content-type: text/html
echo
echo Restoring ChannelList.ch ...
echo
cd /hdd/stage2/htmlroot/restore
cp ChannelList.ch /systempart/ChannelList.ch
echo
echo Finished - send me back
echo
cat /hdd/stage2/htmlroot/cgi/goback.txt
I am not a pro-CGI-Coder!! I wrote it just for fun and to learn how it works. If you see some errors or improvements, please let me know!

Maybe, it would be easier for all the people to download all the files in single *.zip-archive and the necessary instructions where to copy:

/cgi/backupchannelfile.cgi
/cgi/restorechannelfile.cgi
/cgi/goback.txt

Don't forget to chmod the *.cgi-files to 777. You can use a FTP-Client or have to open a telnet-window to your KiSS with:
telnet ip-adress (e.g. telnet 192.168.1.55)

change to the cgi-directory with:
cd /hdd/stage2/htmlroot/cgi

and apply the chmod-command like this:
chmod 777 backupchannel.cgi
chmod 777 restorechannel.cgi

Again, tell me what you think and of course if it works for you!
PatPowerMan is offline   Reply With Quote
Old 02-10-05, 19:12   #4
martinb
Premium Potential
TIP: Upgrade to Premium
Think Tank
 
Join Date: Jan 2005
Posts: 2,658
Contribution: 1.07%
Thanks: 0
Thanked 40 Times in 11 Posts
Downloads: 0
Uploads: 0
Default

Originally Posted by PatPowerMan
Again, tell me what you think and of course if it works for you!
I will test but I suggest to include the epgsite (file in /systempart) also
and if your on this, just include the recsceds also

the epgsite file stores the password for epg so you don?t have to re-enter it
and also if you backup your recsceds you don?t have problems with your wife when she find out that here scheduled recordings are gone
martinb is offline   Reply With Quote
Old 02-10-05, 22:12   #5
PatPowerMan
Premium Potential
TIP: Upgrade to Premium
Expert Member
 
PatPowerMan's Avatar
 
Join Date: Jul 2004
Posts: 1,218
Contribution: 0.49%
Thanks: 11
Thanked 1 Time in 1 Post
Downloads: 0
Uploads: 0
Default

Originally Posted by martinb
... I suggest to include the epgsite (file in /systempart) also and if your on this, just include the recsceds also
I don't have a file called 'epgsite' in my /systempart directory!

I only have the following files:
Code:
/systempart # ls -la
drwxr-xr-x    3 0      0            4096 Oct  2 17:08 .
drwxr-xr-x    1 0      0              32 Jan  1  1970 ..
-rw-r--r--    1 0      0            6400 Oct  2 15:41 ChannelList.ch
drwx------    2 0      0           16384 Jan  1  1970 lost+found
-rw-r--r--    1 0      0               0 Oct  2 17:08 recscheds
-rw-r--r--    1 0      0              62 Oct  2 16:59 recscheds.old
/systempart #
How do you create this epgsite-file?
PatPowerMan is offline   Reply With Quote
Old 02-10-05, 23:02   #6
martinb
Premium Potential
TIP: Upgrade to Premium
Think Tank
 
Join Date: Jan 2005
Posts: 2,658
Contribution: 1.07%
Thanks: 0
Thanked 40 Times in 11 Posts
Downloads: 0
Uploads: 0
Default

Originally Posted by PatPowerMan
How do you create this epgsite-file?
If you want to use EPG programming from the internet you should have setup a password from the menu

so it looks you never used epg from internet right?

if so please look in the forum, it was a new feature from 1.1.3 firmware
martinb is offline   Reply With Quote
Old 02-10-05, 23:13   #7
PatPowerMan
Premium Potential
TIP: Upgrade to Premium
Expert Member
 
PatPowerMan's Avatar
 
Join Date: Jul 2004
Posts: 1,218
Contribution: 0.49%
Thanks: 11
Thanked 1 Time in 1 Post
Downloads: 0
Uploads: 0
Default

Originally Posted by martinb
so it looks you never used epg from internet right?
Is this the function covered by "Web-Plan"? No, I never used it. Should I?
PatPowerMan is offline   Reply With Quote
Old 02-10-05, 23:21   #8
piuslor

Experienced Member
 
Join Date: Jun 2005
Posts: 138
Contribution: 0.06%
Thanks: 0
Thanked 0 Times in 0 Posts
Downloads: 0
Uploads: 0
Default

Originally Posted by PatPowerMan
Originally Posted by martinb
so it looks you never used epg from internet right?
Is this the function covered by "Web-Plan"? No, I never used it. Should I?
it's the way *I* am using my KISS most.
yeah, I would recommend you looking into it. unfortunately, the KISS-Technology EPG website is not the most sophisticated one. but it works fine with scheduling recordings from abroad.

at home, I'd prefer using TV-Browser. but you know that story
piuslor is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Help to execute shell scripts Keneda Archive PVR and DVR 4 02-11-06 20:50
Restore HDMI configurations rzr Archive KiSS 2 30-03-06 20:59
Sources of cgi scripts written in c drbuzasi KiSS Stage 2 Development 4 29-11-05 13:19
6. === CGI-scripts raffe KiSS Stage 2 Development 0 09-10-05 00:56
Backup and Restore Channel List shoe Archive PVR and DVR 18 17-10-04 10:06

» MPC top List...

TOP 5 Regular media players

  • Popcorn Hour C-300 (81%)
  • Mede8er Med500x2 (80%)
  • Dune SMART (D1) (65%)
  • HDI Dune Base 3.0 (52%)
  • DViCo TViX X-Roid (00%)

TOP 5 Hybrid media players

  • HDI Dune BD Prime 3.0 (75%)
  • HDI Dune HD SMART B1 (74%)
  • PoPCorn Hour C-200 (68%)
  • HDI Dune MAX (54%)

We do not recommend currently...

  • Xtreamer products
  • Hantech products
  • MViX products
  • DviCo products
  • HDX products
Powered by vBadvanced CMPS v3.2.1 - twisted by vbTwist and Hi-Jack (MPC Club)