Version Control and Backups
Max Vogel
Linux SysAdmin DeCal Spring 2022
Slides initially adapted from Liam Porr
Additional contents adapted from Hilfinger, Hug, & Git Pro Book
Why Version Control (VC)?
About Git
What makes Git Special?
Getting Started: Creating a Repository
File States
Sections & Local Git Workflow
Walkthrough
Branching
Merging
Conflicts
<<<<<<< HEAD
[Lines of code from HEAD (i.e master)]
=======
[Lines of code from the rebasing/merge target (i.e testing, iss53, dice)]
>>>>>>> [Commit message]
Rebase
Remotes
Pushing & Pulling
Summary: The Git Workflow
Backups
The 3-2-1 Rule
3. Have at least 3 copies of your data
2. Store your data on at least 2 different media� E.g. 1 hard drive, 1 backup server/computer
1. Have at least 1 copy of your data off-site� E.g. on Amazon S3, “the cloud,” under a mattress
What happens if you don’t follow what I said
Backup 1: Amazon S3
Backup 2: Azure Disk Snapshots
Why GitLab still exists today: Hail Mary LVM Snapshots
Impact
Tools for Backups
More Tools
Conclusion
More