i would prefer "git bundle create <backup file> --all --remotes"

To unbundle use : git clone <backup file> to clone from it.

i also liked "git bundle verify" to verify the bundle.

-Pankaj

On Fri, Aug 17, 2012 at 2:32 PM, Thomas Ferris Nicolaisen
<tfn...@gmail.com>wrote:

> On Friday, August 17, 2012 10:52:54 AM UTC+2, Michal Idziorek wrote:
>>
>> Hello,
>>
>> What would be the most elegant way to fully backup a bare git repository.
>>
>> Would the following approach work fine?
>>
>> tar -cf repository.tar repository/
>>
>> I wonder what happens if the repository is accessed during the backup?
>>
>>
> Safest way I guess is to clone it, as this will ensure consistency.
>
> If you clone it locally, you probably better use the --no-hardlink option
> to make sure it's a proper copy.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Git for human beings" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/git-users/-/Nt8ocMwAch0J.
>
> To post to this group, send email to git-users@googlegroups.com.
> To unsubscribe from this group, send email to
> git-users+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/git-users?hl=en.
>

-- 
You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To post to this group, send email to git-users@googlegroups.com.
To unsubscribe from this group, send email to 
git-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/git-users?hl=en.

Reply via email to