Академический Документы
Профессиональный Документы
Культура Документы
Module2/Lab1TTFSBackupandRestore
Lab
b 1 T
TFS B
Backu
up an
nd Restoree
Overv
view
Duringtthislab,youw
willusethenewTFSBacckupPlanpowertoolwhichfirstappeearedintheTFS
2010Po
owerToolsin
nSeptember2010.Youw
willinstallthe
ePowerTools,createaTTFSBackupp
planand
executeafullbackupofyourTFSSServer.Opttionally,youandthende
eleteyourTFFSdatabasessand
restoretthemfromthebackups.
System
m Requirrements
Inorderrtocompleteethislabyou
uwillneedthheVisualStu
udio2010RT
TMvirtualmaachinethatiis
publicallyavailablefforyoutodo
ownloadfrom
mtheMicrossoftwebsite..
Exerccises
ThisHan
ndsOnLabccomprisesthefollowingeexercises:
11. InstallinggtheTFS201
10PowerToools
22. CreatingaTFSBacku
upPlan
33. TriggerB
BackupandV
Verify
44. Restoringfrombacku
up
55. CheckTFFSisrestored
d
Estimateedtimetoco
ompletethislab:3035m
minutes.
2010EnhanceALM
MPtyLtd
Page41
Module22/Lab1TFSBackupandR
Restore
TFS2010
0ConfigurattionandAdministration
Exeercisee 1: In
nstallling the Po
ower Tools
Before you begin
YouwillneedtocheecktoseeifyyoualreadyhhavetheSep
ptember2010releaseof theTFS2010
e2.
PowerTToolsinstalledonyoursyystem.Ifyoualreadyhavveitinstalled,youcanskiiptoexercise
IfyouneeedtoinstallthePowerT
Tools,andyoourtrainerd
doesnothavetheinstall fileavailable
e
locally,yyoucandow
wnloadthefilefromtheV
VisualStudio
oGalleryathttp://tinyurl .com/2ufvw
wfh
Task
Loggingontothelab
b
machine
virtualm
Installth
hePowerTools
Deta
ailedSteps
1.
StartthelabbVirtualMach
hineifitisnot alreadystartted
2.
LoginasAdm
ministratoriffyouhavenotalreadydonneso.Thepasssword
isP2ssw0rdd
1. InstallthePoowerToolsbyydoubleclickiingtheTFPT.M
MSIfile.
dialogisdisplaayed,clickRun
2. IftheOpennFileSecurittyWarningd
3. OntheWelccomescreen,clickNext
4. ClickIaccepptthetermsiinthelicense agreement andclickNexxt
xt
5. OntheSetuppTypepage,clickCustom andclickNext
nlyrequiredP owertoolisthe
6. Forthepurpposeofthisexxercise,theon
TFSBackuppPlan.
ToallowyooutoexplorettheotherPow
werTools,leavvetheotherP
Power
ToolsselecttedasshownaboveandclickNext.
7. ClickInstall
Allowapproxximately5min
nutesforthein
nstallation
OntheSetuppCompletedSuccessfullyp
page,clickFiniish
8.
Page42
201 0EnhanceALLMPtyLtd
TFS20100ConfigurationandAdministration
Module2/Lab1TTFSBackupandRestore
Exeercisee 2: Creating a T
TFS B
Backu
up Plaan
Inthisexxerciseyouw
willcreateafullnightlybbackuptobaackupallTFSdatabasesaaswellasthe
e
SharePo
ointandSQLReportingSe
ervicesdatabbases.Youw
willalsoacceptthedefauultschedulew
which
willexeccuteyourbackupeverym
morningat22am.
Task
LabPrerrequisiteCrreate
SharedFFolder
Deta
ailedSteps
1. CreateaneewfolderontheC:driveinyourvirtuualmachine
namedTFFS2010_Backkups
2. Sharedthe folderasTFS2010_Backups
3. Ensurethe NTAUTHOR
RITY\LOCALS
SERVICEaccoounthaveFu
ull
Controlin boththeShaarePermissionsandthe NTFSpermisssions
forthefoldder.
VHDISSUE
WORKAROUND
Ifyo
ouareusingtthepublicalllydownloada
ableVHDfroomMicrosoftt,you
willneedtocom
mpletethefo
ollowingstep
pstoworkarrounda
conffigurationisssuewiththevirtualmach
hine.
esConfigurattionManageer
1. StartReporrtingService
Start|All Programs|M
MicrosoftSQ
QLServer20008|Configuration
Tools|Re portingServvicesConfigurationManaager
2. EnterthefoollowingdetailsthenclickConnect
Servernam
me:WINGS9
9GMUJITS8
ReportSerrverInstance
e:MSSQLSER
RVER
URL
3. ClickReporrtManagerU
4. ClickApplyy
5. ClickExit
Creatingganightlyfull
plan
backupp
1. StarttheTFFSAdministrrationConso
ole
Start|All Programs|M
MicrosoftTe
eamFoundattionServer2
2010|
TeamFounndationAdm
ministrationC
Console
2. SelecttheTTeamFoundationBackupsnodeinthheleftpanell
3. ClickCreateeBackupPla
aninthemaiincontentpaanel.
NOTEItm
mighttakeafewmomen
ntstostartthhewizardafter
youclickthhis.
2010EnhanceALM
MPtyLtd
Page43
Module22/Lab1TFSBackupandR
Restore
TFS2010
0ConfigurattionandAdministration
TheBackup PlanWizard
dstarts
4. ClickNext
PlanInitialC
ConfigurationnSettingssccreen,
5. IntheProvvideBackupP
entertheN
NetworkBacckupPath.T
ThisshouldbbeaUNCpath
wherethe backupfilessshouldbep
placed.
Forthislabb,entertheffollowingpath
\\WINGS99GMUJITS8\\TFS2010_Ba
ackups
Youcanalssospecifyho
owlongthebackupsshoouldbekeptfor.
Thedefaulltis30daysandyoucan setavaluebbetween30and
999days.
6. ClickAdvanncedOptionss.Noticeyou
ucanspecifyythefiles
extensionssforthebackupfiles.
7. ClickNext
page,accept thedefaultvvalues
8. OntheSeleectExternalDatabasesp
tobackup boththeReportingdatabasesandthheSharePoin
nt
databases inthisplan. ClickNext
9. OntheProvvideTaskScchedulerAccountInform
mationpage,
accepttheeNTAUTHOR
RITY\LOCALSERVICEsysstemaccountand
clickNext
urTFSServerr,youcanprrovide
10. Ifemailhassbeenconfigguredonyou
anemaila ddresstosendbackupfa
ailurenotificcationsto.Ifemail
hasnotbeeenconfigure
ed,chooseN
Noemailalerrts.ClickNexxt
11. Acceptthe defaultNigh
htlyFullSche
edule.Thisw
willscheduleafull
backupat 2ameverym
morning.You
umaywishtooclickAdvan
nced
SchedulesOptionstosseewhatoth
heroptionsaareavailable
e.
Page44
201 0EnhanceALLMPtyLtd
TFS20100ConfigurationandAdministration
Module2/Lab1TTFSBackupandRestore
ClickNext..
12. Reviewtheesettingsand
dcorrectanyyvaluestheyyarenotcorrect.
esettings.
ClickNext toverifythe
13. Oncetheveerificationsttepshavecompletedanddall5stepssshow
Passed,cclickonCrea
atePlan.
ncreatedand
dyoushoulddseefourste
eps
14. Thebackuppplanisthen
shownasCCompletewhentheplan
nhasbeencrreated.
15. ClickNext
16. ClickClose tofinishthe
ewizard
2010EnhanceALM
MPtyLtd
Page45
Module22/Lab1TFSBackupandR
Restore
TFS2010
0ConfigurattionandAdministration
Deta
ailedSteps
1. StarttheTFFSAdministrrationConso
ole
Start|All Programs|M
MicrosoftTe
eamFoundattionServer2
2010|
TeamFounndationAdm
ministrationC
Console
2. SelecttheTTeamFoundationBackupsnodeinthheleftpanell
3. ClickTakeFFullBackupN
Nowinthem
maincontenttpanel.
4. OncethebaackupreporttsSuccessfu
ulcompletioon,clickClosse
5. UsingWinddowsExplore
er,openthefolderyoucrreatedtosto
ore
thebackuppfilesin.ThisshouldbeC:\TFS2010__Backups
Youshouldseeaabunchoffileswithbakandtrn extensionsiinthe
folderassuminggyoudidnotchangethesseextensiondefaultswh
hen
youcreatedthe TFSBackupPlan.
Page46
201 0EnhanceALLMPtyLtd
TFS20100ConfigurationandAdministration
6. CloseWinddowsExplore
er
Module2/Lab1TTFSBackupandRestore
2010EnhanceALM
MPtyLtd
Page47
Module22/Lab1TFSBackupandR
Restore
TFS2010
0ConfigurattionandAdministration
Exeercisee 4: R
Restorring ffrom Backkup
NOTEE:Thise
exercise
eisoptio
onal.
Inthisexxercise,wew
willdeleteth
heTFSSQLD
Databasesandrestorethe
emfromtheebackupcrea
atedin
theprevviousexercises.
WA
ARNING
GREADTHISFFIRST
Inthisexerci seyouwilld
deleteallTFS
Sdatabasesfforthepurpo
oseof
restoringthem
mfromthebackupyoucrreatedintheepreviousexxercise.
Thissexercisesh ouldONLYb
bedoneonclassroombaased,nonpro
oduction
systems.
Task
Deta
ailedSteps
StarttheeRestoreW
Wizard
1. StarttheBaackupPlanR
RestoreWiza
ard
andconfirmbackup
pset
Start|All Programs|M
MicrosoftTe
eamFoundattionServer2
2010
isavailaable
PowerToools|TeamFo
oundationSe
erverBackuppPlan|Backkup
PlanRestooreWizard
wizardstarts,clickNext
2. Oncethew
es.Thisshouuldbe\\WIN
N
3. Entertheloocationofthebackupfile
GS9GMUJ ITS8\TFS201
10_Backups
4. ClickListBaackupsandsselecttheentryforthebbackupyou
completeddinthepreviousentry.
Restorewizardonthescrreenandcom
mpletethen
next
5. LeavetheR
sectionto deletetheSSQLdatabase
essowecan thenrestore
e
them.
DeleteeexistingTFS
databassessowecan
n
restorethem
1. StartSQLM
ManagementtStudio
Start|All Programs|M
MicrosoftSQ
QLServer20008|SQL
ManagemeentStudio
2. Enterthefoollowingvalu
uesandclickConnect
ServerTyppe:Database
eEngine
Servernam
me:WINGS9
9GMUJITS8
Page48
201 0EnhanceALLMPtyLtd
TFS20100ConfigurationandAdministration
Module2/Lab1TTFSBackupandRestore
Authenticaation:Windo
owsAuthenttication
3. ExpandtheeDatabasesnode
erverdataba
aseandselecctDeleteintthe
4. RightclickttheReportSe
contextmeenu.
5. IntheDeletteObjectdiaalog,checktheboxlabeleedCloseExxisting
connectionns
6. ClickOK
7. Repeatstepps4to6foreachoftheffollowingdaatabases
ReeportServerTTempDB
Tfss_Configurattion
Tfss_DefaultCollection
Tfss_Warehousse
W SS_AdminCo
ontent
W SS_Config
W SS_Content
8. CloseSQLM
Managemen
ntStudio
ContinuewiththeTTeam
FoundattionServer
RestoreWizard
You
ushouldcurrrentlyhavettheTFSResto
oreWizardoonthescreen
nwith
the
eSelectBackkupSetspage
evisibleandthebackup setyoucrea
ated
earrlierselectedd.
1. ClickNext
erInstancespage,accepttthedefaulttof
1. OntheSeleectSQLServe
WINGS9G
GMUJITS8foreachofthe
eDatabases andclickNext
nontheconffirmationpaggeandthenclick
2. Reviewtheeinformation
2010EnhanceALM
MPtyLtd
Page49
Module22/Lab1TFSBackupandR
Restore
TFS2010
0ConfigurattionandAdministration
Nexttoveerifythesettiings
3. OncetheR eadinessChe
eckshaveco
ompletedanddpassed,clickthe
Restorebuutton
4. Oncethereestoreproce
esshascompletedandit showstheth
hree
stepsand beingsuccesssfullycomplete,clickNeext
5. TheReview
wtheResultsspageshouldbeshownw
withabiggrreen
Successicoon.
6. Notethefoollowinginformationthattisdisplayeddonthelastpage
oftheResttoreWizard..
Youmay needtopurrgetheversioncontrolfiilecacheonall
oxyserverstthatservice theTFSinstance
TFSATsanndallTFSpro
priortopuuttingtheTP
PCbackonlin
ne.Formoreeinformation,see
thisKBartticlehttp://ssupport.micrrosoft.com/??kbid=20257
763
Page50
201 0EnhanceALLMPtyLtd
TFS20100ConfigurationandAdministration
Module2/Lab1TTFSBackupandRestore
Exeercisee 5: Checking T
TFS is resto
ored
NOTEE:Thise
exercise
eisoptio
onal.
Ifyouco
ompletedexeercise4,you
ushouldcom
mpletethisexxercisetoensurethebacckuphasbee
en
successfful.
Task
StartVissualStudioaand
reconneecttothe
restored
dTFSServer
Deta
ailedSteps
1. StarttheViisualStudio2010
Start|All Programs|M
MicrosoftVisualStudio22010|Micro
osoft
VisualStuddio2010
2. SelectConnnecttoTeam
mFoundation
nServerfrom
mtheTeamdrop
downmennu
3. Selectwings9mgujits8
8fromthelistofTFSServvers
4. SelectatleaastoneTeam
mProjectandclickConneect
5. EnsurethatttheTeamP
Projectappea
arsintheTeaamExplorer
windowanndmakesure
eeachofthe
enodesappeearscorrectly
underthe TeamProjecctnode.
6. CloseVisuaalStudio2010
2010EnhanceALM
MPtyLtd
Page51