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
+19-1
Original file line number
Diff line number
Diff line change
@@ -17,7 +17,25 @@ The plugin provides 2 ways to backup the H2 database:
17
17
- via an administration page and a backup button
18
18
- via an HTTP call to http://YOUR_GITBUCKET/database/backup
19
19
20
-
In current version database backup file is written to `GITBUCKET_HOME/.gitbucket/gitbucket-database-backup.zip`.
20
+
Default backup file points to `GITBUCKET_DATA/gitbucket-database-backup.zip` where _GITBUCKET_DATA_ is on a standard gitbucket installation `~/.gitbucket`
21
+
22
+
### UI usage
23
+
24
+
- goto the `System Administration` menu, section `H2 Backup`
25
+
- modify the file path if the default one doesn't fit your needs
Using your prefered tool (curl, wget, ...) it is possible fire a backup of the H2 database.
33
+
34
+
The URL to call looks like `http://YOUR_GITBUCKET/database/backup`.
35
+
36
+
You can pass an optional argument `dest` that references the destination file path where the backup will be done on the server. For example calling `http://YOUR_GITBUCKET/database/backup?dest=/var/backups/gitbucket.zip` will do an H2 backup of the gitbucket database into the file `/var/backups/gitbucket.zip`.
37
+
38
+
On success, you will receive a `HTTP 200` answer with a body containing the word `done`.
0 commit comments