Community Forums
Connect with us on LinkedIn
Community Notice
+ Reply to Thread
Results 1 to 4 of 4
  1. #1
    Member
    Join Date
    Oct 2006
    Location
    Cumbria, UK
    Posts
    12

    Default Automated MySQL backup issue

    I have a number of sites on a shared server that I need to back up locally, so to avoid the need to log in to cPanel and back up manually, I wrote a program, Site Backup CP, that issues the backup commands with authentication automatically, so you can just click one button to backup whatever you want, or run the job from a scheduler. I thought that others would find it useful, so I released it as a shareware product.

    I have received a couple of reports from people who have tried the program who have said that the MySQL backups are incomplete, or not downloaded at all. The other backups are fine. I have determined, as far as I can, that they have entered the database name correctly, and that the MySQL backup works when done manually from cPanel.

    As some of you may know, a backup is initiated simply by issuing an HTTP GET for a URL like: http://domain:2082/getsqlbackup/database.gz with authentication . There is not much scope for getting it wrong. I don't need to lnow anything about the database itself as I don't talk to MySQL directly. cPanel handles all of that.

    Has anyone any suggestions as to why backups may fail when run from a program instead of a web browser? Since this only affects some people, is there some cPanel configuration option that could cause this problem?
    Julian Moss
    Tech-Pro Limited

  2. #2
    Member
    Join Date
    Jul 2002
    Location
    Canada
    Posts
    675

    Default

    Note sure if its part of it or not but the browser might create a session with the server that cPanel also uses to verify its a real user online. I know curl supports sessions.

    Just a thought, I'm not sure.
    Upload Guardian 2.0 - Sign up for our early beta
    ServerProgress - Server security, consulting and assistance

  3. #3
    Member
    Join Date
    Oct 2006
    Location
    Cumbria, UK
    Posts
    12

    Default

    If that's the case, I don't know how to solve it.

    It isn't possible to download a MySQL backup using wget either. It returns a 404 error. Wget seems to be a widely recommended way to automate the downloading of backups, so why doesn't it work?
    Julian Moss
    Tech-Pro Limited

  4. #4
    Member
    Join Date
    Apr 2010
    Posts
    22

    Default Re: Automated MySQL backup issue

    Well, your software worked for some time and then it just stopped backing up SQL correctly. Since I paid for this software and it is no longer being supported any help would be great.I have dedicated server and on some accounts it works and on others it doesnt. Doing SQL backup from cPanel works. Go figure.

Similar Threads & Tags
Similar threads

  1. Downloading a MySQL backup issue
    By D-Litz in forum cPanel and WHM Discussions
    Replies: 7
    Last Post: 10-03-2009, 11:16 AM
  2. mysql backup issue
    By bhanuprasad1981 in forum Data Protection
    Replies: 6
    Last Post: 08-22-2009, 03:32 AM
  3. Automated site backup
    By challii in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 02-07-2004, 01:19 PM
  4. Automated Backup
    By Olate in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 11-18-2003, 08:03 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube