• Introducing WebPros Cloud - a fully managed infrastructure platform purpose-built to simplify the deployment of WebPros products !  WebPros Cloud enables you to easily deliver WebPros solutions — without the complexity of managing the infrastructure.
    Join the pilot program today!
  • Support for BIND DNS has been removed from Plesk for Windows due to security and maintenance risks.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS.

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