\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{Nectus} \pdfinfo{ /Title (backup-gr2.pdf) /Creator (Cheatography) /Author (Nectus) /Subject (Backup-GR2 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}{00000F} \definecolor{LightBackground}{HTML}{F7F7F7} \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-GR2 Cheat Sheet}}}} \\ \normalsize{by \textcolor{DarkBackground}{Nectus} via \textcolor{DarkBackground}{\uline{cheatography.com/71634/cs/19130/}}} \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}Nectus \\ \uline{cheatography.com/nectus} \\ \end{tabulary} \vfill \columnbreak \begin{tabulary}{5.8cm}{L} \SetRowColor{FootBackground} \mymulticolumn{1}{p{5.377cm}}{\bf\textcolor{white}{Cheat Sheet}} \\ \vspace{-2pt}Published 19th March, 2019.\\ Updated 19th March, 2019.\\ 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} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{8.4cm}}{\bf\textcolor{white}{File Systems FAT,FAT32,exFAT,NTFS,ReFS}} \tn \SetRowColor{LightBackground} \mymulticolumn{1}{p{8.4cm}}{\vspace{1px}\centerline{\includegraphics[width=5.1cm]{/web/www.cheatography.com/public/uploads/alenkaer_1552898424_drive-file-system.png}}} \tn \hhline{>{\arrayrulecolor{DarkBackground}}-} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{8.4cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{8.4cm}}{\bf\textcolor{white}{Backup Types}} \tn \SetRowColor{white} \mymulticolumn{1}{x{8.4cm}}{{\bf{{\emph{Full backup}}}} \newline % Row Count 1 (+ 1) Takes a full copy of the source and copies it to the desired destination \newline % Row Count 3 (+ 2) {\bf{{\emph{Incremental backup}}}} \newline % Row Count 4 (+ 1) Takes a backup of anything that has been changed or created since the last check. Looks for the "ready for archiving" bit to check if the file has been edited. \newline % Row Count 8 (+ 4) {\bf{{\emph{Differential backup}}}} \newline % Row Count 9 (+ 1) Similar to "Incremental backup" the first time it is performed. It copies all data changed from the previous backup. However, each time it runs afterwards, it will continue to copy all data cahnge since the previous FULL backup. It requires more storage and time to complete than "Incremental Backup" \newline % Row Count 16 (+ 7) {\bf{{\emph{Block backup}}}} \newline % Row Count 17 (+ 1) Block-level backup is a feature of incremental backup that allows uploading for only changed parts of files instead of whole files. In order to do that, it uses a snapshot technology. \newline % Row Count 21 (+ 4) {\bf{{\emph{File backup}}}} \newline % Row Count 22 (+ 1) Archive bit must be active on file% Row Count 23 (+ 1) } \tn \hhline{>{\arrayrulecolor{DarkBackground}}-} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{8.4cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{8.4cm}}{\bf\textcolor{white}{Volume / Partition}} \tn \SetRowColor{white} \mymulticolumn{1}{x{8.4cm}}{{\bf{{\emph{Volume}}}} \newline % Row Count 1 (+ 1) A Volume is treated like a separate drive from the physical drive, formatting a volume will only affect the volume. \newline % Row Count 4 (+ 3) {\bf{{\emph{Partition}}}} \newline % Row Count 5 (+ 1) A Partition is the definition of a section on a drive, using partitions enables the user to divide a drive into multiple sectors also known as Logical Volumes.% Row Count 9 (+ 4) } \tn \hhline{>{\arrayrulecolor{DarkBackground}}-} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{8.4cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{8.4cm}}{\bf\textcolor{white}{Basic Disk}} \tn % Row 0 \SetRowColor{LightBackground} \mymulticolumn{1}{x{8.4cm}}{Max 4 partitions} \tn % Row Count 1 (+ 1) % Row 1 \SetRowColor{white} \mymulticolumn{1}{x{8.4cm}}{Supports Extended Partitions} \tn % Row Count 2 (+ 1) % Row 2 \SetRowColor{LightBackground} \mymulticolumn{1}{x{8.4cm}}{up to 26 logic drives} \tn % Row Count 3 (+ 1) % Row 3 \SetRowColor{white} \mymulticolumn{1}{x{8.4cm}}{introduced in MS-DOS} \tn % Row Count 4 (+ 1) \hhline{>{\arrayrulecolor{DarkBackground}}-} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{8.4cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{8.4cm}}{\bf\textcolor{white}{Dynamic Disk}} \tn % Row 0 \SetRowColor{LightBackground} \mymulticolumn{1}{x{8.4cm}}{Do not support OS} \tn % Row Count 1 (+ 1) % Row 1 \SetRowColor{white} \mymulticolumn{1}{x{8.4cm}}{Supports simple, Spanned, Triped, Mirrored \& Raid 5 Volumes} \tn % Row Count 3 (+ 2) % Row 2 \SetRowColor{LightBackground} \mymulticolumn{1}{x{8.4cm}}{introduced in Windows 2000} \tn % Row Count 4 (+ 1) \hhline{>{\arrayrulecolor{DarkBackground}}-} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{8.4cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{8.4cm}}{\bf\textcolor{white}{Shadow Copy}} \tn % Row 0 \SetRowColor{LightBackground} \mymulticolumn{1}{x{8.4cm}}{Recovers Files and Folders} \tn % Row Count 1 (+ 1) % Row 1 \SetRowColor{white} \mymulticolumn{1}{x{8.4cm}}{VSS stands for Volume Shadow copy Service} \tn % Row Count 2 (+ 1) % Row 2 \SetRowColor{LightBackground} \mymulticolumn{1}{x{8.4cm}}{Storage area \textless{}= 300 Mb} \tn % Row Count 3 (+ 1) % Row 3 \SetRowColor{white} \mymulticolumn{1}{x{8.4cm}}{64 changes/snapshots are recorded} \tn % Row Count 4 (+ 1) % Row 4 \SetRowColor{LightBackground} \mymulticolumn{1}{x{8.4cm}}{Only works on NTFS file systems} \tn % Row Count 5 (+ 1) % Row 5 \SetRowColor{white} \mymulticolumn{1}{x{8.4cm}}{Commands :} \tn % Row Count 6 (+ 1) % Row 6 \SetRowColor{LightBackground} \mymulticolumn{1}{x{8.4cm}}{vssadmin add shadowstorage} \tn % Row Count 7 (+ 1) % Row 7 \SetRowColor{white} \mymulticolumn{1}{x{8.4cm}}{vssadmin create shadowstorage} \tn % Row Count 8 (+ 1) % Row 8 \SetRowColor{LightBackground} \mymulticolumn{1}{x{8.4cm}}{vssadmin delete shadowstorage} \tn % Row Count 9 (+ 1) % Row 9 \SetRowColor{white} \mymulticolumn{1}{x{8.4cm}}{vssadmin resize shadowstorage} \tn % Row Count 10 (+ 1) % Row 10 \SetRowColor{LightBackground} \mymulticolumn{1}{x{8.4cm}}{vssadmin list shadowstorage} \tn % Row Count 11 (+ 1) % Row 11 \SetRowColor{white} \mymulticolumn{1}{x{8.4cm}}{vssadmin list providers} \tn % Row Count 12 (+ 1) % Row 12 \SetRowColor{LightBackground} \mymulticolumn{1}{x{8.4cm}}{vssadmin list volumes} \tn % Row Count 13 (+ 1) % Row 13 \SetRowColor{white} \mymulticolumn{1}{x{8.4cm}}{vssadmin list shadows} \tn % Row Count 14 (+ 1) % Row 14 \SetRowColor{LightBackground} \mymulticolumn{1}{x{8.4cm}}{vssadmin list writers} \tn % Row Count 15 (+ 1) % Row 15 \SetRowColor{white} \mymulticolumn{1}{x{8.4cm}}{vssadmin list shadows} \tn % Row Count 16 (+ 1) % Row 16 \SetRowColor{LightBackground} \mymulticolumn{1}{x{8.4cm}}{vssadmin resize shadowstorage} \tn % Row Count 17 (+ 1) \hhline{>{\arrayrulecolor{DarkBackground}}-} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{8.4cm}{x{1.76 cm} x{6.24 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{8.4cm}}{\bf\textcolor{white}{Disk Quota}} \tn % Row 0 \SetRowColor{LightBackground} FSRM & Stands for File Server Resource Manager \tn % Row Count 2 (+ 2) % Row 1 \SetRowColor{white} Quota & is a feature that tracks and can be used to restrict the amount of space that a user's files can use on an NTFS volume \tn % Row Count 6 (+ 4) % Row 2 \SetRowColor{LightBackground} Hard quotas & impose a hard limit on system resources; any operation that would result in exceeding the limit fails. The following settings create hard quotas: Disk Limit parameter Files Limit parameter \tn % Row Count 13 (+ 7) % Row 3 \SetRowColor{white} Soft quotas & send a warning message when resource usage reaches a certain level, but do not affect data access operations, so you can take appropriate action before the quota is exceeded. The following settings create soft quotas: Threshold for Disk Limit parameter Soft Disk Limit parameter Soft Files Limit parameter \tn % Row Count 23 (+ 10) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{8.4cm}{x{2.08 cm} x{5.92 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{8.4cm}}{\bf\textcolor{white}{RAID (Redudant Array Of Independent Disks)}} \tn % Row 0 \SetRowColor{LightBackground} {\emph{Raid0}} & Minimum 2 disks - Not redundant \tn % Row Count 2 (+ 2) % Row 1 \SetRowColor{white} {\emph{Raid1}} & Minimum 2 disks - Mirroring \tn % Row Count 3 (+ 1) % Row 2 \SetRowColor{LightBackground} {\emph{Raid2}} & Minimum 3 disks - Data is shared on bit-level on multiple disks \tn % Row Count 6 (+ 3) % Row 3 \SetRowColor{white} {\emph{Raid5}} & Minimum 3 disks - Stripping with distributed partitions \tn % Row Count 8 (+ 2) % Row 4 \SetRowColor{LightBackground} {\emph{Raid6}} & Minimum 4 disks - Stripping with double distributed partitions \tn % Row Count 11 (+ 3) % Row 5 \SetRowColor{white} {\emph{Raid10 (1+0)}} & Minimum 4 disks - Stripping then mirroring \tn % Row Count 13 (+ 2) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{8.4cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{8.4cm}}{\bf\textcolor{white}{Windows Server Backup}} \tn \SetRowColor{LightBackground} \mymulticolumn{1}{p{8.4cm}}{\vspace{1px}\centerline{\includegraphics[width=5.1cm]{/web/www.cheatography.com/public/uploads/nectus_1552990371_Screenshot_3.png}}} \tn \hhline{>{\arrayrulecolor{DarkBackground}}-} \SetRowColor{LightBackground} \mymulticolumn{1}{x{8.4cm}}{{\bf{{\emph{Remember to run:}}}} \newline \# {\emph{Attribute disk clear readonly}} \newline \# {\emph{convert dynamic}} \newline \newline {\bf{{\emph{On ALL the drives for the RAID5}}}}} \tn \hhline{>{\arrayrulecolor{DarkBackground}}-} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{8.4cm}{x{2.4 cm} x{5.6 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{8.4cm}}{\bf\textcolor{white}{Raid Types}} \tn % Row 0 \SetRowColor{LightBackground} {\bf{{\emph{Volume Type}}}} & {\bf{{\emph{Characteristics}}}} \tn % Row Count 2 (+ 2) % Row 1 \SetRowColor{white} {\emph{Mirrored Volume}} & Stores data to two dublicate disk at the same time. \{\{nl\}\} Fault Tolerant, can lose on disk as data is preserved on both. \{\{nl\}\} The system automatically switches to the functioning disk to maintain service. \tn % Row Count 10 (+ 8) % Row 2 \SetRowColor{LightBackground} {\emph{Striped Volume}} & Uses storage areas on several different disks. \{\{nl\}\} Improves performance by writing to mulitple disk simultaneously. \{\{nl\}\} Saves data from a single file to mulitple disks. \{\{nl\}\} NOT fault tolerant, if one disk dies then all data is lost. \{\{nl\}\} Can NOT contain system or boot files. \tn % Row Count 21 (+ 11) % Row 3 \SetRowColor{white} {\emph{RAID5 Volume}} & Contain three or more disks. \{\{nl\}\} Like a striped volume, portions of a single file are written to each disc in the set. \{\{nl\}\} RAID5 volumes add fault tolerance to striping through a process called parity (data recovery information is added to each disk). \{\{nl\}\} Often called a striped set with parity. \tn % Row Count 32 (+ 11) \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}{GPT / MBR}} \tn % Row 0 \SetRowColor{LightBackground} {\bf{{\emph{MBR (Master Boot Record)}}}} & {\bf{{\emph{GPT (Guided Partition Table)}}}} \tn % Row Count 2 (+ 2) % Row 1 \SetRowColor{white} A special type of boot sector at the very beginning of a physical storage device. & A standard for the layout of the partition table on a physical storage device. \tn % Row Count 7 (+ 5) % Row 2 \SetRowColor{LightBackground} Max Diskspace 2.2TB & Max Diskspace 1.8EB \tn % Row Count 8 (+ 1) % Row 3 \SetRowColor{white} Max 4 primary partitions & max 128 partitions \tn % Row Count 10 (+ 2) % Row 4 \SetRowColor{LightBackground} Supports only one extended partition (up to 26 total partitions) & Supports UEFI \tn % Row Count 14 (+ 4) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{8.4cm}{p{1.6 cm} x{6.4 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{8.4cm}}{\bf\textcolor{white}{Disk Administration}} \tn % Row 0 \SetRowColor{LightBackground} MCC & diskmgmt.msc \tn % Row Count 1 (+ 1) % Row 1 \SetRowColor{white} CMD & diskpart.exe \tn % Row Count 2 (+ 1) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{8.4cm}{x{2.72 cm} x{5.28 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{8.4cm}}{\bf\textcolor{white}{Startup/Recovery Commands}} \tn % Row 0 \SetRowColor{LightBackground} \mymulticolumn{2}{x{8.4cm}}{To recover files or folders you can use either the Recovery Wizard or wbadmin start recovery} \tn % Row Count 2 (+ 2) % Row 1 \SetRowColor{white} BCD & Boot Configuration Data \tn % Row Count 3 (+ 1) % Row 2 \SetRowColor{LightBackground} EASYBCD & Software utility for BCD/BootMGR \tn % Row Count 5 (+ 2) % Row 3 \SetRowColor{white} DSRM & Directory Services Restore Mode \tn % Row Count 7 (+ 2) % Row 4 \SetRowColor{LightBackground} Bootrec.exe & Executable for troubleshooting startup issues \tn % Row Count 9 (+ 2) % Row 5 \SetRowColor{white} Ntdsutil.exe & Active Directory database maintenance tool \tn % Row Count 11 (+ 2) % Row 6 \SetRowColor{LightBackground} MSCONFIG & Command for accessing Microsoft System Configuration \tn % Row Count 13 (+ 2) % Row 7 \SetRowColor{white} BCDEDIT & Sets properties in boot database to control boot loading \tn % Row Count 16 (+ 3) % Row 8 \SetRowColor{LightBackground} CHKDSK & Checks a disk and displays a status report \tn % Row Count 18 (+ 2) % Row 9 \SetRowColor{white} DISKPART & Displays or configures disk partitions \tn % Row Count 20 (+ 2) % Row 10 \SetRowColor{LightBackground} WBADMIN & Enables you to back up and restore your operating system, volumes, files, folders, and applications from a command prompt. \tn % Row Count 25 (+ 5) % Row 11 \SetRowColor{white} \seqsplit{AUTHORITATIVE} RESTORE & Used to restore AD data after executing the Ntdsutil.exe command. When you perform an authoritative restore, you prevent specific objects from the backup from being overwritten by Active Directory replication. \tn % Row Count 34 (+ 9) \end{tabularx} \par\addvspace{1.3em} \vfill \columnbreak \begin{tabularx}{8.4cm}{x{2.72 cm} x{5.28 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{8.4cm}}{\bf\textcolor{white}{Startup/Recovery Commands (cont)}} \tn % Row 12 \SetRowColor{LightBackground} \seqsplit{UNAUTHORATIVE} RESTORE & Any changes that took place since the backup are replicated to the restored domain controller. \tn % Row Count 4 (+ 4) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{8.4cm}{p{0.8 cm} p{0.8 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{8.4cm}}{\bf\textcolor{white}{AT commands Backup}} \tn % Row 0 \SetRowColor{LightBackground} \mymulticolumn{2}{x{8.4cm}}{at 23:00 cmd /c copy C:\textbackslash{}Dokumenter. C:\textbackslash{}Backups} \tn % Row Count 2 (+ 2) % Row 1 \SetRowColor{white} \mymulticolumn{2}{x{8.4cm}}{at \textbackslash{}\textbackslash{}products 00:00 /every:M,T,W,Th,F backup} \tn % Row Count 4 (+ 2) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} % That's all folks \end{multicols*} \end{document}