How to change the location for Plesk backup files on a Linux server

How to change the location for Plesk backup files on a Linux server

By default, all backup data is stored in the directory /var/lib/psa/dumps (/var/lib/psa/dumps/clients/username/domains/).

Here step by step to change the default backup location :

1.Login into your linux box
2.Create a new directory for backups location. In these example, we will use /backups
[root@sg03 ~]# mkdir /backups
3.Set necessary ownership for the created directory:
[root@sg03 ~]# chown psaadm:psaadm /backups
4.Modify the backup location in the Plesk configuration file /etc/psa/psa.conf
[root@sg03 ~]# nano /etc/psa/psa.conf
And then search "Backups directory" or "DUMP_D /var/lib/psa/dumps" (without quote) change the value of DUMP_D to the created directory from step 2, like this :
#Backups directory
DUMP_D /backups
Save the changes and close the file.
5.Move all backup data and the hidden .discovered directory from the old location to new:
[root@sg03 ~]# mv /var/lib/psa/dumps/* /backups/
[root@sg03 ~]# mv /var/lib/psa/dumps/.discovered/ /backups/
6.Restart the "sw-cp-server" service:
[root@sg03 ~]# systemctl restart sw-cp-server

Now all backup files will be stored in the new directory /backups.

Be the first to comment

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.