# Svn to git Migration

**URL:** <https://forum.inductiveautomation.com/t/svn-to-git-migration/32123>\
**Category:** General Discussion\
**Created:** [February 11, 2020, 11:34am UTC](https://forum.inductiveautomation.com/t/svn-to-git-migration/32123 "2020-02-11T11:34:22Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![snasre](https://avatars.discourse-cdn.com/v4/letter/s/74df32/32.png) [@snasre](https://forum.inductiveautomation.com/u/snasre)\
**Post date:** [February 11, 2020, 11:34am UTC](https://forum.inductiveautomation.com/t/svn-to-git-migration/32123/1 "2020-02-11T11:34:22Z")

</div>

We have a big subversion repo and it is structured as trunk and revision branches. The branches are created from the trunk always. This repo is around 38GB.

We want to migrate this repo into git.

I have tried migrating smaller repos in this structure using svn2git and svn git clone and it worked well.

It works even when I do individual branches.

However, If I migrate a few branches along with the trunk it fails with both the above tools and gives a checksum error.

What does this checksum mean?

I have also tried migrating the complete repo at once but it is taking ages and not sure when it might complete or fail. This is going really slow.

Using below command

```auto
>svn2git file:///var/dump/repo/ 
         --metadata 
         --authors ../authors-transform.txt 
         --trunk /eng/xxx/trunk 
         --branches /eng/xxx/branches/Branchx 
         --branches /eng/xxx/branches/Branchy

```

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [February 11, 2020, 12:33pm UTC](https://forum.inductiveautomation.com/t/svn-to-git-migration/32123/2 "2020-02-11T12:33:56Z")

</div>

This may not be the best forum for this question, but that’s an unusually large SVN repo. Taking hours and hours to migrate doesn’t sound surprising at all. IIRC, conversion time is not linear with repo size. That is, a 2x bigger repo will take more than 2x time.

---

<div class="post-metadata">

**Author:** ![Sanderd17](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/sanderd17/32/8735_2.png) [@Sanderd17](https://forum.inductiveautomation.com/u/Sanderd17)\
**Post date:** [February 11, 2020, 3:25pm UTC](https://forum.inductiveautomation.com/t/svn-to-git-migration/32123/3 "2020-02-11T15:25:12Z")

</div>

> [@snasre](#):
>
> This repo is around 38GB

Are there a lot of binary files? Git isn't very good with binary files, though there are some workarounds, like git LFS.

---

<div class="post-metadata">

**Author:** ![snasre](https://avatars.discourse-cdn.com/v4/letter/s/74df32/32.png) [@snasre](https://forum.inductiveautomation.com/u/snasre)\
**Post date:** [February 11, 2020, 3:37pm UTC](https://forum.inductiveautomation.com/t/svn-to-git-migration/32123/4 "2020-02-11T15:37:20Z")

</div>

There are binary files but they are in other branches, and we are not migrating them. We will migrate them with LFS only. For rest of the branches which does not contain binary files I am getting checksum mismatch error. and it is taking lot of time
