Bacula-users

[Bacula-users] Backing up a bare git repository in full and incremental mode

2015-02-11 13:25:35
Subject: [Bacula-users] Backing up a bare git repository in full and incremental mode
From: Thorsten Reichelt <bacula-users AT thorsten-reichelt DOT de>
To: bacula-users AT lists.sourceforge DOT net
Date: Wed, 11 Feb 2015 19:05:04 +0100
Hi!

I have to backup one or more bare git repositories but I cannot figure
out whats the best way to do this.

I want to use this backup plan:
Every month => full backup (all branches, tags...)
Every night => incremental backup (changes since last incremental/full)

For that I run a pre-backup script that calls

===
cd $repo
git bundle create /tmp/gitbackups/$repo-all --all
===

for every found repository to perform the monthly full backup.
But I am not shure how to perform an incremental or differential backup
with git. For my SVN repositories I can simply call something like
"svnadmin dump -r 1024 --incremental > /tmp/svnbackups/$repo-inc".

But how to handle this with git?
Maybe I can call "git bundle create --since="yesterday"
/tmp/gitbackups/$repo-inc --all" but seems not to be the same.

Are there any working solutions for this? ;)

Thorsten

Attachment: 0x0B6A93FC.asc
Description: application/pgp-keys

------------------------------------------------------------------------------
Dive into the World of Parallel Programming. The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net/
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users
<Prev in Thread] Current Thread [Next in Thread>