• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

Uploading Backup

Scott.B

Basic Pleskian
I did a complete backup of my Plesk server to include content and settings and saved it to the server repository.

I then downloaded the file to my system which made a signal archive file.

Through various articles I read and google searches I know that when I download the backup to a single archive it creates everything in the /tmp folder and I also believe in the /usr/local/psa/PMM/tmp.

But what I can't find out is when I go to upload the file where does it upload it too? Does it upload it to same temp folders used when it is downloaded?

Also I noticed in the upload section that it said uploaded files are limited to 2 gigabytes.

To get around this I found the following article and modifiied the /usr/local/psa/admin/conf/php.ini aand set the limit to 6 gigabytes as my file is 5.5 gigabytes.

http://download1.parallels.com/Ples...nistration-guide/index.htm?fileName=66758.htm

So far its uploaded 50% of the 5.5 gigabytes so I believe the above setting worked. But I have two questions
now
  1. Where is the backup file uploaded as I want to make sure the drive it uploads to has space.
  2. Is there a way for me to apply the same settings to php.ini for file upload size at domain/subscription level in plesk instead of the above which is a server wide setting?
 
Hi Scott.B,

please see: [HOW TO] Find and change default server backup repository ( KB-article 5816 )

The Plesk documentation as well points to the standart location: Introduction to Plesk ( online documentation: Advanced Administration Guide, Plesk 12.5 for Linux )
...
  • Backup files:
    /var/lib/psa/dumps/

Also I noticed in the upload section that it said uploaded files are limited to 2 gigabytes.
This only depends to some standart settings and you found the correct way to change it. But the link you provided is not correct... here is the correct one:


Just be informed, that big files should be rather transfered with a FTP- or SFTP - client, to avoid possible issues/failures/problems. Consider to inform yourself with this article:

http://daniel.haxx.se/docs/ftp-vs-http.html ( external link, please inform me, if the link goes dead, so I can replace the link. Thank you! )
 
Last edited by a moderator:
Instead of changing backup location I just increased the size of my /usr and /var partitions to allow for the larger space requirements. I did this so going forward it is easier to troubleshoot problems with default settings rather than remembering what was changed.

Now when I uploaded the file I didn't see it appear in the /var/lib/psa/dumps folder when I connected to the server with WinSCP, which is why I asked where does it store the file being uploaded. I know when I do a backup it stores the files there.

Also


Thank you for the confirmation and additional information. So to confirm there is no way to set maximum upload size per domain only at server level per article provided, is that correct?

Also I know I can upload the file via FTP but then how would I restore it? Uploading it via FTP wouldn't have it appear anywhere in the GUI interface. Does that mean I would have to use CLI to restore a backup uploaded via FTP?

This only depends to some standart settings and you found the correct way to change it. But the link you provided is not correct... here is the correct one:


Just be informed, that big files should be rather transfered with a FTP- or SFTP - client, to avoid possible issues/failures/problems. Consider to inform yourself with this article:

http://daniel.haxx.se/docs/ftp-vs-http.html ( external link, please inform me, if the link goes dead, so I can replace the link. Thank you! )
 
Hi Scott.B,

please make sure that if you use a FTP / SFTP-client to upload a backup-file ( i.e.: backup_info_1234567890.xml.tar ) to "/var/lib/psa/dumps", you still have to UNTAR that file, to be able to see the backup ( and its content ) in the list at your Plesk Control Panel:

Example process:
  1. Manual upload file to "/var/lib/psa/dumps"
  2. Commands over the command line ( user root ):
    Code:
    cd /var/lib/psa/dumps
    tar -xvf backup_info_1234567890.xml.tar
  3. Go back to your Plesk Control Panel and refresh your list at: Home > Tools & Settings > Backup Manager
 
One last note:

Some hosting provider offer as well an additional FTP-BackUp-repository which might not be compatible to compress files. In such cases, you should set the option "Do not compress backup files", when you use backups including FTP - storage, to avoid errors. ( Home > Tools & Settings > Backup Manager > Backup Settings )
 
Back
Top