Jump to content

lottos

Members
  • Posts

    7
  • Joined

  • Last visited

Everything posted by lottos

  1. just in case anyone is interested in doing an automated backup to their pc, this site has a nifty little batch file for windows users: http://www.absoblogginlutely.net/mtblogarchive/003217.php it can be set to do all cpanel backups or just databases. could be set up via your Windows scheduled jobs for ease of use when not around. the author is very helpful with any queries!
  2. sorry for posting twice - I was hoping for a quick answer and now that I can only reply to the one in the backend and not pre-sales I'm afraid I'll be waiting even longer! I'm still waiting on an answer for the everyone.net question.... thanks for the response on the automated ftp DB question.
  3. reposted here as original post in backend support area not answered: Hi my current web host plan is almost up so I'm looking at other possible hosts. My current site is extremely basic - it offers a front page for web based email provided by a 3rd party, everyone.net. Similiar to bigmailbox. So - have you guys set this up for any of your clients and did you do it successfully - ie not only change the mx and cname records but also ensure any mail from within the domain account (on your server) is also sent to the everyone.net servers? Secondly, I have another site which I want to ftp the DB from to my new host - and while I know this is no problem, the (mysql) DB size is approx 25MB uncompressed - I'd like to send it compressed but if I use anything apart from cpanel compression it errors with unreadable errors. I know one of your techs raised the possibility of doing a script for cpanel type ftp DB backups (which I replied to) but no more has been heard on that....
  4. Hi my current web host plan is almost up so I'm looking at other possible hosts. My current site is extremely basic - it offers a front page for web based email provided by a 3rd party, everyone.net. Similiar to bigmailbox. So - have you guys set this up for any of your clients and did you do it successfully - ie not only change the mx and cname records but also ensure any mail from within the domain account (on your server) is also sent to the everyone.net servers? Secondly, I have another site which I want to ftp the DB from to my new host - and while I know this is no problem, the (mysql) DB size is approx 25MB uncompressed - I'd like to send it compressed but if I use anything apart from cpanel compression it errors with unreadable errors. I know one of your techs raised the possibility of doing a script for cpanel type ftp DB backups (which I replied to) but no more has been heard on that....
  5. just wondering if the DB backup ftp script is still in progress?!
  6. Thanks.... I'm looking for a script like that you've previously mentioned that will allow a cpanel like zipped mysql DB backup. I've tried phpmyadmin for backing up plus lots of gzip and bzip2 scripts and whenever I test a recovery from these, the unzip process tells me the file is corrupt - but NOT when it's a cpanel backup, hence my interest... so at the moment I do a croned uncompressed ftp backup. I'm not sure how cpanel do theirs, but it appears to be a different method to every other script I've used. I've also been tested a more raw version of the script you have above, with the full backup line commented out and what I had hoped would do the mysql DB backup added, shown below, but it's a no go: <?php $target_host = 'currenthost'; $cpanel_userid = 'userid'; $cpanel_pass = 'thepassword'; $cpanel_theme = 'Xskin'; $ftp_host = 'ftp://myftpsite.com/httpdocs/backup/'; $ftp_user = 'mysite'; $ftp_pass = 'theftpsitepwd'; $email = 'admin@mysite.com'; // // DO NOT ALTER ANYTHING BELOW THIS LINE // $user_pass = "$cpanel_userid:$cpanel_pass"; $authentication = base64_encode($user_pass); $socket = fsockopen($target_host,2082); if (!$socket) { echo "$errstr ($errno)<br />\n"; } else { // fputs($socket,"POST /frontend/$cpanel_theme/backup/dofullbackup.html?dest=ftp&email=$email&server=$ftp_host&user=$ftp_user&pass=$ftp_pass&submit=Generate Backup\r\n"); fputs($socket,"POST /getsqlbackup/DBname.gz?dest=ftp&email=$email&server=$ftp_host&user=$ftp_user&pass=$ftp_pass\r\n"); fputs($socket,"HTTP/1.0\r\n"); fputs($socket,"Host: $target_host\r\n"); fputs($socket,"Authorization: Basic $authentication \r\n"); fputs($socket,"Connection: close\r\n\r\n"); while (!feof($socket)) { $request = fgets($socket, 4096); } echo 'Done.'; fclose($socket); } ?>
  7. I'd love to see a cpanel (mysql) backup script version with the same functionality (ftp to remote server) - with date on the file name! For the theme variable, what is the correct data for the X theme (X, xtheme....) ?
×
×
  • Create New...