6

I have seen in the past using WordPress and Joomla that it's possible to install an app/module that will revert a site back to a point in time after a number hours or days.

I have a requirement for a SharePoint 2013 training site which we use to train departmental site managers. We want this to return to a stage in time either at a regular interval or on command.

Anyone know of a product or script to do this?

Edit: We cant use backup and restore as due to our environment we loose the Site Result types.

user3271150
  • 157
  • 1
  • 10
  • 2
    You should create and configure the site and then save it as a template, this way you can just create a new site and delete the old one instead. – Christoffer Aug 17 '17 at 08:21

2 Answers2

5

Unfortunately, there is no option like Site Recovery to a specific point in SharePoint. Meanwhile, there are a lot of workarounds to do this.

  1. Save Site as a template.
    • You can save a copy from the current site as a template.
    • Create a new site with this template for training purpose,
    • Once the training session finished, you can delete the used site and create a new one from the main template for the next training session.

Note: the save site as a template is not working with Publishing template and community template, read more at missing save site as a template.

  1. Backup / Export & Restore / Import SharePoint Site.

    • You can also take a backup (Export) at the specific time before the training session.
    • Once the training is finished, you can restore (Import) the backup on the same site to start a new training session with a fresh site.

Note: You can run this operation in daily basis using task scheduler or timer job.

See the details steps of backup & restore site collection - import & export sub site using Central admin or PowerShell

Jammin4CO
  • 1,427
  • 10
  • 24
Mohamed El-Qassas MVP
  • 45,382
  • 9
  • 53
  • 96
3

For SharePoint on-premises I would also argue that database Backup and Restore is a simple and reliable approach.

Another one, that will also work with SharePoint Online, is to provision the training sites using the PnP Provisioning Engine and the PnP PowerShell Commands. Use the Get-PnPProvisioningTemplate cmdlet to create a template of your training site. Then create a pool a new training site collections and apply the template using the Apply-PnPProvisioningTemplate cmdlet. Delete used training sites and take new ones from the pool.

However, the PnP approach may also have limitations depending on the artifacts that you need to provision. It's also not too happy about Publishing sites.

Lars Fastrup
  • 3,150
  • 2
  • 22
  • 29
  • we cant use backup and restore as we have a 2 farm setup and we dont mirror search databases (for various reasons ask Microsoft something to do with PLA), so if we fail over we would have to configure site collection result types. – user3271150 Aug 17 '17 at 09:54
  • Ok then you should definetely consider the PnP path – Lars Fastrup Aug 17 '17 at 12:04