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
1
Merge Requests
1
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
nexedi
gitlab-ce
Commits
b3cc4a87
Commit
b3cc4a87
authored
Nov 03, 2021
by
Gabriel Yoachum
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix examples for rake import commands
parent
2656e78f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
doc/raketasks/import.md
doc/raketasks/import.md
+2
-2
No files found.
doc/raketasks/import.md
View file @
b3cc4a87
...
@@ -58,7 +58,7 @@ To import bare repositories into a GitLab instance:
...
@@ -58,7 +58,7 @@ To import bare repositories into a GitLab instance:
-
Omnibus Installation
-
Omnibus Installation
```
shell
```
shell
sudo
gitlab-rake gitlab:import:repos[
'/var/opt/gitlab/git-data/repository-import-$(date "+%Y-%m-%d")'
]
sudo
gitlab-rake gitlab:import:repos[
"/var/opt/gitlab/git-data/repository-import-
$(
date
"+%Y-%m-%d"
)
"
]
```
```
-
Installation from source. Before running this command you need to change to the directory where
-
Installation from source. Before running this command you need to change to the directory where
...
@@ -66,7 +66,7 @@ To import bare repositories into a GitLab instance:
...
@@ -66,7 +66,7 @@ To import bare repositories into a GitLab instance:
```
shell
```
shell
cd
/home/git/gitlab
cd
/home/git/gitlab
sudo
-u
git
-H
bundle
exec
rake gitlab:import:repos[
'/var/opt/gitlab/git-data/repository-import-$(date "+%Y-%m-%d")'
]
RAILS_ENV
=
production
sudo
-u
git
-H
bundle
exec
rake gitlab:import:repos[
"/var/opt/gitlab/git-data/repository-import-
$(
date
"+%Y-%m-%d"
)
"
]
RAILS_ENV
=
production
```
```
## Example output
## Example output
...
...
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