Plesk

How to change the location for temporary backup files in Plesk for Linux

Question

How to change the location for temporary backup files in Plesk for Linux?

Answer

  1. Connect to a Plesk server via SSH.

  2. Create a new directory for temporary backup files. In these example, we are creating /mnt/backupdrive/tmp:

    # mkdir /mnt/backupdrive/tmp

  3. Set required permissions for the created directory:

    # chmod 1777 /mnt/backupdrive/tmp

  4. 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:

    # Backups directory
    DUMP_TMP_D /mnt/backupdrive/tmp

    4.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/tmp

    Now 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.

Exit mobile version