Skip to content
This repository was archived by the owner on Dec 2, 2017. It is now read-only.

Commit 90a2cf7

Browse files
issmirnovbkcsoft
authored andcommitted
add 'usage' section with explanation of 'dump' command
1 parent 9055e11 commit 90a2cf7

File tree

2 files changed

+57
-0
lines changed

2 files changed

+57
-0
lines changed

content/doc/usage.en-us.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
---
2+
date: "2016-12-27T16:00:00+02:00"
3+
title: "Usage"
4+
slug: "usage"
5+
weight: 35
6+
toc: false
7+
draft: false
8+
menu:
9+
sidebar:
10+
name: "Usage"
11+
weight: 35
12+
identifier: "usage"
13+
---
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
---
2+
date: "2017-01-01T16:00:00+02:00"
3+
title: "Usage: Backup and Restore"
4+
slug: "backup-and-restore"
5+
weight: 11
6+
toc: true
7+
draft: false
8+
menu:
9+
sidebar:
10+
parent: "usage"
11+
name: "Backup and Restore"
12+
weight: 11
13+
identifier: "backup-and-restore"
14+
---
15+
16+
# Backup and Restore
17+
18+
Gitea currently has a `dump` command that will save your installation to a zip file. There will be a `restore` command implemented at some point in the future. You will be able to use this to back up your installation, as well as make migrating servers easier.
19+
20+
## Backup Command (`dump`)
21+
22+
First, switch to the user running gitea: `su git` (or whatever user you are using). Run `./gitea dump` in the gitea installation directory. You should see some output similar to this:
23+
24+
```
25+
2016/12/27 22:32:09 Creating tmp work dir: /tmp/gitea-dump-417443001
26+
2016/12/27 22:32:09 Dumping local repositories.../home/git/gitea-repositories
27+
2016/12/27 22:32:22 Dumping database...
28+
2016/12/27 22:32:22 Packing dump files...
29+
2016/12/27 22:32:34 Removing tmp work dir: /tmp/gitea-dump-417443001
30+
2016/12/27 22:32:34 Finish dumping in file gitea-dump-1482906742.zip
31+
```
32+
33+
Inside the `gitea-dump-1482906742.zip` file, you will find the following:
34+
35+
* `custom/conf/app.ini` - This is your server config.
36+
* `gitea-db.sql` - SQL dump of your database.
37+
* `gitea-repo.zip` - This zip will be a complete copy of your repo folder.
38+
See Config -> repository -> `ROOT` for the location.
39+
* `log/` - this will contain various logs. You don't need these if you are doing
40+
a migration.
41+
42+
## Restore Command (`restore`)
43+
44+
WIP: Does not exist yet.

0 commit comments

Comments
 (0)