[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Tarsnap backup case study wanted



lör 2015-01-03 klockan 11:58 +0100 skrev Philipp Riegger:
> - backing up svn repositories using "svnadmin dump" (does something
>   similar exist for git?)

A couple of years ago I wrote this piece of ugly Python code to backup
my (bare) git repositories. In addition to mirroring the repositories to
a staging directory there is also some checksumming being done, to make
sure that tarsnap is only being called when there has been a change.

  http://hastebin.com/uwuyazavik.py

Please be careful about using that code as-is. I really don't remember
what environment specific factors I might have assumed.

Otherwise I'm fairly certain that it's good enough to simply, like Arnt
Gulbrandsen suggets, backup the repositories themselves directly.

// Andreas

Attachment: signature.asc
Description: This is a digitally signed message part