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

Followup to #40 - remove manual line breaks. #51

Merged
merged 3 commits into from
Jan 3, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 4 additions & 9 deletions content/doc/usage/backup-and-restore.en-us.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
date: "2016-12-27T16:00:00+02:00"
date: "2017-01-01T16:00:00+02:00"
title: "Usage: Backup and Restore"
slug: "backup-and-restore"
weight: 11
Expand All @@ -15,16 +15,11 @@ menu:

# Backup and Restore

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.
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.

## Backup Command (`dump`)

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:
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:

```
2016/12/27 22:32:09 Creating tmp work dir: /tmp/gitea-dump-417443001
Expand All @@ -38,7 +33,7 @@ First, switch to the user running gitea: `su git` (or whatever user you are
Inside the `gitea-dump-1482906742.zip` file, you will find the following:

* `custom/conf/app.ini` - This is your server config.
* `gitea-db.sql` - the mysql dump (TODO add info for other databases)
* `gitea-db.sql` - SQL dump of your database.
* `gitea-repo.zip` - This zip will be a complete copy of your repo folder.
See Config -> repository -> `ROOT` for the location.
* `log/` - this will contain various logs. You don't need these if you are doing
Expand Down