Kyralessa Kyralessa -4 years ago 287
Git Question

git for important file backup - why not?

Say I want to use Git to back up my PC.

I don't care about a full system backup. I don't mind having to reinstall things if my hard drive crashes. I just want to back up my data files, which are all on one partition.

To back up with Git, I could create a repo on that partiion, clone it (bare) on a separate drive or system, and periodically commit and push to back up my files.

What, if any, are the drawbacks to using Git for backup in this way?

Answer Source

Git repository takes as much space as every version of your files, compressed. If you're planning to archive precompressed data like photos, be prepared for enormous .git growth.

As of 2011 Git does not use binary diffs like, for example, Subversion, and stores binary files as they are, compressed.

If you're short of disk space consider using other, more efficient in terms of disk space usage, specialized backup solutions. Borg, attic, restic, duplicity, zbackup come to mind.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download