Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Backup script?

Discussion in 'General Discussion' started by akoss, Feb 19, 2004.

  1. akoss

    akoss Member

    Joined:
    Oct 6, 2003
    Messages:
    10
    Likes Received:
    0
    Trophy Points:
    151
    I found this script all over the web but it doesn't seem to work for me... I tried it on 2 different servers... anyone have it working?
    PHP:
    <?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 );
    ?>
    Tia! ;)
     
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice