|
|
#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? ![]() |
|
|
|
|
#2 (permalink) |
|
CTO, Surpass Hosting
Super #1
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: |
|
|
|
|
#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 ); ?> |
|
|
|
|
#4 (permalink) |
|
Registered User
Comfy Contributor
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 |
|
|
|
|
#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? |
|
|
|
|
#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 |
|
|