The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

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:
    1
    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