[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

SharePoint 2010 farm backups retention policy

Posted on 2012-09-17
3
Medium Priority
?
555 Views
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
$DIRECTORY = "\\SERVER\FOLDER"
Add-PsSpanin Microsoft.SharePoint.Powershell
Backup-SPFarm -Directory $DIRECTORY -Force -BackupMethod full

differential ps1 script
$DIRECTORY = "\\SERVER\FOLDER"
Add-PsSpanin Microsoft.SharePoint.Powershell
Backup-SPFarm -Directory $DIRECTORY -Force -BackupMethod differential
0
Comment
Question by:gopher_49
  • 2
3 Comments
 
LVL 38

Accepted Solution

by:
Justin Smith earned 1500 total points
ID: 38407818
0
 

Author Comment

by:gopher_49
ID: 38431249
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 http://support.microsoft.com/kb/968929 and then be able to run v2 scripts?


http://gallery.technet.microsoft.com/office/9b99c435-8831-4c9e-a70b-1f13158ef22a
0
 
LVL 38

Expert Comment

by:Justin Smith
ID: 38432454
Yes.
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Note:  There are two main ways to deploy InfoPath forms:  Server-side and directly through the SharePoint site.  Deploying a server-side InfoPath form means the form is approved by the Administrator, thus allowing greater functionality in the form. …
Pimping Sharepoint 2007 without Server-Side Code Part 1 One of my biggest frustrations with Sharepoint 2007 in the corporate world is that while good-intentioned managers lock down the more interesting capabilities of Sharepoint programming in…
This Micro Tutorial will teach you how to add a cinematic look to any film or video out there. There are very few simple steps that you will follow to do so. This will be demonstrated using Adobe Premiere Pro CS6.
As many of you are aware about Scanpst.exe utility which is owned by Microsoft itself to repair inaccessible or damaged PST files, but the question is do you really think Scanpst.exe is capable to repair all sorts of PST related corruption issues?
Suggested Courses

872 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