Having a well-thought-out backup strategy can help you to avoid the crushing feeling that comes with finding out that all your projects are gone.
There are lots of ways to back up your data from personal SSDs and flash drives to repository hosting services like GitHub, GitLab and BitBucket to various cloud storages like Dropbox, Google Drive and OneDrive.
What methods have you tried and what worked best for you?
Latest comments (16)
I usually use GitHub and also on my VPS-es I use rclone.org/ with mega.com/ on my
$HOMEtwice a day.Keep multiple copies on multiple hard disks/DVDs/storage media(atleast 2) and some on online SCM like bitbucket/gitlab/your-server.
Make a Note on how to build the project with exact dependencies cos by the time I have to reuse it the build instructions might be incompatible with my current system.
Keep installers of all tools required because you may never know when a tool gets deprecated.
Have multiple backup strategies since every strategy has a weakness.
GitHub repo for private projects.
I have a private git repository at home, hosted in a small energy-saving server, that is reachable over VPN. It has 2 NAS grade drives, that are configured as RAID 1 (mirrored). Once a week, important data of those drives are backed up to an external drive.
All repositories are cloned to my laptop and workstation PC and are kept up-to-date.
Thinking about backing up to cloud too (with encryption, of course), but I still don't trust cloud providers.
DevOps Repo
For small projects/projects i don't think will need anymore, i have created a repository where i dump the whole project.
Github because nothing I do is so important it has to be private.
I format my computer, recall I had a lingering shell script in my home directory that I really needed, reconstruct it from scratch, name it something weird that doesn't get backed up properly, forget to use it for a while, format my computer.
Repeat x \infty.
:)
Private Github, and lots and lots of hard drives.
I always use GitHub and every end of semester I back up no projects in a hard drive