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

Problems restoring a backup in the FTP server

Discussion in 'Plesk 9.x for Linux Issues, Fixes, How-To' started by Jorge del R, Jan 19, 2010.

  1. Jorge del R

    Jorge del R Guest

    0
     
    Hello.
    I have severals backups in the FTP server than my Hosting provides to me.
    The backups are made without errors and I can make them manually or automaticatly.
    Today I have restore and upgrade the whole main server and I want to restore my data from FTP server to main server.
    But I cannot because it gives an "ftp network error".
    I can see the differents backup and their dates but when you select one to restore or to transfer to local server it gives the "ftp network error".
    In the ftp server backups are storages as tar files: copia_lunes_00000111.tar copia_lunes_00000111.tar1 ....
    I've tried to untar ir via shell and in my hd and gives error.
    I've copied these files to /var/lib/psa/dumps/ to use them with local backup and Plesk doesn't find them.
    I don't know waht can I do more...

    Any help?
    I have my server without data.

    Thanks a lot!
     
  2. IgorG

    IgorG Forums Analyst Staff Member

    49
    24%
    Joined:
    Oct 27, 2009
    Messages:
    24,576
    Likes Received:
    1,243
    Location:
    Novosibirsk, Russia
    As I remember such issue can be caused by insufficient local disk space.
     
  3. Jorge del R

    Jorge del R Guest

    0
     
    Local disk space in /var/lib/psa/dumps/ ?
    Or use another tmp dir?

    /var -> about 200GB
    / -> 8GB
    /usr -> 7GB

    I thout about "disk space" too and I've changed the variable DUMP_D in psa.conf file to /
    and the I load Plesk panel gives this error: "Configuration variable not found: DUMP_D"
    Can be change to any dir ?

    Backup was made with Ples 9.2 and now the server is Plesk 9.3. Any issue with this?


    Thanks a lot!
     
  4. IgorG

    IgorG Forums Analyst Staff Member

    49
    24%
    Joined:
    Oct 27, 2009
    Messages:
    24,576
    Likes Received:
    1,243
    Location:
    Novosibirsk, Russia
    Look at this thread. Maybe it will be useful for you.
     
  5. Jorge del R

    Jorge del R Guest

    0
     
    And if I change this via shell:
    TMPDIR=/var/tmp

    Does Plesk accept it?

    Thanks a lot!
     
  6. IgorG

    IgorG Forums Analyst Staff Member

    49
    24%
    Joined:
    Oct 27, 2009
    Messages:
    24,576
    Likes Received:
    1,243
    Location:
    Novosibirsk, Russia
    Just try it and inform us with results :)
     
  7. Jorge del R

    Jorge del R Guest

    0
     
    # echo $TMPDIR
    /var/tmp

    But Plesk continue giving the same "ftp network error".

    Now I'm trying "pmm-ras.zip" file.
    But now it needs a lot of libraries...
     
  8. IgorG

    IgorG Forums Analyst Staff Member

    49
    24%
    Joined:
    Oct 27, 2009
    Messages:
    24,576
    Likes Received:
    1,243
    Location:
    Novosibirsk, Russia
    Why you did not define it as DUMP_D?
     
    Last edited: Jan 19, 2010
  9. Jorge del R

    Jorge del R Guest

    0
     
    Sorry but I'm not sure what are you speaking about...
    Define it in psa.conf file?
     
  10. IgorG

    IgorG Forums Analyst Staff Member

    49
    24%
    Joined:
    Oct 27, 2009
    Messages:
    24,576
    Likes Received:
    1,243
    Location:
    Novosibirsk, Russia
    Right. in psa.conf
     
  11. Jorge del R

    Jorge del R Guest

    0
     
    I have made it before... (I'm not sure if ok)
    In the 3rd post I explained it...

    I have changed in the psa.con file the

    # Backups directory
    DUMP_D /var/lib/psa/dumps

    to

    # Backups directory
    DUMP_D /

    But accesing to Plesk Panel gives this error:
    "Configuration variable not found: DUMP_D"

    I think the problem is the /tmp file.
    But I cannot get to fix it.
     
  12. Jorge del R

    Jorge del R Guest

    0
     
    I've replace pmm-ras file in the post attached for the file in
    /usr/local/psa/admin/sbin/pmm-ras

    But now FTP backup server doesn't show any file.
    Local backup repository doesn't show anything
    and I cannot make any backup.

    I've done it ok?
    File must replace or not?
     
  13. Jorge del R

    Jorge del R Guest

    0
     
    Is this a complete command for a server restore?

    ./pleskrestore --restore /var/tmp/backup_file.tar -level server -license -debug -suspend -conflicts-resolution /var/tmp/conflicts_file.xml

    Is this ok?
    I think with command line I'm fixing the problem.
    But this options gives the most information on restore process?
    But for me it's not giving me anything... nothing in stdout ...
    Is "-debug" option correct?


    Thanks a lot!
     
  14. IgorG

    IgorG Forums Analyst Staff Member

    49
    24%
    Joined:
    Oct 27, 2009
    Messages:
    24,576
    Likes Received:
    1,243
    Location:
    Novosibirsk, Russia
    I can suggest you use -verbose option instead -debug. (/usr/local/psa/bin/pleskrestore --help for more details)
     
  15. Jorge del R

    Jorge del R Guest

    0
     
    But this command really restore the backup?

    ./pleskrestore --restore /var/tmp/backup_file.tar -level server -license -debug -suspend -conflicts-resolution /var/tmp/conflicts_file.xml

    I've done this and only uncrompress the tar file but no restore. I don't know why.
    Any help?
     
  16. IgorG

    IgorG Forums Analyst Staff Member

    49
    24%
    Joined:
    Oct 27, 2009
    Messages:
    24,576
    Likes Received:
    1,243
    Location:
    Novosibirsk, Russia
  17. Jorge del R

    Jorge del R Guest

    0
     
    I have the pdf "plesk-9.0-backup-cli-guide". I have read it at all and I have copy the command from there.
    Please don't tell me "look at this".
    Please tell me if this command line is correct or no.

    ./pleskrestore --restore /var/tmp/backup_file.tar -level server -license -debug -suspend -conflicts-resolution /var/tmp/conflicts_file.xml

    I've used this line and no restoration is done.
    I have MY SERVER 5 DAYS WITHOUT DATA NOR DOMAINS because this restauration option is not working.
    So please I have made a lot of this. I have made a lot of hours and hours with this restoration.
    So please help a little and tell me why this command line is not working.
    Because this command line is only uncompressing the image and doing anything more.
    (Of course files are there)

    Thanks a lot!
     
Loading...