• 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 How backup restore works?

bulent

Regular Pleskian
Hello,
I was thinking how backup restore functionality is working. What I mean:
If I make a backup of the entire domain where I have files: A, B, C, D, E and after the backup X, Y, Z file is added to the domain folder. In some later time if I decide to restore the backup with ABCDE files, will everything after that backup will be removed (XYZ files) Is restore operation first removes everything from domain and then restores files from the archive?
 
Yes it cleans everything and then rebuilds for the website.
I believe I noticed it doesn't do so for mail.
 
That will need some testing, because I've seen the exact opposite. When we restore something for a customer we first manually remove the content of the document root directory and sub directories, because in some previous restores, existing files were overwritten, but additional files X, Y, Z were not deleted but left intact. Maybe there was a change from one version to another?
 
It wouldn't surprise me if things were sometimes different. Plesk never used to mess with the filedates and at a certain time they did.
I believe they now sorted that problem (EDIT: no they didn't(. The behaviour I described I noticed on Onyx. Never did much restoring in the past.

Maybe I have some opportunity to confirm my thoughts on that tomorrow...

EDIT:

I wrote a special script for it, but that wasn't necessary as it didn't behave like I think it did.
Files that were added since the backup were not deleted and there was no rebuilding....
I tested it on 17.8.6
I thought I saw this rebuilding in the past and have taken that knowledge into account ever since...
A mistake so it now seems.

So.... One should remove folders before doing a restore if you really want to get rid of some stuff.
@Peter Debik answer is the correct one.

EDIT:


And it gets worse....
The restore bug is not fixed yet....
All the dates of the files have been changed to today's.... Grrrrrrrrrrrr....

Code:
155 Nov  3 00:13 test.php

Luckily I still have these files somewhere else with their original timestamp.
I did test on a folder of an obsolete website, but still....

PS

I may have seen this behaviour during a migration....

Would need to test for that, but I can remember losing a website because I used the migration tool to migrate the mail to another server where only the website of that same domain was running.

I wanted the mail and website for a specific domain back together again as LetsEncrypt needs a website to generate certificates for webmail. A mail-only site is not supported.That client was using webmail a lot and I wanted it to be secure. Mail and Website needed to be together on 1 server for that

I expected it to merge these 2 as I told the migration tool to only migrate the mail....
It did NOT merge. It destroyed the website on the target and this resulted in a lost website.

I then needed to restore the site by using the back-up tool.
This resulted in a filestructure with all filedates set to the moment of restoration.

That was indeed a day I was cursing on Plesk (and myself for assuming too much).
 
Last edited:
Yepp,
I made some tests also and the files after backup were there after restore operation.
Now another problem is bugging me. What is the situation with databases? If I have tables created after backup, will they remain after restore operation?
Also I think this with the files is not a good idea. If there is a virus script, it will remain there even after restore of previous archive.
I my opinion Plesk Team shoud consider backup/restore operation script.
 
Back
Top