SharePoint 2010 farm backups retention policy

Posted on 2012-09-17
Last Modified: 2012-09-30
I have a ps1 script that runs before my offsite backups to creates a full backup on Friday and a differential on the other days.  I have two batchfiles and two ps1 scripts.  One with the 'full' syntax and another with the 'differential' syntax.  Since they save to the same folder the script seems to be smart enought to scan for a full and to allow a differential to be made.  Below is the syntax I'm using.  How can I specify how many copies to keep of each backup set?

full ps1 script
Add-PsSpanin Microsoft.SharePoint.Powershell
Backup-SPFarm -Directory $DIRECTORY -Force -BackupMethod full

differential ps1 script
Add-PsSpanin Microsoft.SharePoint.Powershell
Backup-SPFarm -Directory $DIRECTORY -Force -BackupMethod differential
Question by:gopher_49
    LVL 38

    Accepted Solution


    Author Comment

    I found this link below.. I got it working on two different SharePoint 2010 farms that are running Windows 2008 R2, however, it says it's also compatible with SharePoint 2007 and 3, however, it seems that it's commands do not support PowerShell v1.0 and my SharePoint 2007 server is on a Windows 2003 64bit server.  Can't I simply download / install and then be able to run v2 scripts?
    LVL 38

    Expert Comment


    Featured Post

    Looking for New Ways to Advertise?

    Engage with tech pros in our community with native advertising, as a Vendor Expert, and more.

    Join & Write a Comment

    I used to be SharePoint evangelist in our company, so my Outlook always full of questions about how to do this, or where I can find that. One day I found such an email with the following question: "how to attach 3-State workflow (one of the workflow…
    I thought I'd write this up for anyone who has a request to create an anonymous whistle-blower-type submission form created using SharePoint 2010 (this would probably work the same for 2013). It's not 100% fool-proof but it's as close as you can get…
    It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
    Hi everyone! This is Experts Exchange customer support.  This quick video will show you how to change your primary email address.  If you have any questions, then please Write a Comment below!

    733 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    19 Experts available now in Live!

    Get 1:1 Help Now