summaryrefslogtreecommitdiffstats
path: root/src/site
diff options
context:
space:
mode:
authorJames Moger <james.moger@gitblit.com>2014-04-28 14:56:15 -0400
committerJames Moger <james.moger@gitblit.com>2014-05-02 15:31:01 -0400
commit4d81c92b668bce79d7db7bc278f0d399fe693e65 (patch)
tree04e98e6182deeb78724d9a39a1d9c25a8efa10d2 /src/site
parenta98ebb22fd088bbc2e40d752b065e4eb2210a734 (diff)
downloadgitblit-4d81c92b668bce79d7db7bc278f0d399fe693e65.tar.gz
gitblit-4d81c92b668bce79d7db7bc278f0d399fe693e65.zip
Implementation of a ticket mgration tool
Diffstat (limited to 'src/site')
-rw-r--r--src/site/tickets_replication.mkd24
1 files changed, 24 insertions, 0 deletions
diff --git a/src/site/tickets_replication.mkd b/src/site/tickets_replication.mkd
index 472c7270..a72df27f 100644
--- a/src/site/tickets_replication.mkd
+++ b/src/site/tickets_replication.mkd
@@ -133,3 +133,27 @@ You can trigger a live reindex of tickets for any backend using Gitblit's RPC in
curl --insecure --user admin:admin "https://localhost:8443/rpc?req=reindex_tickets"
curl --insecure --user admin:admin "https://localhost:8443/rpc?req=reindex_tickets&name=gitblit.git"
+#### Migrating Tickets between Ticket Services
+
+##### Gitblit GO
+
+Gitblit GO ships with a script that executes the *com.gitblit.MigrateTickets* tool included in the Gitblit jar file. This tool will migrate *all* tickets in *all* repositories **AND** must be run when Gitblit is offline.
+
+ migrate-tickets <outputservice> <baseFolder>
+
+For example, this would migrate tickets from the current ticket service configured in `c:\gitblit-data\gitblit.properties` to a Redis ticket service. The Redis service is configured in the same config file so you must be sure to properly setup all appropriate Redis settings.
+
+ migrate-tickets com.gitblit.tickets.RedisTicketService c:\gitblit-data
+
+##### Gitblit WAR/Express
+
+Gitblit WAR/Express does not ship with anything other than the WAR, but you can still migrate tickets offline with a little extra effort.
+
+*Windows*
+
+ java -cp "C:/path/to/WEB-INF/lib/*" com.gitblit.MigrateTickets <outputservice> --baseFolder <baseFolder>
+
+*Linux/Unix/Mac OSX*
+
+ java -cp /path/to/WEB-INF/lib/* com.gitblit.MigrateTickets <outputservice> --baseFolder <baseFolder>
+