icon Get the most out of Surmunity, read our tips here! Need an interesting blog to read? You've got to read the Surpass Blog! | Welcome! Please register to access all of our features.
Old October 27th, 2003, 3:41 AM   #1 (permalink)
Registered User
Fresh Surpasser
 
Joined in Sep 2003
11 posts
Gave thanks: 0
Thanked 0 times
I was wondering if there was a way to set up a cron job so that it runs the "Generate/Download a Full Backup" program and ftp's it to my backup server here at my house. I've looked around and havn't found anything yet. I want to set it up to run every 3 days.

Any ideas?
spydie is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Old October 27th, 2003, 8:39 AM   #2 (permalink)
CTO, Surpass Hosting
Super #1
 
Emmanuel's Avatar
 
Joined in Apr 2003
Lives in Florida
1,824 posts
Gave thanks: 10
Thanked 134 times
Spydie,

I haven't heard of this being done, it would be interesting to know, if you find out let us know here to by posting...

if I find anything I shall do the same..

:surpass:
__________________
Emmanuel :: Surpass Hosting Network Admin
http://www.SurpassHosting.com
Emmanuel is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Old October 27th, 2003, 2:39 PM   #3 (permalink)
Registered User
Fresh Surpasser
 
Joined in Sep 2003
11 posts
Gave thanks: 0
Thanked 0 times
I found this but it's having parse errors. Anybody know php?

Code:
<?php
$host = "server.domain.com";
$socket = fsockopen($host,2082);
$user = "cpanelusername";
$password = "cpanelpassword";
$authstr = "$user:$password";
$pass = base64_encode($authstr);
$in = "GET /frontend/x/backup/dofullbackup.html?dest=ftp&email=email@address.com&server=ftp.remoteserver.com&user=remoteftpusername&pass=remoteftppassword&submit=Generate Backup HTTP/1.0\r\nAuthorization: Basic $pass \r\n";

fputs($socket,$in);
fclose( $socket );
?>
spydie is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Old October 27th, 2003, 5:44 PM   #4 (permalink)
Registered User
Comfy Contributor
 
OmicroN's Avatar
 
Joined in May 2003
Lives in Florida
118 posts
Gave thanks: 0
Thanked 0 times
I see no parse errors.
__________________
Profession: Programmer, Gamer, Web Developer
Website: http://www.reanimated.net/ - Server: Quela
OmicroN is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Old October 27th, 2003, 7:56 PM   #5 (permalink)
Registered User
Fresh Surpasser
 
Joined in Sep 2003
11 posts
Gave thanks: 0
Thanked 0 times
I'm not getting them anymore but it's still not working.

I also fixed

Code:
$in = "GET /frontend/x/backup/dofullbackup.html?

to 

$in = "GET /frontend/x/backup/fullbackup.html?
You say no parse errors but is the script working for you?
spydie is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Old October 31st, 2003, 2:15 PM   #6 (permalink)
Just Some Guy..
Comfy Contributor
 
Joined in Oct 2003
127 posts
Gave thanks: 0
Thanked 5 times
Another reason to download and read through my CPANEL guide... there's a link in there to a working script that one of our customers devised to automate backups... it even backs up your cronjobs.

Aric
Aric is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Old October 31st, 2003, 2:28 PM   #7 (permalink)
Registered User
Fresh Surpasser
 
Joined in Sep 2003
11 posts
Gave thanks: 0
Thanked 0 times
does it work?
spydie is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Old October 31st, 2003, 2:48 PM   #8 (permalink)
Just Some Guy..
Comfy Contributor
 
Joined in Oct 2003
127 posts
Gave thanks: 0
Thanked 5 times
Read my post more carefully, you will discover the word "working"
Aric is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Old October 31st, 2003, 8:25 PM   #9 (permalink)
Registered User
Fresh Surpasser
 
Joined in Sep 2003
11 posts
Gave thanks: 0
Thanked 0 times
Thank you, found your cpanel guide.
spydie is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Closed Thread


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

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On