Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Jérome Perrin
gitlab-ce
Commits
ffece96d
Commit
ffece96d
authored
Jun 23, 2014
by
Jacob Vosmaer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Spell out rake tasks for omnibus-gitlab
parent
73c1030d
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
46 additions
and
0 deletions
+46
-0
doc/raketasks/backup_restore.md
doc/raketasks/backup_restore.md
+10
-0
doc/raketasks/cleanup.md
doc/raketasks/cleanup.md
+8
-0
doc/raketasks/import.md
doc/raketasks/import.md
+4
-0
doc/raketasks/maintenance.md
doc/raketasks/maintenance.md
+8
-0
doc/raketasks/user_management.md
doc/raketasks/user_management.md
+16
-0
No files found.
doc/raketasks/backup_restore.md
View file @
ffece96d
...
...
@@ -7,6 +7,10 @@ Creates a backup archive of the database and all repositories. This archive will
The filename will be
`[TIMESTAMP]_gitlab_backup.tar`
. This timestamp can be used to restore an specific backup.
```
# omnibus-gitlab
sudo gitlab-rake gitlab:backup:create
# installation from source or cookbook
bundle exec rake gitlab:backup:create RAILS_ENV=production
```
...
...
@@ -42,6 +46,10 @@ Deleting old backups... [SKIPPING]
## Restore a previously created backup
```
# omnibus-gitlab
sudo gitlab-rake gitlab:backup:restore
# installation from source or cookbook
bundle exec rake gitlab:backup:restore RAILS_ENV=production
```
...
...
@@ -84,6 +92,8 @@ Deleting tmp directories...[DONE]
## Configure cron to make daily backups
For omnibus-gitlab, see https://gitlab.com/gitlab-org/omnibus-gitlab/blob/master/README.md#scheduling-a-backup .
```
cd /home/git/gitlab
sudo -u git -H editor config/gitlab.yml # Enable keep_time in the backup section to automatically delete old backups
...
...
doc/raketasks/cleanup.md
View file @
ffece96d
...
...
@@ -5,11 +5,19 @@
Remove namespaces(dirs) from
`/home/git/repositories`
if they don't exist in GitLab database.
```
# omnibus-gitlab
sudo gitlab-rake gitlab:cleanup:dirs
# installation from source or cookbook
bundle exec rake gitlab:cleanup:dirs RAILS_ENV=production
```
Remove repositories (global only for now) from
`/home/git/repositories`
if they don't exist in GitLab database.
```
# omnibus-gitlab
sudo gitlab-rake gitlab:cleanup:repos
# installation from source or cookbook
bundle exec rake gitlab:cleanup:repos RAILS_ENV=production
```
doc/raketasks/import.md
View file @
ffece96d
...
...
@@ -15,6 +15,10 @@ How to use:
2.
run the command below
```
# omnibus-gitlab
sudo gitlab-rake gitlab:import:repos
# installation from source or cookbook
bundle exec rake gitlab:import:repos RAILS_ENV=production
```
...
...
doc/raketasks/maintenance.md
View file @
ffece96d
...
...
@@ -5,6 +5,10 @@
This command gathers information about your GitLab installation and the System it runs on. These may be useful when asking for help or reporting issues.
```
# omnibus-gitlab
sudo gitlab-rake gitlab:env:info
# installation from source or cookbook
bundle exec rake gitlab:env:info RAILS_ENV=production
```
...
...
@@ -52,6 +56,10 @@ It will check that each component was setup according to the installation guide
You may also have a look at our
[
Trouble Shooting Guide
](
https://github.com/gitlabhq/gitlab-public-wiki/wiki/Trouble-Shooting-Guide
)
.
```
# omnibus-gitlab
sudo gitlab-rake gitlab:check
# installation from source or cookbook
bundle exec rake gitlab:check RAILS_ENV=production
```
...
...
doc/raketasks/user_management.md
View file @
ffece96d
...
...
@@ -3,6 +3,10 @@
## Add user as a developer to all projects
```
bash
# omnibus-gitlab
sudo
gitlab-rake gitlab:import:user_to_projects[username@domain.tld]
# installation from source or cookbook
bundle
exec
rake gitlab:import:user_to_projects[username@domain.tld]
```
...
...
@@ -13,12 +17,20 @@ Notes:
-
admin users are added as masters
```
bash
# omnibus-gitlab
sudo
gitlab-rake gitlab:import:all_users_to_all_projects
# installation from source or cookbook
bundle
exec
rake gitlab:import:all_users_to_all_projects
```
## Add user as a developer to all groups
```
bash
# omnibus-gitlab
sudo
gitlab-rake gitlab:import:user_to_groups[username@domain.tld]
# installation from source or cookbook
bundle
exec
rake gitlab:import:user_to_groups[username@domain.tld]
```
...
...
@@ -29,5 +41,9 @@ Notes:
-
admin users are added as owners so they can add additional users to the group
```
bash
# omnibus-gitlab
sudo
gitlab-rake gitlab:import:all_users_to_all_groups
# installation from source or cookbook
bundle
exec
rake gitlab:import:all_users_to_all_groups
```
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment