summaryrefslogtreecommitdiff
path: root/doc/administration/raketasks/geo.md
blob: 9f3b31442f37cc519c06a3e6de5b9a725d3d821c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
# Geo Rake Tasks **[PREMIUM ONLY]**

## Git housekeeping

There are few tasks you can run to schedule a git housekeeping to start at the 
next repository sync in a **Secondary node**:

### Incremental Repack

This is equivalent of running `git repack -d` on a _bare_ repository.

**Omnibus Installation**

```
sudo gitlab-rake geo:git:housekeeping:incremental_repack
```

**Source Installation**

```bash
sudo -u git -H bundle exec rake geo:git:housekeeping:incremental_repack RAILS_ENV=production
```

### Full Repack

This is equivalent of running `git repack -d -A --pack-kept-objects` on a 
_bare_ repository which will optionally, write a reachability bitmap index
when this is enabled in GitLab.

**Omnibus Installation**

```
sudo gitlab-rake geo:git:housekeeping:full_repack
```

**Source Installation**

```bash
sudo -u git -H bundle exec rake geo:git:housekeeping:full_repack RAILS_ENV=production
```

### GC

This is equivalent of running `git gc` on a _bare_ repository, optionally writing
a reachability bitmap index when this is enabled in GitLab.

**Omnibus Installation**

```
sudo gitlab-rake geo:git:housekeeping:gc
```

**Source Installation**

```bash
sudo -u git -H bundle exec rake geo:git:housekeeping:gc RAILS_ENV=production
```