• Halloween is coming! To celebrate the occasion, we dusted off a couple of old skins, and even created a brand new one (Pixel).
    To get into the festive spirit, install the Skins extension.
  • The new Python extension is now available. It allows customers to deploy and manage WSGI-based Python applications on their websites directly from Plesk.
  • The Plesk Mobile apps for iOS and Android and the Plesk Mobile Center extension have been deprecated, and are no longer available for new installations. In Plesk Obsidian 18.0.84, the Plesk Mobile Center extension will be removed from servers during the upgrade, and the Plesk Mobile apps will lose their server management features.
  • The Social Login extension has been deprecated and will be removed in Plesk Obsidian 18.0.84. After that, it will no longer be possible to log in to Plesk with a Google, Facebook, GitHub account, or with a passkey. Plesk usernames and passwords, as well as logging in with a WebPros Account, are not affected.

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