• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • We are looking for U.S.-based freelancer or agency working with SEO or WordPress for a quick 30-min interviews to gather feedback on XOVI, a successful German SEO tool we’re looking to launch in the U.S.
    If you qualify and participate, you’ll receive a $30 Amazon gift card as a thank-you. Please apply here. Thanks for helping shape a better SEO product for agencies!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    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. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

Question Can't take backup of site

carlsson

Basic Pleskian
Server operating system version
Ubuntu 20.04.6 LTS
Plesk version and microupdate number
Version 18.0.59 Update #2
When I try to create a backup of a site with WP Toolkit, it takes a couple of minutes were nothing happens, and then Plesk gives an error. No backup is created. The site itself is quite large.

Looking at memory usage during this time gives as per the attachment. I also got a Swap critical error one of the times i tried.

Should I increase the swap size? How's the best way to do this?



1714114817667.png
 
When I try to create a backup of a site with WP Toolkit, it takes a couple of minutes were nothing happens, and then Plesk gives an error. No backup is created. The site itself is quite large.
Is "No backup is created" to only thing shown in the error message? Also how large is the site?

Are there any relevant log entries in Tools & Settings > Log Browser > Plesk?

Looking at memory usage during this time gives as per the attachment. I also got a Swap critical error one of the times i tried.

Should I increase the swap size? How's the best way to do this?
Plesk recommendeds to have 1,5x of the servers memory as swap space. You have 8 GB of memory, so your recommended swap space would be 4 GB.

I'd suggest asking your server provider help on this. They might be able to this for you or maybe have an detailed article/tutorial available. If not search for any other tutorial to increase your swap for your specific OS (Ubuntu 20.04).
 
Thanks for the input Kaspar!
The site in total is 19GB… Even if that's much you should be able to take a backup, right?
It's a multisite, and I'm not the one that built it, I'm just hosting it. (I could probably remove 18 of those GB but at the moment I just want to have a working copy.)

I changed the Swap size to 4 GB, but that didn't help.
The progress never leaves 0%, being this 5 to 10 minutes:
zero.png

Errors look as follows:
err2.png
err1.png


I*might* have an idea about this; Except the brutal size of this thing, in the wp-config.php file there's a line "DON'T ALLOW EDIT ("TRUE")" which locks the file from any kind of tampering. I still think I should be able to copy it though, but that may have something to do with it?
 
Right, 19 GB is actually quite large. I am not surprised the backup fails. What I suspect is happing is that the backup process times out because it takes a lot of time to compress 19GB of data. The WP backup feature uses (at least from my understanding) just a ZIP archive to compress all files and the database. To be sure if the backup actually failed have a look in the wordpress-backups directory of the home directory of the domain.

What you could do is to try to create a database dump and archive (ZIP) the website files manually. Not as elegant, but better then noting I suppose?

You can use these command to create ZIP archive manually of the httpdocs directory. A database dump can be made with from the database option of the domain in Plesk.
Code:
cd /var/www/vhosts/example.com/httpdocs/
sudo -u <system_user_of_subscription> zip -r /var/www/vhosts/example.com/backup.zip .

Use plesk bin subscription -i example.com | grep "FTP Login" to get the the system user of the subscription, and replace <system_user_of_subscription> in the command example above.

Swap is unrelated btw. But it's always good to have plenty of Swap space :)
 
Followup;
Reducing the content of the site folder (eg logs, four year old backups etc etc) made the backup work.

Thanks for the input!
 
Back
Top