Backup via SSHFS
We have huge amounts of Backup Data (currently around 450gb per file). The whole process using FTP takes around ~ 13 hours to complete. Trying to restore something is a big bottleneck for us. Restoring from FTP is ****, and we searched for alternatives.
We decided to give SSHFS a try by mounting /var/lib/psa/dumps to the remote Server and disconfigured the FTP Settings. The result is annoying. The Backup now takes around 2,5 hours, the Plesk Backend is really fast now and local space is not consumed anymore!
So i suggest you to give SSHFS a try. It is like NFS but really easy. You can take a look at CURLFTPFS too! It can be used to mount external FTP Servers, but we decided to use SSHFS because of its simplicity...
It is easy to mount /var/lib/psa/dumps using the following command:
cat ~/.PASSWORDFORREMOTESERVER | sshfs -o passwordstdin,uid=id -u psaadm
,gid=getent group psaadm | cut -d: -f3
,Ciphers=arcfour,Compression=no,kernel_cache,workaround=rename USER@HOST:/DIRECTORY /var/lib/psa/dumps
You only have to store the password for the remote Server in an hidden file, e.g "/root/.backupserver" and pipe it to sshfs using the option -o passwordstdin. On the remote Server you have to enable the Ciphers arcfour in your sshd_config to make it work. This will make the whole connection faster.
After mounting the folder you can disable the FTP Settings in Plesk and therefor he writes to the local folder...
With using SSHFS the Backups are now created within 2,5 hours!
Give it a try! :-)
Thank you for your input! We will consider this functionality in upcoming releases if it will be popular.
Everyone, please continue voting for this feature if you consider it important.
— AY