Hi in sharepoint 2013 or 2010 by using these following commands we can take back up of site collection:
Open powershell in Run as Admin mode.
Backup-SPSite -Identity <SiteCollectionURL> -Path <BackupFile>
<SiteCollectionURL> your site collection url which you want to back up.
<BackupFile> path where .bak will be created.
For Restore we do:
Restore-SPSite -Identity <SiteCollectionURL> -Path <BackupFile> -Force
Remember Force parameter is absolutely required as you are overwriting one existing site collection.
Open powershell in Run as Admin mode.
Backup-SPSite -Identity <SiteCollectionURL> -Path <BackupFile>
<SiteCollectionURL> your site collection url which you want to back up.
<BackupFile> path where .bak will be created.
For Restore we do:
Restore-SPSite -Identity <SiteCollectionURL> -Path <BackupFile> -Force
Remember Force parameter is absolutely required as you are overwriting one existing site collection.
No comments:
Post a Comment