5 ms·
How viable would it be to keep all of your data in a git repository? Let's say I'm backing up 25gb of music, could I have Dropbox sync everything but the .git f
by whichdan 14y ago
How viable would it be to keep all of your data in a git repository? Let's say I'm backing up 25gb of music, could I have Dropbox sync everything but the .git folder, and just do a git revert if shit goes down? Will it end up using twice as much space?
- rmc 14y agoLook at git-annex, it works on top of git and is good at handling large files, and will not require twice the space. If you use plain git, you'll probably need twice the space. Files stored in git are compressed, but music is already compressed, so there will be little savings. You'll also need a lot of memory if you want to copy files VIA git.
- whichdan 14y agoThanks for the suggestion - it also led me to some other cool projects like git-media. If git doesn't keep its own copy of the data, a Dropbox "failure" would still be unrecoverable, right?
- rmc 14y agoIf git doesn't keep its own copy of the data Plain regular git does keep a copy of it's data in your .git folder, and every checkout/clone/copy of that repository stores the data, and it stores all old copies of all files. That's how git works. It also makes it a bit unweildy for large files like that. What's cool (about git) is that the hash revisions (i.e. what git uses instead of version numbers) is basically a checksum of every file and every old version of every file. So if an old version of a file changed, the checksum would change and you'd be on a different branch!
- whichdan 14y agoThat makes a lot of sense, thanks!