1. Please take a little time for this simple survey! Thank you for participating!
    Dismiss Notice
  2. Dear Pleskians, please read this carefully! New attachments and other rules Thank you!
    Dismiss Notice
  3. Dear Pleskians, I really hope that you will share your opinion in this Special topic for chatter about Plesk in the Clouds. Thank you!
    Dismiss Notice

Plesk Backup - Extract or browse?!

Discussion in 'Plesk for Linux - 8.x and Older' started by albans, May 30, 2006.

  1. albans

    albans Regular Pleskian

    26
     
    Joined:
    Nov 29, 2005
    Messages:
    173
    Likes Received:
    0
    Hi,

    I'm trying to restore some files via the Plesk 8 restore utility /usr/local/psa/bin/pleskrestore.

    I make a monthly full server backup via the following command:
    /usr/local/psa/bin/pleskbackup --all /root/ftpbackup/dump-file-month-year

    I don't need a full server-wide restore, and not even a domain-wide restore... I just need to restore two files of about 20kB.

    So, is it possible to restore only those two files? Or is it simply possible to extract the content of the dump somewhere on the server or on a client machine?

    I already read the docs at http://download1.swsoft.com/Plesk/Plesk8.0/Doc/plesk-8-backup-restore-users-guide/index.htm , but nothing's really usefull...

    Any ideas? Thanks!
     
  2. normanu

    normanu Guest

    0
     
    I have the same question for v7.5.4 I want to upgrade to v8 and a user who has now his own server, I want to send him a dump file for his account.
    But if the files aren't extractable that hasn't much use :s
     
  3. albans

    albans Regular Pleskian

    26
     
    Joined:
    Nov 29, 2005
    Messages:
    173
    Likes Received:
    0
    I actually asked SWSoft Tech Support... I'm waiting for their answer. Hope it'll help!
     
  4. albans

    albans Regular Pleskian

    26
     
    Joined:
    Nov 29, 2005
    Messages:
    173
    Likes Received:
    0
    Boooooh, Plesk backup utility's really shitty...
    From SWSoft support:
    "Unfortunately, there is no such a possibility in Plesk to restore domains only if the backup has been created without --domains option."
     
  5. albans

    albans Regular Pleskian

    26
     
    Joined:
    Nov 29, 2005
    Messages:
    173
    Likes Received:
    0
    I finally looked a bit more to the backup file...

    The "file" command shows it was a gzip file. So I renamed it to mybackufilename.gz and could decompress it...

    After that, it looks like an XML file with mime-encoded binaries... But really shitty to recover files.

    SO, FORGET ABOUT PLESK BACKUP TOOLS, it's only usefull to recover a full server...
     
  6. normanu

    normanu Guest

    0
     
    bah was affraid of that ....
     
  7. albans

    albans Regular Pleskian

    26
     
    Joined:
    Nov 29, 2005
    Messages:
    173
    Likes Received:
    0
    I found usefull to perform a full psa dump, full tar of /var/www directory and full mysql dump using the following script (which upload everything via FTP):

    /root/ftpbackup/ftpbackup.sh
    PHP:
    #!/bin/sh

    tdy=`date +%d%m%Y`
    mysqluser="admin"
    mysqlpass="_thePassword_"

    cd /root/ftpbackup

    /usr/local/psa/bin/pleskbackup --all  /root/ftpbackup/dump-$tdy-PSA
    tar 
    -cvf /root/ftpbackup/dump-$tdy-WWW.tar /var/www
    mysqldump 
    -u$mysqluser -p$mysqlpass --all-databases dump-$tdy-MySQL.sql
    gzip dump
    -$tdy-MySQL.sql
    gzip dump
    -$tdy-WWW.tar

    ## username & password are in /root/.netrc
    for f in $(ls dump-$tdy*); do
        
    ftp theserver.com &> /root/ftpbackup/ftp_$f.log <<EOFTP
        type binary
        put $f
        quit
    EOFTP
    done
    The content of the /root/.netrc:
    PHP:
    machine theserver.com
    login ftpuser
    password ftppass
    After the execution, this'll upload three files to the FTP server:

    dump-dmy-PSA
    the full serveur dump using psa backup tool

    dump-dmy-WWW.tar.gz
    the tar of the /var/www directory

    dump-dmy-MySQL.gz
    the full mysql server dump using the mysqldump command

    (replace dmy by the day/month/year)
     
Loading...