diff --git a/server/plugins-available/backup_plugin.inc.php b/server/plugins-available/backup_plugin.inc.php
index 249ca04b5b353b6e0b6953c162d296a08875e662..b00b8e632c4e0a222594b2196707af8b394e5412 100644
--- a/server/plugins-available/backup_plugin.inc.php
+++ b/server/plugins-available/backup_plugin.inc.php
@@ -128,6 +128,7 @@ class backup_plugin {
 
 				//* Restore a web backup
 				if($action_name == 'backup_restore' && $backup['backup_type'] == 'web') {
+					$app->system->web_folder_protection($web['document_root'], false);
 					if($backup['backup_mode'] == 'userzip') {
 						if(file_exists($backup_dir.'/'.$backup['filename']) && $web['document_root'] != '' && $web['document_root'] != '/' && !stristr($backup_dir.'/'.$backup['filename'], '..') && !stristr($backup_dir.'/'.$backup['filename'], 'etc')) {
 							if(file_exists($web['document_root'].'/backup/'.$backup['filename'])) rename($web['document_root'].'/backup/'.$backup['filename'], $web['document_root'].'/backup/'.$backup['filename'].'.bak');
@@ -148,6 +149,7 @@ class backup_plugin {
 							$app->log('Restored Web backup '.$backup_dir.'/'.$backup['filename'], LOGLEVEL_DEBUG);
 						}
 					}
+					$app->system->web_folder_protection($web['document_root'], true);
 				}
 			} else {
 				$app->log('Backup directory not ready.', LOGLEVEL_DEBUG);