• Plesk Uservoice will be deprecated by October. Moving forward, all product feature requests and improvement suggestions will be managed through our new platform Plesk Productboard.
    To continue sharing your ideas and feedback, please visit features.plesk.com

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