Is it neccessary to have .Bak extension while restoring Sharepoint 2013 site
题
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?
解决方案
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.
其他提示
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.
Your backup is stored in F:\ProductionEnv
so your path should be that.