How to find and change default server backup repository?

Refers to:

  • Plesk for Linux

Created:

2016-11-16 12:41:29 UTC

Modified:

2017-02-22 09:53:10 UTC

4

Was this article helpful?


Have more questions?

Submit a request

How to find and change default server backup repository?

Question

Where is the server backup repository located and how to change it?

Answer

The root backup directory is stored in the file /etc/psa/psa.conf and is set by the variable DUMP_D :

    # cat /etc/psa/psa.conf | grep -w DUMP_D
DUMP_D /var/lib/psa/dumps

This directory contains server backups, backups of resellers, clients, domains, and daily MySQL dumps.
Object backups are placed according to their ownership.

To change default server backup repository follow the steps below:

  1. Create a directory for server backups, for example:

    # mkdir /plesk_backups
  2. Open /etc/psa/psa.conf in your favorite text editor;

  3. Change the value of DUMP_D to the one created in step 1: /plesk_backups ;

    # cat /etc/psa/psa.conf | grep -w DUMP_D
    DUMP_D /plesk_backups
  4. Set correct ownership to directory /plesk_backups :

    # chown psaadm.psaadm /plesk_backups
  5. Restart the sw-cp-server service:

    # /etc/init.d/sw-cp-server restart

Now backups will be stored in directory /plesk_backups .

For information regarding location of backup repository in Plesk for Windows, check KB article #213395669

Have more questions? Submit a request
Please sign in to leave a comment.