1 / 30

Mentés - Visszaállítás

Mentés - Visszaállítás. Gömöri Zoltán suf@freemail.hu Informatikai igazgató Láng Vagyonkezelő ZRt. Tartalom. Bevezető Alapok Tévhitek Mentések tervezése Elvégzendő feladatok/rendelkezésre álló eszközök NTBACKUP Az NTBackup tulajdonságai Az NTBackup automatizálása

HarrisCezar
Download Presentation

Mentés - Visszaállítás

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Mentés - Visszaállítás Gömöri Zoltán suf@freemail.hu Informatikai igazgató Láng Vagyonkezelő ZRt.

  2. Tartalom • Bevezető • Alapok • Tévhitek • Mentések tervezése • Elvégzendő feladatok/rendelkezésre álló eszközök • NTBACKUP • Az NTBackup tulajdonságai • Az NTBackup automatizálása • Windows szolgáltatások és alkalmazások mentése • DHCP, Certificate Authority, RIS • Exchange Server, SQL Server, Virtual Server

  3. Tévhiedelmek • Van redundáns lemez alrendszerem: nem kell mentenem • Van mentésem: biztonságban vagyok

  4. Redundáns lemezek hiányosságai • Adatok véletlen vagy szándékos törlése • Szoftverhibából adódó adatsérülés • Külső támadás (cracker, vírus stb.) • Katasztrofális hardversérülés

  5. Mentési ablak Visszaállítási idő Mit mentsünk, milyen rendszerességgel? Mentések tárolása Adathordozó típusok Szalag Merevlemez Optikai adathordozó Adathordozó választás szempontjai Kapacitás Sebesség Visszakereshetőség Megbízhatóság Tárolhatóság Fajlagos költség Újrahasznosíthatóság Tervezési szempontok

  6. Mit mentünk? • Windows Server • Windows Server beépített szolgáltatásai • DHCP • Certificate Authority • RIS • Microsoft Alkalmazások • Exchange Server • SQL Server • Virtual Server

  7. Mivel mentünk? • Ntbackup • RSM • Exmerge • Certutil • Netsh • Reg • scriptek

  8. NTBackup

  9. NTBackup tulajdonságai 1. • Amire képes • Kiválasztott fájlok és mappák mentése/visszatöltése • Másolat készítése a rendszerállapotról (System State) • Automated System Recovery (ASR) • Remote Storage és felcsatolt lemezek mentése • Log fájl készítése a mentési műveletről • Rendszerpartíció, boot partíció és a rendszerindításhoz szükséges fájlok mentése • Mentések időzítése • Médiakezelés • On-Line adatbázison alapuló Microsoft termékek adatainak mentése

  10. NTBackup tulajdonságai 2. • Ami hiányzik • Nem Microsoft termékek adatbázis alapú mentése • A mentési listák egyszerű szerkeszthetősége • E-mail értesítő küldése a mentésről • Exchange adatbázis elemszintű mentése

  11. Mentés típusai • Copy • Daily • Differential • Incremental • Normal

  12. Mit? Selection fájl (bks) Unicode fájl Mentendő elérési útvonalak /exclude kapcsoló Egyszerű példa: c:\ c:\recycler /exclude d:\ d:\recycler /exclude Hogyan? NTBackup paraméterezése ntbackup backup "@selection fájl neve" /F "célfájl neve" /L:s /M normal Mikor? SchTasks paraméterezése NTBackup parancsorból NTBackup parancssor: http://technet2.microsoft.com/WindowsServer/f/?en/library/2b8c47c9-a769-46d2-9e26-f4d16f0261f81033.mspx SchTasks parancssor: http://technet2.microsoft.com/WindowsServer/f/?en/library/1d284efa-9d11-46c2-a8ef-87b297c68d171033.mspx

  13. NTBackup Problémák • Tömörített kötet • Selection fájl hiba http://www.hhdsoftware.com/Family/hex-editor.html

  14. NTBackup automatizálása scriptel • Hiányosságok: • E-mail küldés • A különböző helyeken található logok összefogása • Használható script osztályok: • Backup • Mail • EventLog

  15. Mentsünk egyszerűen scriptből! demó

  16. WMI DCOM Hiba

  17. DHCP • VSS alapú mentés ntbackup-al • Export/Import netsh-val: • Export: netsh dhcp server \\szervernév export fájlnév all • Import: netsh dhcp server \\szervernév import fájlnév all http://support.microsoft.com/kb/281626

  18. Certificate Authority • Mentés ntbackup-al • Interaktív mentés a regedit és a CA MMC snap-in használatával • Automatizált mentés a reg és a certutil használatával • Mentés: reg export HKLM\SYSTEM\CurrentControlSet\Services\CertSvc\Configuration fájlnév certutil –privatekey –p jelszó –backup könyvtár KeepLog • Visszaállítás: certutil –privatekey –p jelszó –restore könyvtár reg import fájlnév net stop certsvc net start certsvc http://support.microsoft.com/kb/298138

  19. RIS • Single Instance Store • Telepítés adatvisszatöltés előtt How to restore a volume that is managed by Single Instance Storage http://support.microsoft.com/kb/263027

  20. Exchange Server • Store szintű mentés (ntbackup, RSG) • Automatizálás .bks fájlal, a /IS, /DS nem használható: • JET Szervernév\Microsoft Information Store\Storage Group név\ • Ütközés a System State-el: • http://support.microsoft.com/kb/820272 • Dumpster • Elemszintű mentés (Exmerge)

  21. Dumpster - Exchange • A megőrzési időtartam az Exchange System Managerben állítható

  22. Dumpster - Outlook • Hogyan tudunk hozzáférni? • Hogyan tudjuk bármelyik mappában használni? http://office.microsoft.com/en-us/assistance/HA011165281033.aspx

  23. Exmerge • Parancssor: exmerge.exe -B -F Ini fájl neve • exmerge.ini: [EXMERGE] MergeAction = 0 SourceServerName = Forrás Szerver Neve FoldersProcessed = 2 LogFileName = Log Fájl Neve LoggingLevel = 2 DataDirectoryName = Cél Könyvtár CopyDeletedItemsFromDumpster = 1 • Exmerge letöltés: http://www.microsoft.com/downloads/details.aspx?FamilyID=429163ec-dcdf-47dc-96da-1c12d67327d5&DisplayLang=en

  24. VSS alapú mentés Beépített lehetőségek BACKUP, RESTORE SQL parancsok Mentés típusai Full Differential Transaction Log Partial (2005) Copy-Only (2005) Recovery modellek Full Bulk logged Simple Rendszer adatbázisok master msdb, distribution, model tempdb SQL Server • Backing up and Restoring Databases (SQL Server 2005): • http://msdn2.microsoft.com/en-us/library/ms187048.aspx

  25. SQL Server (script) <?xml version="1.0" encoding="utf-8" ?> <package xmlns="http://schemas.microsoft.com/WindowsScriptHost"> <job> <script language="JScript" src="Mail.js"/> <script language="JScript" src="EventLog.js" /> <script language="JScript" src="MsSql.js" /> <script language="JScript"> var mail = new Mail(); var el = new EventLog(); var mssql = new MsSql("Provider='sqloledb';Data Source='SQLServer';" + "Initial Catalog='master';Integrated Security='SSPI'"); mail.MailServer = "mail.test.local"; mail.From = "SqlBackup@test.local"; mail.To = "administrator@test.local"; mail.Subject = "Test Backup"; mssql.BackupType = sqlBackupTypeFull; mssql.Prefix = "c:\\backup\\20060921.test.sql."; mssql.Postfix = ".bkf"; mssql.BackupAll(); mssql.AttachLog(mail); el.AttachLog(mail); mail.Send(); </script> </job> </package>

  26. Virtual Server • Mentési lehetőségek • A VSS hiánya • Mentési folyamat • Állapot mentés / leállítás • Fájlok másolása • Állapot visszaállítás / elindítás • Script

  27. Virtual Server (script) <?xml version="1.0" encoding="utf-8" ?> <package xmlns="http://schemas.microsoft.com/WindowsScriptHost"> <job> <script language="JScript" src="Mail.js"/> <script language="JScript" src="EventLog.js" /> <script language="JScript" src="VSBackup.js" /> <script language="JScript"> var mail = new Mail(); var el = new EventLog(elLogFileApplication + elLogFileSystem + elLogFileVirtualServer); var vs = new VSBackup(); mail.MailServer = "mail.test.local"; mail.From = "VSBackup@test.local"; mail.To = "administrator@test.local"; mail.Subject = "Test Backup"; vs.BackupPath = "c:\\backup\\20060921.VS"; vs.BackupAll(); vs.AttachLog(mail); el.AttachLog(mail); mail.Send(); </script> </job> </package>

  28. Forrásanyagok – Letöltések 1. • Backup operation fails when you back up Exchange Server 2003 databases and System State Information at the same time http://support.microsoft.com/kb/820272 • How to move a Windows installation to different hardware http://support.microsoft.com/kb/249694 • How to use command line parameters with the Ntbackup command in Windows Server 2003 http://support.microsoft.com/kb/814583 • Technical Overview of Windows Server 2003 Storage Management http://www.microsoft.com/windowsserver2003/techinfo/overview/storage.mspx • Technical Overview of Windows Server 2003 File Services http://www.microsoft.com/windowsserver2003/techinfo/overview/file.mspx • How to use the Netsh utility to export and import DHCP scopes http://support.microsoft.com/kb/281626 • How to move a certification authority to another server http://support.microsoft.com/kb/298138 • How To Create a Metabase Backup by Using IIS 6.0 in Windows Server 2003 http://support.microsoft.com/kb/324277 • How to restore a volume that is managed by Single Instance Storage http://support.microsoft.com/kb/263027

  29. Forrásanyagok – Letöltések 2. • Ntbackup command line http://technet2.microsoft.com/WindowsServer/f/?en/library/2b8c47c9-a769-46d2-9e26-f4d16f0261f81033.mspx • Rsm command line http://technet2.microsoft.com/WindowsServer/f/?en/library/451394eb-4314-4005-85da-a3c49c00c5041033.mspx • Schtasks command line http://technet2.microsoft.com/WindowsServer/f/?en/library/1d284efa-9d11-46c2-a8ef-87b297c68d171033.mspx • Recover deleted items from any folder http://office.microsoft.com/en-us/assistance/HA011165281033.aspx • Microsoft Exchange Server Mailbox Merge Wizard (ExMerge) http://www.microsoft.com/downloads/details.aspx?FamilyID=429163ec-dcdf-47dc-96da-1c12d67327d5&DisplayLang=en • Windows Server 2003 Resource Kit Tools http://www.microsoft.com/downloads/details.aspx?FamilyID=9d467a69-57ff-4ae7-96ee-b18c4790cffd&DisplayLang=en • HDD Software Free HEX Editor http://www.hhdsoftware.com/Family/hex-editor.html

More Related