Plesk change backup Location

Plesk change backup Location

In many cases, some of my acquaintances asked me how to change Odin Plesk backup default location. Today I’ll explain for the Linux based versions.

Many times WebHost servers owners running Plesk from Odin add and mount an extra hard drive or logical volume to their servers to use as a backup storage repository.

So far so good. Adding extra storage to any Linux based server is relatively easy and I won’t cover that aspect at this moment.

Where most of the doubts rise and often I am questioned about them is how to change Plesk default backup Location. It’s quite easy. I’ll explain all the steps needed:

 

STEP 1:

Find the psa config file on your system. It should be present on:

/etc/psa/psa.conf

 

STEP 2:

Find the Variable DUMP_D and DUMP_TMP_D

You can easily find it by running the command ( as an example ):

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

and you may get an output similar to this one;

DUMP_D /var/lib/psa/dumps

 

STEP 3:

Now all you have to do is use your favourite text editor and change the path on that variable. For example:

DUMP_D /volume/plesk_backups_folder_created
DUMP_TMP_D /volume/plesk_backups_temp_folder_created

STEP 4:

Don’t forget to change the ownership of that directory on your system so Plesk can use it:

# chown psaadm.psaadm /plesk_backups_folder_created

 

STEP 5:

Now all you have to do for your Plesk server start using this path as default backup destination is to restart the service:

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

Enjoy!

 

Leave a Reply

Your email address will not be published. Required fields are marked *

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