Git for personal backups?
I am looking for a way (not a service, a (set of) tool(s)) to make personal backups (mostly photos & videos) using a solution existing in whatever OS. That's why git sounds interesting.
The thing is that I don't want to keep track of everything pushed in the repository, I would like to disable the versioning functionality so that when I delete a photo and sync the folder with my server, this photo is actually deleted and not saved in revision n - 1.
Is there any way to do this with git? Or maybe do someone know a good multi platform & open source solution for backups?
开发者_如何学GoThank you.
EDIT
Of course, it would be for more than 2 Gb (right now 400Gb) of data. Meaning I don't want to pay for a cloud service. I can host it on my own server.
Instead of git, you might want to look at rsync for that kind of tasks.
It is possible to remove a file completely from a git repo:
git filter-branch --index-filter 'git rm --cached --ignore-unmatch deleted_image.jpg' HEAD
Too much hassle for a personal backup though.
You can use something like robocopy in the backup mirror mode.
Mirror A to B, destroying any files in B that are not present in A (/MIR), copy files in restartable mode (/Z) in case network connection is lost:
Robocopy C:\A \\backupserver\B /MIR /Z
http://en.wikipedia.org/wiki/Robocopy
Or rsync can be used. Use --delete option while mirroring.
http://www.abbeyworkshop.com/howto/unix/nix_rsync/index.html
Dropbox is a great service for doing what you describe. Basically, it keeps a folder synced with an online backup. It also allows you to sync files across multiple computers or view the files online.
Try Sugarsync.com too. It's got 5gb of free storage; similar to dropbox.
As an alternative to rsync, Unison works pretty well for bi-directional sync-ing
I use 2gb free ZenOK Online Backup has is good tool to store my photos from work, it works and I don't have to worry about burning DVDs or buying an external hard drive.
rsync has been mentioned, but if you want versioning too, then look at rsnapshot.
精彩评论