Plesk Server Backup Script

Discussion in 'Parallels Plesk Panel Service Tools' started by IgorG, Feb 1, 2012.

  1. IgorG

    IgorG Parallels Team

    Messages:
    16,003
    Plesk Service Team is pleased to announce Plesk Server Backup Script.
    Main goal of the script is to reduce disk space usage and memory consumption on backing up procedures, especially backing up to FTP repository.
    The script make backup dump of whole Plesk server and does implement per-domain backup algorithm.

    All details and scenarios are described in corresponding KB article - http://kb.parallels.com/en/113252

    Thank you for your cooperation!
  2. PSi_101

    PSi_101 New Member

    Messages:
    121
    How does this differ from the normal pleskbackup process. Are there any specific advantages to use this over pleskbackup?
  3. IgorG

    IgorG Parallels Team

    Messages:
    16,003
    Customers complains that backup process consumes double diskspace against backup size after its creation. Main case is full server backup to FTP repository.
    This script implements per-domain backup procedure. Also script could resolve some issues with huge backups.
  4. PSi_101

    PSi_101 New Member

    Messages:
    121
    Thanks for that.
    I take it this will eventually replace pleskbackup shipped with Plesk.
  5. kaizer

    kaizer New Member

    Messages:
    63
    If I would like to use this script instead, I should disable the backup in Plesk and set up a cronjob with the new script?
  6. IgorG

    IgorG Parallels Team

    Messages:
    16,003
    Yes, I think that you can use script in scenario described by you. You can try at least. Basically it was designed for manual using but I see no reason why this can not be used for cronjob.
  7. kaizer

    kaizer New Member

    Messages:
    63
    According the the KB, you run the script. But how do you set the parameters?
    I would like to run this script and place all files to an external FTP server.
  8. IgorG

    IgorG Parallels Team

    Messages:
    16,003
    What about described command
    ?
  9. chili1001

    chili1001 Bit Poster

    Messages:
    66
    I get following error, when I try to create a backup:

    [root@WH33 ~]# php -d safe_mode=0 /root/fullbackup.php -b -o ftp://xxxxxx:xxxxxxx@xxxxx/backupwh33
    PHP Warning: fopen(): URL file-access is disabled in the server configuration in /root/fullbackup.php on line 105
    PHP Warning: fopen(ftp://...@xxxxxx/backupwh33/fullbackup_120222114057): failed to open stream: no suitable wrap
    per could be found in /root/fullbackup.php on line 105
    fopen(ftp://xxxxxx:xxxxxxx@xxxxx/backupwh33/fullbackup_120222114057) failed
  10. IgorG

    IgorG Parallels Team

    Messages:
    16,003
    Make sure that you have following options with 'On' in /etc/php.ini file:

    allow_url_include = on;
    allow_url_fopen = on;
  11. bartabc

    bartabc Bit Poster

    Messages:
    53
    Hi,

    I have 30 GB to backup with all my data,

    This script will save file first on my server ? or if i use ftp mode all files will be stored directly on FTP Backup server ?
  12. IgorG

    IgorG Parallels Team

    Messages:
    16,003
    It will take so much local diskspace as is size of domain which is currently backuped. Then it will be transferred to ftp server, i.e. per-domain.
  13. triadltd

    triadltd New Member

    Messages:
    5
    This seems to work much better - can I check what exactly is this backing up?

    Things like:

    Plesk Entry?
    Database Connection / Users?
    Database itself?
    Website files within httpdocs?

    Many thanks!
  14. WinP

    WinP New Member

    Messages:
    21
    Will this maintain number of backups?. We maintain 4 Backups i.e. weekly.

    We are looking for script or way to have one backup process for local repository and FTP i.e.

    When local repository backups runs it should also place a copy of compress single file backup to FTP. is it possible?

    There is radio buttons for choosing backup goes to either place if both are allowed then it would reduce time for our backup.

    More over its should manage backups sets as well on FTP as it does for local.

    As of now we are taking backup 2 times for a server, one local then we have start backup for FTP.

    Any suggestion?
  15. DaveKay

    DaveKay Kilo Poster

    Messages:
    226
    Very useful tool! Thanks.

    I've just run the script from an SSH session and it's completed.

    Plesk is showing the backup in the server repository however it appears that it's only backed up the server configuration.

    Is there a way to backup the subscription contents with this script?

    Would be very usefull if it could be used for running a nightly backup to FTP (via sheduler) and the server repo.

    Thanks

    EDIT: Script has now successfully executed from cronjob under root user.
    Plesk is showing new backup in server repo, but size is only 1.34MB and "Server Configuration" is the only restore option.
    Last edited: Sep 29, 2012
  16. Taimon

    Taimon New Member

    Messages:
    6
    errror

    Hi

    I have the folow error messing:
    I have change the php.ini:
    allow_url_include = on;
    allow_url_fopen = on;

    But i have the same error messing.
    Can someone help me?

    Thanks!
    Taimon
  17. IgorG

    IgorG Parallels Team

    Messages:
    16,003
    Looks like that problem on FTP server side or issue related to network communication.
    Is it still actual for you?
  18. Taimon

    Taimon New Member

    Messages:
    6
    Hi, i have test this, it was a problem with the FTP server, Thanks!
  19. Joooop

    Joooop New Member

    Messages:
    24
    Restore a domain

    Hi,
    I'm using this script to backup my server.
    now I need to restore just 1 domain.
    I ryn this command
    it return lots of binary characters and nothing changed!
    now I have 2 question:

    1. is there any way to extract this file to use its contents?
    2. how can I use the restore command to restore a single domain?

    Sincerely yours
  20. sergius

    sergius Parallels Team

    Messages:
    1,911
    Last edited: Dec 19, 2012

Share This Page