talk.tex 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  1. \documentclass{beamer}
  2. \usetheme{poul}
  3. \usepackage[utf8]{inputenc}
  4. \usepackage[svgpath=images/]{svg}
  5. %Information to be included in the title page:
  6. \title{Backup and (possibly) Restore}
  7. \author{Andrea Gussoni}
  8. \institute{P.O.u.L.}
  9. \date{23 Marzo 2017}
  10. \titlegraphic{\includesvg[height=1.5cm]{logowhite}}
  11. \begin{document}
  12. \frame{\titlepage}
  13. \begin{frame}
  14. \frametitle{Why do we need backups?}
  15. Bad things can happen and do happen:
  16. \begin{itemize}
  17. \item You may drop your computer accidentally.
  18. \item The disk may be damaged by vibrations during the daily train commute.
  19. \item The computer where you keep the unique copy of your thesis
  20. may be stolen.
  21. \item Or after some time it may simply age and stop operating.
  22. \end{itemize}
  23. \end{frame}
  24. \begin{frame}
  25. \frametitle{What are backups?}
  26. \begin{block}{Definition}
  27. The copying and archiving of computer data so that it may be
  28. used to restore the original after a data loss event.
  29. \end{block}
  30. \end{frame}
  31. \begin{frame}
  32. \frametitle{What to backup?}
  33. It is important to distinguish what it is necessary to backup from what
  34. it is not.\\
  35. Obviously this depends on the setup that you are using (native services, containers, VMs etc...)
  36. \end{frame}
  37. \begin{frame}
  38. \frametitle{A general guideline}
  39. Must:
  40. \begin{itemize}
  41. \item /home
  42. \end{itemize}
  43. At your discretion:
  44. \begin{itemize}
  45. \item /etc
  46. \item /var
  47. \end{itemize}
  48. Not necessary\footnote{if these folders contain something important probably you are doing something wrong in your setup}:
  49. \begin{itemize}
  50. \item /proc /sys /tmp
  51. \item /dev /mnt /media
  52. \end{itemize}
  53. \end{frame}
  54. \begin{frame}
  55. \framtetitle{Backup types}
  56. Backups can be:
  57. \begin{itemize}
  58. \item \textbf{full}: a complete backup of a all files and folder starting from a root node.
  59. \item \textbf{incremental}: contains all the differences since the last incremental backup.
  60. \item \textbf{differential} contains the changes since the last full backup.
  61. \end{itemize}
  62. \end{frame}
  63. \begin{frame}
  64. \frametitle{Backup Support}
  65. \begin{itemize}
  66. \item Hard disks (HDD).
  67. \item Solid-State drives (SSD).
  68. \item Optical supports: DVDs, Blu-ray.
  69. \item Flash Drives.
  70. \item Cloud\footnote{Remember that there is no cloud, just other people's computers.}.
  71. \end{itemize}
  72. \end{frame}
  73. \begin{frame}
  74. \frametitle{dd}
  75. \textbf{dd} is a powerful tool that basically can copy everything that is a file or a block device. It is common to use it for disk cloning.\\
  76. Usage example:
  77. \begin{itemize}
  78. \item \textit{dd if=/dev/sdX of=/dev/sdY \&\& sync\footnote{useful to actually wait the end of data transfer and avoid corrupted copies}}
  79. \begin{itemize}
  80. \textbf{if:} input file/device
  81. \textbf{out:} output file/device
  82. \end{itemize}
  83. \end{itemize}
  84. \begin{alertblock}{Caution}
  85. Since \textbf{dd} often requires \textit{sudo} privileges to run, if you mismatch the name of a device you can actually wipe the content of your primary hard disk, double check always the arguments before pressing enter.
  86. \end{alertblock}
  87. \end{frame}
  88. \begin{frame}
  89. \end{frame}
  90. \begin{frame}
  91. \end{frame}
  92. \end{document}