Applicable to:
- Plesk for Linux
Question
How to change the location for temporary backup files in Plesk for Linux?
Answer
-
Connect to a Plesk server via SSH.
-
Create a new directory for temporary backup files. In these example, we are creating
/mnt/backupdrive/tmp
:# mkdir /mnt/backupdrive/tmp
-
Set required permissions for the created directory:
# chmod 1777 /mnt/backupdrive/tmp
-
Modify the backup location in the Plesk configuration file
/etc/psa/psa.conf
:4.1. Open the file
/etc/psa/psa.conf
in a text editor. In this example, we are using the vi editor:# vi /etc/psa/psa.conf
4.2. Change the value of DUMP_TMP_D to the created directory from step 2:
CONFIG_TEXT: # Backups directory
DUMP_TMP_D /mnt/backupdrive/tmp4.3. Save the changes and close the file.
4.4. Verify that the directory has been changed:
# grep -v '#' /etc/psa/psa.conf | grep -w DUMP_TMP_D
DUMP_TMP_D /mnt/backupdrive/tmpNow all temporary backup files will be stored in the directory
/mnt/backupdrive/tmp
.
Additional Information
To change the location for Plesk backups, visit this KB article.
Comments
7 comments
Hello,
Danila Gavrilowa pointed me to this article. The article in fact better suits the subject, but the problem remains.
I have set up DUMP_D and DUMP_TMP_D for not standard folder (mounted disk on cloud service), jest like the article above instructs.
The backup creation process works well. But when I download backup file from remote ftp storage, the file is downloaded to /opt/psa/tmp/ (instead of DUMP_TMP_D), and then, after it is downloaded, it is moved to DUMP_D. When there is not enough free space on the base partition (where /opt/psa/tmp is) i can't download the backup or restore a backup from remote ftp storage. (My backup files are big proportionally to partition size).
In my opinion the file should be downloaded to DUMP_TMP_D.
Please tell me if there is an option to change location of temporary download file or, if there is any other workaround of this problem with small base partition.
Plesk 17.8.11 Update #62, Debian 8.11.
Best regards,
@Stanislaw, could you check if you are getting the errors in this article https://support.plesk.com/hc/en-us/articles/213902125-Unable-to-download-a-backup-from-backup-repository-on-Plesk-server-page-not-found.
If not please open up a ticket with us here https://support.plesk.com/hc/en-us/articles/213953025-How-to-get-support-directly-from-Plesk-
@... the first Link "https://support.plesk.com/hc/en-us/articles/213902125-Unable-to-download-a-backup-from-backup-repository-on-Plesk-server-page-not-found" is not working anymore.
Is there a save way to run Backup (TMP) Folder on NFS?
Without any Issues regarding backup and restoring?
Hi Lenor,
Such issue has to be fixed in the latest versions of Plesk.
If this still happens to you on a up-to-date Plesk, please open a support request here.
After having upgraded from Onyx to Obsidian (days ago) the temporary location is no longer working, it's set to the same DUMP_TMP_D as worked before the update. However, our PGSQL database dump is for some reason using the /OPT/PSA/TMP folder as if the setting in this file (/HOME/PLESK/TMP) is being ignored and as a result, it runs out of disk space.
No changes were done filesystem wise, it's the same temp folder as before the update and I have tried to set it again and restart the service to no avail. Assistance and tips on what to try would be greatly welcomed.
Hi Christian,
Please open a support request here so that it can be investigated properly.
Hello Cristian, try to change both variables inside psa.conf:
/tmp
/var/lib/psa/dumps/
To (for example):
mnt/yourdrive/tmp
mnt/yourdrive/var/lib/psa/dumps/
Don´t forget to create the complete path folders in your drive and give 1777 permissions.
Please sign in to leave a comment.