Domanda

As we know there are 2 options to take backup of a site collection.

Central Administration and Powershell

If we take Backup using central administration we first have to create one folder in any of the drive of that server then we have to give that path, so after taking backup we find all the backup files in that folder

just Imagine

I have taken backup using CA and created one folder in D: as backup

and in this folder I will be having all the .bak files.

now while Restoring I'm using Powershell and getting access to the path denied error.

Powershell command that I'm using is

Restore-SPSite -Identity http://10.0.7.11:333/ -path F:\backup-Force

then I'm getting access to the path error.

May I know why I'm getting this and how to resolve?

kindly go through the image to find the that are with .bak extensions.

È stato utile?

Soluzione

You have to give the full path to the backup files.

Restore-SPSite -Identity http://10.0.7.11:333/ -path F:\backup-Force\backup.bak

You can read more about it here Backup-SPsite

Path: Required,System.String, Specifies a valid path to the location of the backup. For example, C:\Backup\site_name.bak.

It should be same in both Backup and Restore method.

Altri suggerimenti

yes it is needed to have a specific extension say here ".bak" but it is not needed to be only that. pls refer the below article from the form.

I have tried it with .dat file as well and it worked fine. but make sure you give the completer path to the file location and apply "-force" command to overwrite the existing site collection.

https://social.technet.microsoft.com/Forums/office/en-US/9760e077-2c66-4f50-bdb8-c0200ae126a3/what-is-the-difference-between-cab-dat-and-bak-files?forum=sharepointadminlegacy

Your backup is stored in F:\ProductionEnv so your path should be that.

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a sharepoint.stackexchange
scroll top