Advertisement
xe1phix

Xe1phix-[Incremental-Snapshot]-Backups-[v7.5.2].txt

Nov 11th, 2022
941
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 6.28 KB | None | 0 0
  1. ## ---------------------------------------------------------- ##
  2. ##  [?] A Snapshot Backup is Considered A Hybrid Approach
  3. ## ---------------------------------------------------------- ##
  4.  
  5.  
  6. ##-======================================================================-##
  7. ##   1). A Full Data Backup is Made.
  8. ##   2). A Pointer Reference Table is Created.
  9. ##   3). An Incremental Backup is Performed From Now On.
  10. ##-======================================================================-##
  11.  
  12. ## ---------------------------------------------------------------------- ##
  13. ##  [?] Incremental Backup - Makes A Copy of Only Data That Has Been
  14. ##                           Modified Since The Last Backup Operation
  15. ## ---------------------------------------------------------------------- ##
  16.        
  17. ##-===========================================================================-##
  18. ##   4). New or Modified Data is Added or Updated Within The Backup Archive.
  19. ##-===========================================================================-##
  20.  
  21.  
  22. ##-=============================================================================================-##
  23. ##   5). A Pointer Reference Table, is Copied And Updated Each Time A Snapshot Backup is Made.  
  24. ##-=============================================================================================-##
  25. ## --------------------------------------------------------------------------------------------- ##
  26. ##  [?] (That File is: Xe1phixGitLab.snar)
  27. ## --------------------------------------------------------------------------------------------- ##
  28.  
  29.  
  30.  
  31. ##-=================================================================================================-##
  32. ##  [?] In The Following Example, I'm Making A Snapshot Backup Using The Directory Location:
  33. ## ------------------------------------------------------------------------------------------------- ##
  34. ##      --> /run/media/public/2TB/Xe1phixGitLab/*   (ZuluMount mounts in the /run/media dir)
  35. ## ------------------------------------------------------------------------------------------------- ##
  36. ##
  37. ## ------------------------------------------------------------------------------------------------- ##
  38. ##  [?] I Named The Backup File That The Data is Stored Inside of:
  39. ## ------------------------------------------------------------------------------------------------- ##
  40. ##      --> Xe1phixGithub.tar.xz
  41. ##
  42. ## ------------------------------------------------------------------------------------------------- ##
  43. ##  [?] And Finally, I Named The Snapshot Pointer Reference File:
  44. ## ------------------------------------------------------------------------------------------------- ##
  45. ##      --> Xe1phixGitLab.snar
  46. ##
  47. ##-=================================================================================================-##
  48.  
  49.  
  50.  
  51. ## ------------------------------------------------------------------------------------------------- ##
  52. ##  [?] The Tar .snar File Extension - Contains Metadata Used To Create Full Incredmental Backups
  53. ## ------------------------------------------------------------------------------------------------- ##
  54. ##  [?] The Snapshot File Uses File Timestamps.
  55. ##      So Tar Can Determine if A File Has Been Modified Since It Was Last Backed up.
  56. ## ------------------------------------------------------------------------------------------------- ##
  57.  
  58.  
  59.  
  60. ## ------------------------------------------------------------------------------------------------- ##
  61. ##  [?] The -g Option - Creates A Snapshot File: (I Named Mine: Xe1phixGitLab.snar)
  62. ## ------------------------------------------------------------------------------------------------- ##
  63. ##  [?] The -J Option - Use xz Compression
  64. ## ------------------------------------------------------------------------------------------------- ##
  65. ##  [?] The -c Option - Creates A Tar Archive File
  66. ## ------------------------------------------------------------------------------------------------- ##
  67. ##  [?] The -v Option - Uses Verbose Reporting
  68. ## ------------------------------------------------------------------------------------------------- ##
  69. ##  [?] The -f Option - References A File
  70. ## ------------------------------------------------------------------------------------------------- ##
  71. tar -g Xe1phixGitLab.snar -Jcvf Xe1phixGitLab.tar.xz /run/media/public/2TB/Xe1phixGitLab/*
  72. tar -g Xe1phixTextbooks.snar -Jcvf Xe1phixTextbooks.tar.xz /run/media/public/2TB/BrowntownAlpha/textbooks/*
  73. tar -g Exotic-Liability.snar -Jcvf Exotic-Liability.tar.xz /home/xe1phix/Podcasts/Exotic-Liability/*
  74.  
  75. tar -g Xe1phix-Xe1phixGitLab-Xe1phix-Hardened-ParrotSec-Kios-Projects-Production.snar -Jcvf ParrotSec-Projects-Production.tar.xz /home/xe1phix/Downloads/Xe1phixGitLab/Xe1phixGitLabProjects/Stable/ParrotLinux-Public-Kios-Project/Xe1phix-Hardened-ParrotKios-Projects-Production/*
  76.  
  77.  
  78. ## ---------------------------------------- ##
  79. ##  [+] List The Tar Archives Contents:
  80. ## ---------------------------------------- ##
  81. tar -tf Xe1phixGitLab.tar.xz
  82. tar -tf Xe1phixTextbooks.tar.xz
  83. tar -tf Exotic-Liability.tar.xz
  84. tar -tf ParrotSec-Projects-Production.tar.xz
  85.  
  86.  
  87. ## --------------------------------------------------------------------------------- ##
  88. ##  [?] The Metadata Within Xe1phixGithub.snar Lets The Tar Command
  89. ##      Know When A File is New or Modified Since The Last Snapshot Backup.
  90. ## --------------------------------------------------------------------------------- ##
  91. ##  [?] If The File is New or Modified, It is Appended To The
  92. ##      Archived Snapshot Backup File (Xe1phixGithub.tar.xz)
  93. ## --------------------------------------------------------------------------------- ##
  94. tar -g /home/xe1phix/Xe1phixGithub.snar -Jcvf /home/xe1phix/Xe1phixGithub.tar.xz /run/media/public/2TB/Xe1phixGithub/*
  95. tar -g /run/media/public/2TB/Xe1phixGithub.snar -Jcvf /run/media/public/2TB/Xe1phixGithub.tar.xz /run/media/public/2TB/Xe1phixGithub/*
  96.  
  97. tar -g /run/media/public/2TB/Xe1phixTextbooks.snar -Jcvf /run/media/public/2TB/Xe1phixTextbooks.tar.xz /run/media/public/2TB/BrowntownAlpha/textbooks/*
  98. tar -g /home/xe1phix/Xe1phixTextbooks.snar -Jcvf /home/xe1phix/Xe1phixTextbooks.tar.xz /run/media/public/2TB/BrowntownAlpha/textbooks/*
  99.  
  100. tar -g /home/xe1phix/Podcasts/Exotic-Liability.snar -Jcvf /home/xe1phix/Podcasts/Exotic-Liability.tar.xz /home/xe1phix/Podcasts/Exotic-Liability/*
  101.  
  102.  
  103.  
  104.  
  105.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement