\documentclass[10pt,a4paper]{article} % Packages \usepackage{fancyhdr} % For header and footer \usepackage{multicol} % Allows multicols in tables \usepackage{tabularx} % Intelligent column widths \usepackage{tabulary} % Used in header and footer \usepackage{hhline} % Border under tables \usepackage{graphicx} % For images \usepackage{xcolor} % For hex colours %\usepackage[utf8x]{inputenc} % For unicode character support \usepackage[T1]{fontenc} % Without this we get weird character replacements \usepackage{colortbl} % For coloured tables \usepackage{setspace} % For line height \usepackage{lastpage} % Needed for total page number \usepackage{seqsplit} % Splits long words. %\usepackage{opensans} % Can't make this work so far. Shame. Would be lovely. \usepackage[normalem]{ulem} % For underlining links % Most of the following are not required for the majority % of cheat sheets but are needed for some symbol support. \usepackage{amsmath} % Symbols \usepackage{MnSymbol} % Symbols \usepackage{wasysym} % Symbols %\usepackage[english,german,french,spanish,italian]{babel} % Languages % Document Info \author{morfog} \pdfinfo{ /Title (backup.pdf) /Creator (Cheatography) /Author (morfog) /Subject (Backup Cheat Sheet) } % Lengths and widths \addtolength{\textwidth}{6cm} \addtolength{\textheight}{-1cm} \addtolength{\hoffset}{-3cm} \addtolength{\voffset}{-2cm} \setlength{\tabcolsep}{0.2cm} % Space between columns \setlength{\headsep}{-12pt} % Reduce space between header and content \setlength{\headheight}{85pt} % If less, LaTeX automatically increases it \renewcommand{\footrulewidth}{0pt} % Remove footer line \renewcommand{\headrulewidth}{0pt} % Remove header line \renewcommand{\seqinsert}{\ifmmode\allowbreak\else\-\fi} % Hyphens in seqsplit % This two commands together give roughly % the right line height in the tables \renewcommand{\arraystretch}{1.3} \onehalfspacing % Commands \newcommand{\SetRowColor}[1]{\noalign{\gdef\RowColorName{#1}}\rowcolor{\RowColorName}} % Shortcut for row colour \newcommand{\mymulticolumn}[3]{\multicolumn{#1}{>{\columncolor{\RowColorName}}#2}{#3}} % For coloured multi-cols \newcolumntype{x}[1]{>{\raggedright}p{#1}} % New column types for ragged-right paragraph columns \newcommand{\tn}{\tabularnewline} % Required as custom column type in use % Font and Colours \definecolor{HeadBackground}{HTML}{333333} \definecolor{FootBackground}{HTML}{666666} \definecolor{TextColor}{HTML}{333333} \definecolor{DarkBackground}{HTML}{A3A3A3} \definecolor{LightBackground}{HTML}{F3F3F3} \renewcommand{\familydefault}{\sfdefault} \color{TextColor} % Header and Footer \pagestyle{fancy} \fancyhead{} % Set header to blank \fancyfoot{} % Set footer to blank \fancyhead[L]{ \noindent \begin{multicols}{3} \begin{tabulary}{5.8cm}{C} \SetRowColor{DarkBackground} \vspace{-7pt} {\parbox{\dimexpr\textwidth-2\fboxsep\relax}{\noindent \hspace*{-6pt}\includegraphics[width=5.8cm]{/web/www.cheatography.com/public/images/cheatography_logo.pdf}} } \end{tabulary} \columnbreak \begin{tabulary}{11cm}{L} \vspace{-2pt}\large{\bf{\textcolor{DarkBackground}{\textrm{Backup Cheat Sheet}}}} \\ \normalsize{by \textcolor{DarkBackground}{morfog} via \textcolor{DarkBackground}{\uline{cheatography.com/62343/cs/16009/}}} \end{tabulary} \end{multicols}} \fancyfoot[L]{ \footnotesize \noindent \begin{multicols}{3} \begin{tabulary}{5.8cm}{LL} \SetRowColor{FootBackground} \mymulticolumn{2}{p{5.377cm}}{\bf\textcolor{white}{Cheatographer}} \\ \vspace{-2pt}morfog \\ \uline{cheatography.com/morfog} \\ \end{tabulary} \vfill \columnbreak \begin{tabulary}{5.8cm}{L} \SetRowColor{FootBackground} \mymulticolumn{1}{p{5.377cm}}{\bf\textcolor{white}{Cheat Sheet}} \\ \vspace{-2pt}Not Yet Published.\\ Updated 20th September, 2018.\\ Page {\thepage} of \pageref{LastPage}. \end{tabulary} \vfill \columnbreak \begin{tabulary}{5.8cm}{L} \SetRowColor{FootBackground} \mymulticolumn{1}{p{5.377cm}}{\bf\textcolor{white}{Sponsor}} \\ \SetRowColor{white} \vspace{-5pt} %\includegraphics[width=48px,height=48px]{dave.jpeg} Measure your website readability!\\ www.readability-score.com \end{tabulary} \end{multicols}} \begin{document} \raggedright \raggedcolumns % Set font size to small. Switch to any value % from this page to resize cheat sheet text: % www.emerson.emory.edu/services/latex/latex_169.html \footnotesize % Small font. \begin{multicols*}{2} \begin{tabularx}{8.4cm}{x{1.08 cm} x{2.304 cm} x{1.44 cm} x{2.376 cm} } \SetRowColor{DarkBackground} \mymulticolumn{4}{x{8.4cm}}{\bf\textcolor{white}{1. Server Setup}} \tn % Row 0 \SetRowColor{LightBackground} {\bf{Fysisk Server}} & \seqsplit{Minimuskravet} for vores setup er 250GB HDD & Server & Windows Server 2016, HyperV til host af virtuelle servere \tn % Row Count 5 (+ 5) % Row 1 \SetRowColor{white} {\bf{Virtuel Server}} & Dynamisk ram, 100GB allokeret diskplads på C: & Server 2 {\bf{(AD-Server)}} & DC, AD, DHCP, DNS, Remote Access \tn % Row Count 9 (+ 4) % Row 2 \SetRowColor{LightBackground} {\bf{Virtuel Server}} & Dynamisk ram, 100GB allokeret diskplads på E: & Server 3 {\bf{(DPM)}} & SQL 2016 med: \{\{nl\}\}Database Engine Services \& Reporting Service. \{\{nl\}\}SQL Management Tools 16,5. \{\{nl\}\} Data Protection Manager 1801 \tn % Row Count 20 (+ 11) % Row 3 \SetRowColor{white} {\bf{Virtuel Server}} & 8GB Ram, 100GB allokeret diskplads på C: & Server 4 {\bf{(Filserver)}} & Fil-rolle, \{\{nl\}\}Print-rolle,\{\{nl\}\} ISCSI,\{\{nl\}\} Ekstra virtuel harddisk 100GB på :E \tn % Row Count 27 (+ 7) \hhline{>{\arrayrulecolor{DarkBackground}}----} \SetRowColor{LightBackground} \mymulticolumn{4}{x{8.4cm}}{Vi har valgt at implementere DPM på en virtuel server i Hyper-V. \{\{nl\}\} Serveren skal være medlem af et domæne.} \tn \hhline{>{\arrayrulecolor{DarkBackground}}----} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{8.4cm}{x{2.584 cm} x{2.508 cm} x{2.508 cm} } \SetRowColor{DarkBackground} \mymulticolumn{3}{x{8.4cm}}{\bf\textcolor{white}{2. Installation - vejledning}} \tn % Row 0 \SetRowColor{LightBackground} {\bf{Før installation af SQL Server 2016}} & Download: \{\{nl\}\}NET framework 3.5, 4.0 og 4.5. \{\{nl\}\} Visual C++ \seqsplit{Redistributale} for Visual Studio 2015. \{\{nl\}\} Visual C++ \seqsplit{Redistributable} Packages For Visual Studio 2013 & \tn % Row Count 13 (+ 13) % Row 1 \SetRowColor{white} {\bf{Før installation af DPM 1801}} & Download: \{\{nl\}\}SQL Server 2016 med features: \{\{nl\}\}Database Engine Services \& Reporting Service. \{\{nl\}\} SQL Management Tools 16,5. \{\{nl\}\} Aktivér for at \seqsplit{DPM-databasen} fungerer. & Bemærk: SQL Server kan ikke installeres på \seqsplit{domain-controlleren} og stadig fungere med DPM. \{\{nl\}\} Ved remote installation, skal SQL Serveren installeres i samme domæne og tidszone som DPM Serveren. \tn % Row Count 29 (+ 16) % Row 2 \SetRowColor{LightBackground} {\bf{DPM Server Forudsætninger}} & Følgende er \seqsplit{præinstalleret} i Windows Server 2012 og nyere, ellers download:\{\{nl\}\}C++ 2008 \seqsplit{Redistributable}. \{\{nl\}\} Windows Installer 4.5 eller nyere. \{\{nl\}\} PowerShell 3.0 eller nyere. \{\{nl\}\} SQL Server (Kan installeres lokalt under \seqsplit{installationen)}. \{\{nl\}\} Microsoft Application Error Reporting. \{\{nl\}\} Windows Single Instance Store (SIS) & \tn % Row Count 56 (+ 27) \end{tabularx} \par\addvspace{1.3em} \vfill \columnbreak \begin{tabularx}{8.4cm}{x{2.584 cm} x{2.508 cm} x{2.508 cm} } \SetRowColor{DarkBackground} \mymulticolumn{3}{x{8.4cm}}{\bf\textcolor{white}{2. Installation - vejledning (cont)}} \tn % Row 3 \SetRowColor{LightBackground} {\bf{Aktivering af Single Instance Store (SIS) via PowerShell}} & For Windows Server 2016, 2012 og 2012 R2 er kommandoen:\{\{nl\}\}{\bf{dism /online /enable-feature:SIS-Limited}} & \tn % Row Count 9 (+ 9) % Row 4 \SetRowColor{white} {\bf{Installation af DPM}} & Download: \{\{nl\}\}DPM 1801 & Bemærk: \seqsplit{Installationen} skal ske i ovennævnte \seqsplit{rækkefølge.} \tn % Row Count 14 (+ 5) % Row 5 \SetRowColor{LightBackground} {\bf{Efter installation af DPM}} & Installeret: ISCSI & Tilføjet en virtuel disk på 100GB til vores Filserver (Server 4) og installeret rollen i Server Manager \tn % Row Count 23 (+ 9) \hhline{>{\arrayrulecolor{DarkBackground}}---} \SetRowColor{LightBackground} \mymulticolumn{3}{x{8.4cm}}{SQL Serveren hoster DPM-backuppen. \{\{nl\}\} \newline De forskellige versioner af DPM og SQL Server, samt hvilket server setup der installeres på (f.eks. Windows Server 2016), har betydning for installationen. Sørg for at de passer med hinanden.} \tn \hhline{>{\arrayrulecolor{DarkBackground}}---} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{8.4cm}{x{3.04 cm} x{3.8 cm} p{0.76 cm} } \SetRowColor{DarkBackground} \mymulticolumn{3}{x{8.4cm}}{\bf\textcolor{white}{3. Agent Installation}} \tn % Row 0 \SetRowColor{LightBackground} {\bf{Installation af Data Protection Agent via DPM Administrator Console}} & Tryk på fanebladet "Management" og vælg "Agents". \{\{nl\}\}Tryk på Install \{\{nl\}\}Vælg computere eller tast navn og tryk "Add". \{\{nl\}\} Angiv domæne administrator og installér. & \tn % Row Count 9 (+ 9) % Row 1 \SetRowColor{white} {\bf{Manuel installation af Agent}} & I DPM Administrator Console, \{\{nl\}\}Klik på fanebladet "Management". \{\{nl\}\}Vælg "Agents". \{\{nl\}\}Tryk på "Install". \{\{nl\}\} Vælg computere eller tast navn og tryk "Add". \{\{nl\}\}Angiv domæne administrator og installer. & \tn % Row Count 21 (+ 12) \hhline{>{\arrayrulecolor{DarkBackground}}---} \SetRowColor{LightBackground} \mymulticolumn{3}{x{8.4cm}}{Agenten installeres på alle computere og servere der skal sikres ved hjælp af DPM. \newline \newline Firewall: Følgende porte skal være åbne på klienten eller serveren der skal installeres på \{\{nl\}\}{\bf{TCP}}: 135, 139, 5718-5719, 88, 389, 445, 1024-65535 \{\{nl\}\}{\bf{UDP}}: 53, 88, 137-138, 389 1024-65535 kan lukkes igen efter installationen.} \tn \hhline{>{\arrayrulecolor{DarkBackground}}---} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{8.4cm}{x{4 cm} x{4 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{8.4cm}}{\bf\textcolor{white}{4. Konfiguration af DPM}} \tn % Row 0 \SetRowColor{LightBackground} {\bf{Opret Storage Pool}} & I DPM Administrator Console, vælg "Disks" under fanebladet "Management". \{\{nl\}\} Vælg "Add" og tilføj en initialiseret disk, som ikke er formateret. Tilføj denne til storage poolen og klik "Ok". Der kan tilføjes flere disks til en storage pool. \tn % Row Count 13 (+ 13) % Row 1 \SetRowColor{white} {\bf{Tilføj Agents der er manuelt installeret}} & I DPM Administrator Console, tryk på "Management" fanebladet og vælg "Agents". \{\{nl\}\} Tryk på "Add" og vælg "Attach Agents" istedet for "Install" \tn % Row Count 21 (+ 8) % Row 2 \SetRowColor{LightBackground} {\bf{Opret Protection Group}} & I DPM Administrator Console, tryk på fanebladet "Protection" og vælg "New". \{\{nl\}\} Vælg gruppetypen (Client eller Server) \{\{nl\}\} Vælg hvad der skal tages backup af på hvilke maskiner og navngiv gruppen. \{\{nl\}\} Bestem frekvensen af backup og hvor ofte den skal køres, hvor meget plads der skal allokeres og fra hvilken storage pool. \{\{nl\}\} Nu bestemmes hvordan data replikeres mellem klientmaskinen og DPM serveren, samt hvordan "consistency checks" skal køres. \{\{nl\}\} System State og Bare Metal backups Begge disse kræver rollen Windows Backup Server installeret på klienten for at fungere. \tn % Row Count 52 (+ 31) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{8.4cm}{x{4 cm} x{4 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{8.4cm}}{\bf\textcolor{white}{5. Backup i DPM}} \tn % Row 0 \SetRowColor{LightBackground} {\bf{System Center DPM Administrator console}} & Hvis man vil foretage backup af f.eks. en server eller en mappe på en server, kan man gå til "Protection", vælge "New" og følge wizarden \tn % Row Count 8 (+ 8) % Row 1 \SetRowColor{white} {\bf{DPM Wizard - vores opsætning}} & {\bf{Select Protection Group Type}}: "Servers" \{\{nl\}\}{\bf{Select Group Members:}} "C:\textbackslash{}users\textbackslash{}"user"\textbackslash{}desktop"\{\{nl\}\}{\bf{Select Data Protection Method:}} Navn: "Desktop \& Pictures" Backup til ISCSI disken\{\{nl\}\}{\bf{Select Short-term Goals:}} Over 5 dage. Synkronisering \& checkpoint hver dag kl 08:00.\{\{nl\}\}{\bf{Review Disk Storage Allocation:}} Valgt vores pool \{\{nl\}\}{\bf{Choose Replica Creation Method:}} Automatisk\{\{nl\}\}{\bf{Choose Consistency Check Options:}} Consistensy-Check når data bliver inkonsistent.\{\{nl\}\}{\bf{Summary:}} Oversigt over vores nye Protection/backup plan.\{\{nl\}\}{\bf{Status:}} Se status på vores første replikation. \tn % Row Count 40 (+ 32) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{8.4cm}{x{4 cm} x{4 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{8.4cm}}{\bf\textcolor{white}{6. Restore i DPM}} \tn % Row 0 \SetRowColor{LightBackground} \{\{nl\}\}\{\{nl\}\}\{\{nl\}\}\{\{nl\}\}\{\{nl\}\}\{\{nl\}\}\{\{nl\}\}\{\{nl\}\}\{\{nl\}\}\{\{nl\}\}\{\{nl\}\}\{\{nl\}\}\{\{ac\}\}{\bf{Restore Bare Metal}}\{\{ac\}\} & {\bf{Start "Recovery" på DPM serveren}}.\{\{nl\}\}I DPM Administrator Console tryk på fanebladet "Recovery". \{\{nl\}\}Vælg den enhed du vil lave restore af, vælg "Recovery type" og "Copy to a network folder". \{\{nl\}\}Nu starter din recovery.\{\{nl\}\}\{\{nl\}\}{\bf{Opsætning af Share}} \{\{nl\}\}Naviger til restore lokationen og lokaliser folderen med backuppen i. Share den folder hvor WindowsImageBackup ligger, så root folderen bliver WindowsImageBackup. \{\{nl\}\} WindowsImageBackup skal være root folder for at DPM kan restore dataen\{\{nl\}\}\{\{nl\}\}{\bf{Restore backup (Klient)}} \{\{nl\}\}Indsæt installations medie og klik på "Repair Computer" under fanen "Install"\{\{nl\}\}Vælg "Restore your computer using a system image that you created earlier"\{\{nl\}\}Vælg derefter "Select a system image" Gå til "Advanced" og vælg "Search for a system image on the network" \{\{nl\}\} Vælg det restore point du vil gendanne til og vælg derefter "Format and Repartition Disks" \tn % Row Count 48 (+ 48) % Row 1 \SetRowColor{white} \{\{nl\}\}\{\{nl\}\}\{\{nl\}\}\{\{nl\}\}\{\{nl\}\}\{\{nl\}\}\{\{nl\}\}\{\{nl\}\}\{\{nl\}\}\{\{nl\}\}\{\{nl\}\}\{\{nl\}\}\{\{nl\}\}\{\{nl\}\}\{\{nl\}\}\{\{ac\}\}{\bf{Restore System State}}\{\{ac\}\} & {\bf{Start "Recovery" på DPM serveren}}\{\{nl\}\}I DPM Administrator Console tryk på "Recovery" fanebladet. \{\{nl\}\} Find den server du vil restore og vælg "Recovery Type" og "Copy to a network folder". \{\{nl\}\} Vælg destination (eller opret en ny). \{\{nl\}\}Nu startes din recovery. \{\{nl\}\}\{\{nl\}\}{\bf{Opsætning af Share}} \{\{nl\}\}Giv Windows Server Backup rettigheder til System State backup-folderen. \{\{nl\}\}\{\{nl\}\}{\bf{Restore System State (Klient) GUI}}\{\{nl\}\}Klik på "Actions", "Recover", "Another Server" eller "This Server", "Specified Location Type", "Remote shared folder" og angiv stien.\{\{nl\}\}Recovery Type = System State\{\{nl\}\}Lokation for System State Backup = Original lokation. \{\{nl\}\}\{\{nl\}\}{\bf{CLI}}\{\{nl\}\}Eleveret kommando-prompt: {\bf{wbadmin get versions –backuptarget \textless{}servername\textbackslash{}sharename}}\textgreater{} \{\{nl\}\}For at få versions identifier\{\{nl\}\}\{\{nl\}\} {\bf{wbadmin start systemstaterecovery –version:\textless{}versionidentified\textgreater{} –backuptarget:\textless{}servername\textbackslash{}sharename\textgreater{}}} \{\{nl\}\}Starter System State Backup ud fra Versions Identifier Backup Proces \tn % Row Count 101 (+ 53) \hhline{>{\arrayrulecolor{DarkBackground}}--} \SetRowColor{LightBackground} \mymulticolumn{2}{x{8.4cm}}{Man kan se status på den aktive recovery, ved at klikke på fanen "Monitorering"} \tn \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{8.4cm}{x{4 cm} x{4 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{8.4cm}}{\bf\textcolor{white}{7. Funktionsbeskrivelser}} \tn % Row 0 \SetRowColor{LightBackground} {\bf{Backup proces}} & Et backupjob oprettes via DPM serveren og udføres lokalt på maskinen. \{\{nl\}\} Først oprettes en lokal backup og efterfølgende starter synkronisering af data mellem server og klient. \tn % Row Count 10 (+ 10) % Row 1 \SetRowColor{white} {\bf{Bare Metal eller System State Backup}} & Hvis der skal laves Bare Metal eller System State Backup er det et krav at klienten udover DPM agenten har Windows Backup Server installeret. \tn % Row Count 18 (+ 8) % Row 2 \SetRowColor{LightBackground} {\bf{Replica Storage}} & Data placeres i Replica storage på serveren, indtil det tidspunkt hvor der skal laves en recovery. \{\{nl\}\} Det er først når der er oprettet et recovery point at data kan genskabes på klienten. \tn % Row Count 28 (+ 10) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} % That's all folks \end{multicols*} \end{document}