\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{ls\_delfs} \pdfinfo{ /Title (disk-quota-and-shadow-copy.pdf) /Creator (Cheatography) /Author (ls\_delfs) /Subject (Disk Quota \& Shadow Copy 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}{85CCB2} \definecolor{LightBackground}{HTML}{EFF8F5} \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{Disk Quota \& Shadow Copy Cheat Sheet}}}} \\ \normalsize{by \textcolor{DarkBackground}{ls\_delfs} via \textcolor{DarkBackground}{\uline{cheatography.com/37489/cs/11775/}}} \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}ls\_delfs \\ \uline{cheatography.com/ls-delfs} \\ \end{tabulary} \vfill \columnbreak \begin{tabulary}{5.8cm}{L} \SetRowColor{FootBackground} \mymulticolumn{1}{p{5.377cm}}{\bf\textcolor{white}{Cheat Sheet}} \\ \vspace{-2pt}Published 12th May, 2017.\\ Updated 12th May, 2017.\\ 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}{FSRM}} \tn \SetRowColor{white} \mymulticolumn{1}{x{8.4cm}}{FSRM (File Server Reource Manager) \newline % Row Count 1 (+ 1) - Skal tilføjes i features \newline % Row Count 2 (+ 1) - Er en GUI på serveren \newline % Row Count 3 (+ 1) - Styre Quotas og file screening% Row Count 4 (+ 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}{Quota}} \tn \SetRowColor{white} \mymulticolumn{1}{x{8.4cm}}{Blir brugt til at styre brugernes plads. \newline % Row Count 1 (+ 1) Kun på NTFS \newline % Row Count 2 (+ 1) Sat på Volume% Row Count 3 (+ 1) } \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}{Hard \& Soft Quotas}} \tn % Row 0 \SetRowColor{LightBackground} {\bf{Hard Quota}} & {\bf{Soft Quota}} \tn % Row Count 1 (+ 1) % Row 1 \SetRowColor{white} Sætter en grænse for brugeren & Sætter IKKE en grænse for brugeren \tn % Row Count 3 (+ 2) % Row 2 \SetRowColor{LightBackground} Ingen nye filer kan laves & Overvåger pladsen brugeren har brugt \tn % Row Count 5 (+ 2) % Row 3 \SetRowColor{white} Kan sende en besked til brugeren eller admin & Kan sende en besked til brugeren eller admin \tn % Row Count 8 (+ 3) % Row 4 \SetRowColor{LightBackground} Kan køre en kommando eller script & Kan køre en kommando eller script \tn % Row Count 10 (+ 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}{Template}} \tn \SetRowColor{white} \mymulticolumn{1}{x{8.4cm}}{Templates kan laves både til Quota og Filescreening \newline % Row Count 2 (+ 2) Nemt at lave inde under FSRM, hvor der er en sektion kun til det.% Row Count 4 (+ 2) } \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}{File Screening}} \tn \SetRowColor{white} \mymulticolumn{1}{x{8.4cm}}{Forhindre en specifik type af filer så som lyd- eller videofiler \newline % Row Count 2 (+ 2) Kan sættes på Volume eller mapper \newline % Row Count 3 (+ 1) Der findes 2 metoder at opsætte file screening på: \newline % Row Count 5 (+ 2) - {\bf{Active}} forhindre filen i at komme i mappen \newline % Row Count 6 (+ 1) - {\bf{Passive}} overvåger kun filtypen, forhindre intet \newline % Row Count 8 (+ 2) Der kan også sættes sendes en notifikation ud \newline % Row Count 9 (+ 1) Templates for File Screens er også en god ting% Row Count 10 (+ 1) } \tn \hhline{>{\arrayrulecolor{DarkBackground}}-} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{8.4cm}{x{3.52 cm} x{4.48 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{8.4cm}}{\bf\textcolor{white}{Dirquota}} \tn % Row 0 \SetRowColor{LightBackground} {\bf{Kommando}} & {\bf{Beskrivelse}} \tn % Row Count 1 (+ 1) % Row 1 \SetRowColor{white} dirquota\{\{nobreak\}\} quota & Kan lave og styre quota på en volume eller mappe \tn % Row Count 4 (+ 3) % Row 2 \SetRowColor{LightBackground} dirquota\{\{nobreak\}\} autoquota & kan lave og styre autosæt qoutas på en volume eller mappe \tn % Row Count 7 (+ 3) % Row 3 \SetRowColor{white} dirquota\{\{nobreak\}\} template & kan lave og styre quota templates \tn % Row Count 9 (+ 2) % Row 4 \SetRowColor{LightBackground} dirquota\{\{nobreak\}\} admin & konfigure standard admin indstillinger og lager rapporter \tn % Row Count 12 (+ 3) % Row 5 \SetRowColor{white} dirquota\{\{nobreak\}\} notification & viser syntaksen til en konfigurationsfil, som kan bruges til at konfigurere kvotegrænsevarsler \tn % Row Count 17 (+ 5) \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{white} \mymulticolumn{1}{x{8.4cm}}{Dette er ligesom FSRM en feature der skal installeres. \newline % Row Count 2 (+ 2) Gør det muligt at backup og genskabe operativsystemet, filer eller mapper der er blevet gemt på serveren.% Row Count 5 (+ 3) } \tn \hhline{>{\arrayrulecolor{DarkBackground}}-} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{8.4cm}{x{2.96 cm} x{5.04 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{8.4cm}}{\bf\textcolor{white}{Backuptyperne}} \tn % Row 0 \SetRowColor{LightBackground} Filbaseret \{\{nobreak\}\} & Er backup baseret på om filen. Arkivbitten skal være aktiv for at der bliver taget backup af den bestemte fil. \tn % Row Count 5 (+ 5) % Row 1 \SetRowColor{white} Blokbaseret \{\{nobreak\}\} & Er baseret på backup af de forskellige blokke, hvor der er lavet ændringer. \tn % Row Count 9 (+ 4) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{8.4cm}{x{1.36 cm} x{6.64 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{8.4cm}}{\bf\textcolor{white}{Begreberne}} \tn % Row 0 \SetRowColor{LightBackground} \seqsplit{Arkivbit} & Blir kun brugt til backup, sættes på filen hvis den bliver lavet eller ændret \tn % Row Count 3 (+ 3) % Row 1 \SetRowColor{white} Daily & Backup af filer ændret på dagen. Fjerner IKKE arkivbit \tn % Row Count 5 (+ 2) % Row 2 \SetRowColor{LightBackground} Copy & Som Normal backup fjerner dog IKKE arkivbit \tn % Row Count 7 (+ 2) % Row 3 \SetRowColor{white} VHD & Står for Virtual Hard Disk, som repræsentere en alm. HDD \tn % Row Count 9 (+ 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}{Arkivbit aktiv}} \tn \SetRowColor{LightBackground} \mymulticolumn{1}{p{8.4cm}}{\vspace{1px}\centerline{\includegraphics[width=5.1cm]{/web/www.cheatography.com/public/uploads/ls-delfs_1494592266_2017-05-12_14-30-05.png}}} \tn \hhline{>{\arrayrulecolor{DarkBackground}}-} \SetRowColor{LightBackground} \mymulticolumn{1}{x{8.4cm}}{På billedet er der vist 'tjek' tegn i file attributes, hvilket betyder at arkivbiten er aktiv og at filen vil komme med i backuppen.} \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}{Full Backup}} \tn \SetRowColor{white} \mymulticolumn{1}{x{8.4cm}}{Hoved backup \newline % Row Count 1 (+ 1) Laves altid før Incremental og Differential \newline % Row Count 2 (+ 1) Tager lang tid at lave backup \newline % Row Count 3 (+ 1) Fylder meget \newline % Row Count 4 (+ 1) Fjerner alle arkivbit% Row Count 5 (+ 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}{Incremental Backup}} \tn \SetRowColor{white} \mymulticolumn{1}{x{8.4cm}}{Tager kort tid at lave backup \newline % Row Count 1 (+ 1) Tager lang tid at recover \newline % Row Count 2 (+ 1) Fylder ikke så meget \newline % Row Count 3 (+ 1) Fjerner alle arkivbit% Row Count 4 (+ 1) } \tn \hhline{>{\arrayrulecolor{DarkBackground}}-} \SetRowColor{LightBackground} \mymulticolumn{1}{x{8.4cm}}{*Hvis man mister sin backup for fx. Tirsdag kan du ikke få din Onsdags backup med. Så du ville skulle helt tilbage til Mandags Backup.} \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}{Differential Backup}} \tn \SetRowColor{white} \mymulticolumn{1}{x{8.4cm}}{Tager kort tid at recover \newline % Row Count 1 (+ 1) Tager lang tid at backup \newline % Row Count 2 (+ 1) Fylder meget \newline % Row Count 3 (+ 1) Fjerner IKKE alle arkivbit% Row Count 4 (+ 1) } \tn \hhline{>{\arrayrulecolor{DarkBackground}}-} \SetRowColor{LightBackground} \mymulticolumn{1}{x{8.4cm}}{*Hvis man mister sin backup for Tirsdags backup, kan man godt bruge sin Onsdags backup, i modsætning til Incremential.} \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}{Fordele og Ulemper}} \tn \SetRowColor{LightBackground} \mymulticolumn{1}{p{8.4cm}}{\vspace{1px}\centerline{\includegraphics[width=5.1cm]{/web/www.cheatography.com/public/uploads/ls-delfs_1494591599_2017-05-11_19-39-27.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}{Shadow Copy / VSS}} \tn \SetRowColor{white} \mymulticolumn{1}{x{8.4cm}}{Genskab slettet filer og mapper \newline % Row Count 1 (+ 1) Lavet på en Volume \newline % Row Count 2 (+ 1) Systemet laver som standard 2 snapshots om dagen \newline % Row Count 3 (+ 1) Systemet kan have op til 64 kopier \newline % Row Count 4 (+ 1) Den ældste kopi bliver slettet automatisk når de 64 kopigrænse er nået. \newline % Row Count 6 (+ 2) Virker kun på NTFS filsystemer \newline % Row Count 7 (+ 1) Shadow Copies bør gemmes på seperate volumes. \newline % Row Count 8 (+ 1) Det erstatter IKKE Backup. Men er ligesom snapshot, hvor man kan vende tilbage hvis man får lavet fejl. \newline % Row Count 11 (+ 3) Kan bruges når som helst, også når filer er åbne. (det kan windows backup ikke)% Row Count 13 (+ 2) } \tn \hhline{>{\arrayrulecolor{DarkBackground}}-} \SetRowColor{LightBackground} \mymulticolumn{1}{x{8.4cm}}{VSS = Volume Shadow Copy Service = Shadow Copy} \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}{VSS arkitektur}} \tn \SetRowColor{LightBackground} \mymulticolumn{1}{p{8.4cm}}{\vspace{1px}\centerline{\includegraphics[width=5.1cm]{/web/www.cheatography.com/public/uploads/ls-delfs_1494600178_2017-05-12_16-42-01.png}}} \tn \hhline{>{\arrayrulecolor{DarkBackground}}-} \SetRowColor{LightBackground} \mymulticolumn{1}{x{8.4cm}}{Arkitekturen kan ses på billedet ovenfor.} \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}{Vssadmin kommandoer}} \tn % Row 0 \SetRowColor{LightBackground} Vssadmin add shadowstorage \{\{nobreak\}\} & Tilføjer en volume shadow copy lagrings forbindelse \tn % Row Count 3 (+ 3) % Row 1 \SetRowColor{white} Vssadmin create shadow \{\{nobreak\}\} & Laver en ny volume shadow copy \tn % Row Count 5 (+ 2) % Row 2 \SetRowColor{LightBackground} Vssadmin delete shadows \{\{nobreak\}\} & Sletter volume shadow copies \tn % Row Count 7 (+ 2) % Row 3 \SetRowColor{white} Vssadmin delete shadowstorage \{\{nobreak\}\} & Sletter volume shadow copy \tn % Row Count 10 (+ 3) % Row 4 \SetRowColor{LightBackground} Vssadmin list providers \{\{nobreak\}\} & Lister registrerede volume shadow copy udbydere \tn % Row Count 13 (+ 3) % Row 5 \SetRowColor{white} Vssadmin list shadows \{\{nobreak\}\} & Lister eksisterende volume shadow copies. \tn % Row Count 16 (+ 3) % Row 6 \SetRowColor{LightBackground} Vssadmin list shadowstorage \{\{nobreak\}\} & Lister alle shadow copy lagrings forbindelser på systemet. \tn % Row Count 19 (+ 3) % Row 7 \SetRowColor{white} Vssadmin list volumes \{\{nobreak\}\} & Lister volumes der er kvalificeret for shadow copies \tn % Row Count 22 (+ 3) % Row 8 \SetRowColor{LightBackground} Vssadmin list writers \{\{nobreak\}\} & Lister alle abonnerede volume shadow copy skrivere på systemet \tn % Row Count 26 (+ 4) % Row 9 \SetRowColor{white} Vssadmin resize shadowstorage \{\{nobreak\}\} & Tilpasser den maksimale størrelse for en shadow copy lagrings forbindelse. \tn % Row Count 30 (+ 4) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{8.4cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{8.4cm}}{\bf\textcolor{white}{VSS Tidsplan}} \tn % Row 0 \SetRowColor{LightBackground} \mymulticolumn{1}{x{8.4cm}}{Best Practice - placere din shadow copy uden for brugerens tidsskema.} \tn % Row Count 2 (+ 2) % Row 1 \SetRowColor{white} \mymulticolumn{1}{x{8.4cm}}{Shadow copies bør ikke ske med mindre end en time mellem hver.} \tn % Row Count 4 (+ 2) \hhline{>{\arrayrulecolor{DarkBackground}}-} \end{tabularx} \par\addvspace{1.3em} % That's all folks \end{multicols*} \end{document}