• We value your experience with Plesk during 2025
    Plesk strives to perform even better in 2026. To help us improve further, please answer a few questions about your experience with Plesk Obsidian 2025.
    Please take this short survey:

    https://survey.webpros.com/
  • On Plesk for Linux mod_status is disabled on upgrades to improve Apache security.
    This is a one-time operation that occurs during an upgrade. You can manually enable mod_status later if needed.

Changing domain backup location

B

bplinson

Guest
Is there anyway to change the backup location for the domain backups?

By default Plesk puts the backups in the /var/lib/dumps/domainname directories but my var partion is not begi enough to hold more than one back up.

I have a second harddrive that I would like to have the backups stored on.

Currently I run a script after every backup that moves the backups to the second harddrive but it would be nice to have it go there automatically.

Also, once I move the backup files they non longer show up in Plesk under the backup area.
 
Hi,

A simple solution is to make a symbolic link to another partition (here /home/xxx).

as root

cd /var/lib/psa

cp -pr dumps /home/xxx/dumps

/etc/init.d/psa stop

mv dumps dumps.ori (to delete later)

ln -s /home/xxx/dumps dumps

cd /home/xxx

chown root:root . (dot)

chmod 755 . (dot)

/etc/init.d/psa start

That's it... :)


Another solution is perhaps to change the DUMPS_D variable in /etc/psa/psa.conf (not tested).

ZX81Pro
 
Thanks! I will give this a try.

Now if it does not work how do I remove the symbolic link.
 
Simple :

Syntax : rm symbolic link - more info : man rm

cd /var/lib/psa
rm dumps (remove the symbolic link !)
mv dumps.ori dumps (restore the dumps)

also stop en start psa...
 
There is DUMP_D (or something like this) parameter in /etc/psa/psa.conf which points to the backup directory.
 
Back
Top