1 |
On Sun, Dec 16, 2018 at 12:13 AM Georgy Yakovlev <gyakovlev@g.o> wrote: |
2 |
> |
3 |
> On Saturday, December 15, 2018 8:40:38 PM PST Matt Turner wrote: |
4 |
> > On Sat, Dec 15, 2018 at 11:16 PM Alec Warner <antarus@g.o> wrote: |
5 |
> > > - Disk usage for git vs rsync |
6 |
> > |
7 |
> > This is why I have not switched. With git you pull down increasing |
8 |
> > amounts of history, whereas with rsync the data fits easily in a <1GB |
9 |
> > partition. |
10 |
> |
11 |
> Recent portage can use sync-depth = 1 |
12 |
> repo dir no longer grows as it used to and it's works fine unlike initial |
13 |
> implementation that was giving trouble |
14 |
> |
15 |
> https://bugs.gentoo.org/552814 |
16 |
> |
17 |
> du -hs /var/db/repos/gentoo |
18 |
> 350M /var/db/repos/gentoo |
19 |
> |
20 |
> example /etc/portage/repos.conf/gentoo.conf : |
21 |
> [DEFAULT] |
22 |
> main-repo = gentoo |
23 |
> |
24 |
> [gentoo] |
25 |
> auto-sync = yes |
26 |
> location = /var/db/repos/gentoo |
27 |
> sync-type = git |
28 |
> sync-uri = https://github.com/gentoo-mirror/gentoo.git |
29 |
> sync-depth = 1 |
30 |
> sync-git-clone-extra-opts = -b master |
31 |
> sync-git-verify-commit-signature = true |
32 |
> |
33 |
> |
34 |
> sync is almost instantaneous compared to rsync, but some folks not going to |
35 |
> like github as a mirror in this case. |
36 |
|
37 |
Thanks for the information. That seems to work great! |