forked from gitbucket/gitbucket
-
Notifications
You must be signed in to change notification settings - Fork 0
DirectoryStructure
Naoki Takezoe edited this page Jan 14, 2014
·
14 revisions
GitBucket persists all data into HOME/.gitbucket in default (In 1.9 or before, HOME/gitbucket is default).
This directory has following structure:
* /HOME/gitbucket
* /repositoties
* /USER_NAME
* / REPO_NAME.git (substance of repository. GitServlet sees this directory)
* / REPO_NAME.wiki.git (wiki repository)
* /data
* /USER_NAME
* /files
* avatar.xxx (image file of user avatar)
* /tmp
* /_upload
* /SESSION_ID (removed at session timeout)
* yyyyMMddHHmmSSsss (temporary file for file uploading)
* /USER_NAME
* /init-REPO_NAME (used in repository creation and removed after it) ... unused since 1.8
* /REPO_NAME.wiki (working directory for wiki repository) ... unused since 1.8
* /REPO_NAME
* /download (temporary directories are created under this directory)
There are some ways to specify the data directory instead of the default location.
- Environment variable GITBUCKET_HOME
- System property gitbucket.home (e.g.
-Dgitbucket.home=PATH_TO_DATADIR) - Command line option for embedded Jetty (e.g.
java -jar gitbucket.war --data=PATH_TO_DATADIR) - Context parameter gitbucket.home in web.xml like below:
<context-param>
<param-name>gitbucket.home</param-name>
<param-value>PATH_TO_DATADIR</param-value>
</context-param>