Archive for SharePoint

PowerShell script to back up a SharePoint 2010 Site Collection with a unique (date/time) filename

This PowerShell script will backup a SharePoint 2010 (Host Header URL) Site Collection to a single .BAK file with a date and time filename.

Replace the following with your own values:
bkupLoc = NTFS share that .BAK file will be written to.
sitecoll = the URL of your site collection (I’m using it for a HHURL site collection).

Add-PsSnapin Microsoft.SharePoint.Powershell
#Backup location
$bkupLoc = “\\server\share\myscbkupfolder\
#Date
$adate =get-date
#Site collection location
$sitecoll = “http://mysitecoll.mydomain.com
#daily filename
$bkupfile = $bkupLoc+”{0:ddMMMyyyyhhmm}”-f$adate+”.bak”
Backup-SPSite -Identity $sitecoll -Path $bkupfile

Advertisements

Leave a Comment

Moving a SharePoint 2010 Host Header Site Collection to a new server in a new domain.

This example describes how to move a SharePoint 2010 Host Header (HHURL) site collection from a server in domaina to a new server in domainb. The example also deals with migrating users within the HHURL site collection from domaina to domainb.

The existing HHURL site collection is http://existing.domaina.com currently on hosta and Content Database is existingDB.
Create a new HHURL site collection on http://mynewsc.mydomainb.com on hostb and Content Database is mynewscDB.
Ensure your DNS record for the new HHURL site collection is mapped correctly i.e. you can get to it from the outside world.
Login to the new site collection and verify.
Backup the existing site collection http://existing.mydomaina.com on hosta to scbackup.bak file using Central Admin > Backup & Restore > Granular Backup > Perform a Site Collection Backup. Read the rest of this entry »

Comments (3)

SharePoint Site Collections and Host Header URLs

If you want to use SharePoint for hosting multiple vanity URLs one option is to use Host Header URLs.

e.g. http://demo1.mydomain.com and http://demo2.mydomain.com , etc……

I used the following software:

Windows 2008 RTM SP2 virtual server, SQL 2008 SP1, WSS 3.0 SP2 for 64bit

Create a Web App for mydomain.com (top level site) on port 80.

Create a site collection on this new Web App, use whatever template you wish.

Read the rest of this entry »

Comments (1)

WSS SP1 64-bit on Windows 2008 & the Adobe PDF iFilter

· Download the PDF icon (select ‘small 17 x 17’) from http://www.adobe.com/misc/linking.html

· Name the 17×17 icon pdfsmall.gif

Read the rest of this entry »

Leave a Comment

Indexing Outlook Message attachments in SharePoint

SharePoint indexing of content within Microsoft Office, Adobe PDF and WordPerfect WPD files when they’re attached to Outlook messages.

The server I used for this MOSS Service Pack 1 + Infrastructure Update.

Read the rest of this entry »

Leave a Comment

SharePoint AdventureWorks Installation

Installing the AdventureWorks SharePoint 2007 demonstration.

Warning ! – Make a full backup copy of your VM after you have all the pre-requisites completed and before you start the AdventureWorks installer, it took three attempts to get mine to complete and fortunately I had backed up before I went ahead with the AdventureWorks install on top of the vanilla MOSS environment.

Read the rest of this entry »

Leave a Comment