You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+12-4Lines changed: 12 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,9 +4,11 @@ http://sund.la/glup
4
4
5
5
----
6
6
7
-
A collection of scripts to use omnibus-gitlab's own backup ```gitlab-rake``` command on a cron schedule and rsync to another server if wanted or to restore a backup.
7
+
A collection of scripts to use omnibus-gitlab's own backup ```gitlab-rake``` command on a cron schedule and rsync to another server, if wanted, or to restore a backup.
8
8
9
-
Also will backup and copy the Gitlab-CI DB.
9
+
Also will backup and copy the Gitlab-CI DB if configured.
10
+
11
+
This script is now more omnibus-gitlab centric. Compare your config fiile with the template! Usage with a source install is possible but not expressly shown here.
10
12
11
13
#### Clone
12
14
@@ -16,7 +18,7 @@ clone to your directory of choice. I usually use ```/usr/local/sbin```
16
18
17
19
Change ```/etc/gitlab/gitlab.rb``` to expire backups
18
20
19
-
Change ```config/gitlab.yml``` to expire backups
21
+
```
20
22
# backup keep time
21
23
gitlab_rails['backup_keep_time'] = 604800
22
24
```
@@ -45,10 +47,16 @@ remoteServer="" #remote host
45
47
remoteDest=""#remote path
46
48
sshKeyPath=""#path to an alternate ssh key, if needed.
47
49
remotePort=22 # ssh port
50
+
## Only change the below setting if you have git's home in a different location or are installing gitlab from source
51
+
gitHome="/var/opt/gitlab"
52
+
## only set below if rvm is in use and you need to source the rvm env file
53
+
# echo $(rvm env --path)
54
+
RVM_envPath=""
48
55
## only use the below settings if your destination is using rsync in daemon mode
49
56
remoteModule=""
50
57
rsync_password_file=""
51
-
enableCIBackup=1 #change to true or 1 to enable CI backups
58
+
checkQuota="0"#change to true or 1 to enable
59
+
enableCIBackup="0"#change to true or 1 to enable CI backups
0 commit comments