Git for personal backups?

git backup metadata
git backup local changes
bup backup script
git backup repository full
git backup local branch
git lfs backup

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?

Thank you.


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.

Git for personal backups?, Instead of git, you might want to look at rsync for that kind of tasks. git-backup. A tool to backup all of your personal git repositories from one of the following sources: GitHub (either repositories or gists) GitLab; Bitbucket

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

Or rsync can be used. Use --delete option while mirroring.

bup/bup: Very efficient backup system based on the git , Ever wondered what would happen to your local Git repositories you use to store private projects, documents or other arbitrary data after your hard drive crashes  How to back up a git repository. As any good systems administrator will tell you, backups are an essential part of properly managing any system. And if he's ever tried to back up busy git repositories in a naive way with rsync or tar, he'll also complain about corrupt repositories after restoring them.

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.

Using Git as a backup tool, this seems to be a good idea - Bitbucket has free private repos. love to hear from you. 1 Kudo GitHub as a backup tool? GitHub is intented to  I would contend that using Subversion for local personal projects is overkill, whereas Git is decidedly not. Git will take up less space (because of SVN's inefficient "revisions" concept versus Git's object snapshots), requires less setup (git init versus a dozen svnadmin commands and setting up permissions and so on), is easier to back up (git clone --bare [or git push origin if you use

Try too. It's got 5gb of free storage; similar to dropbox.

Can I use GitHub as free unlimited cloud storage? , Let's say you have an external backup disk and you want to record all the history Bitbucket offers free hosting of private repositories, and Github will host some  glacier_backup. Conduct personal backups to Amazon's Glacier service. The task is made vastly simpler due to Amazon's bridge between S3 and Glacier by way of transition policies. In other words, you can copy files to an S3 bucket which then transitions the files automatically to Glacier behind the scenes.

As an alternative to rsync, Unison works pretty well for bi-directional sync-ing

git remotes, My idea is to initialise a (remote) Git repository on my USB drive, be installed on any machine I'd use as my personal machine, and stores the  You can back up all of a repository's Git data (such as project files and commit history), as well as much data from GitHub (such as issues and pull requests), with BackHub, which creates daily recurring backups of your repositories with snapshots up to 30 days back in time. BackHub is available in GitHub Marketplace.

Git as backup solution?, I personally use restic and with rclone you can sync the repo to (basically) any cloud storage place. Restic can even backup directly to them as well through its  Using git as a backup mechanism can be attractive, and despite what other folks have said, git works just fine with binary files. Read this page from the Git Book for more information on this topic.

Can github be used for general purpose file backups? : git, public key to your github account, if you need to backup private repositories. # To restore this repo in the future, download it from B2, extract it  The directory pointed to by the local_root key must be owned by the git user when mounted (mounting with the uid= of the git user for CIFS and SMB) or the user that you are executing the backup tasks under (for Omnibus packages, this is the git user).

Guide to Backing Up GitHub to B2 Cloud Storage, Git is a backup system itself: for example, you can version your .txt fed and treated well, and given its personal history, expects the same thing  Personal access tokens can only be used for HTTPS Git operations. If your repository uses an SSH remote URL, you will need to switch the remote from SSH to HTTPS . If you are not prompted for your username and password, your credentials may be cached on your computer.

  • Sorry if I'm missing the point, but what's wrong with a good old file host or shared web hosting to FTP files to?
  • You ever heard of dropbox? it's free, it's awesome, and its great, it's semi-versioned and you can access it from any computer or it integrates into your OS.
  • "I want a versioning tool without versioning" sounds weird. Also "I want everything for nothing" is a quite enthusiastic attitude :D
  • @autsinbv: you don't get it at all. By syncing my files on a server at home, on my laptop, on my school computer, or wherever, the chances to lose anything are ... 0! With an external HDD - and that's what I am doing right now - I can't sync remotely.
  • @autsinbv: that's why I am asking for tools/ideas, not a solution. I am hoping ubuntu one's server sources will be released one day to run it ourselves...
  • The huge benefit of git would be versioned backups. rsync obviously doesn't do this for you. Versioned backups are important if one of your files (say... your encrypted bitcoin wallet) gets corrupted. Without a versioned backup of some kinda, you'd be effed
  • This is the difference OP wants, he does not want versioned backups and is looking for a solution for that, rsync might take care of that
  • Thats easy to use, but neither client-side nor server-side programs are free/open source.
  • What would be the advantage of using rsnapshot in this case, if git would also provide versioning by default?
  • rsnapshot is very easy to setup, and in my case I was already using rsync for backups, so rsnapshot is just an extension of that, and so I didn't have to learn a whole new system.
  • I see, so rsync+rsnapshot would provide the option to have versioned and unversioned backups, while git would basically only do versioned
  • yes - so if you want to run a random adhoc backup run your usual rsync, otherwise rsnapshot can be run as and when needed, so you control when the versioning occurs. Of course rsnapshot can be scheduled as well in cron etc.