0

I want to use the Backup-SPsite powershell command to backup my SharePoint Enterprise 2013 site collection but want to keep only a week worth of backups

A backup will run everyday Monday to Sunday and then the oldest backups are overwritten, also an email notification to say the backup with successful would be great.

Is this possible?

2 Answers 2

0

Generally yes, but you will need to write a PS script doing all the described work for you instead of just a single command. You can get more useful info about Backup-SPSite command here. Also you can find good examples of usage of Backup-SP* commands here.

0

Yes you can do this using powersehll. Refer this article.

For sending email use powershell command Send-MailMessage. More on this from here

1
  • Why should we create a TimerJob in SharePoint instead of running a powershell script as a scheduled task in this scenario? And if we use a timer job, why not send the email from the SharePoint code? Commented Jan 11, 2015 at 18:01

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.