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

Add 'usage' section with explanation of 'dump' command #40

Merged
merged 1 commit into from
Dec 28, 2016
Merged

Add 'usage' section with explanation of 'dump' command #40

merged 1 commit into from
Dec 28, 2016

Conversation

issmirnov
Copy link
Contributor

As per go-gitea/gitea#448, sending a PR that adds a new 'Usage' section to the docs and documents the behavior of the dump command.

Please let me know what you think of the phrasing and structure.

Looking forward, it would be nice to have explanations of all the commands added to these docs. Right now this information is only present in the CLI help:

     web      Start Gitea web server
     serv     This command should only be called by SSH shell
     update   This command should only be called by Git hook
     dump     Dump Gitea files and database
     cert     Generate self-signed certificate
     admin    Preform admin operations on command line
     help, h  Shows a list of commands or help for one command

IMO, web cert and admin would be the most useful.

@lunny lunny added this to the 1.1 milestone Dec 28, 2016
@lunny
Copy link
Member

lunny commented Dec 28, 2016

LGTM

@Bwko
Copy link
Member

Bwko commented Dec 28, 2016

LGTM

@lunny lunny merged commit 0c5db9b into go-gitea:master Dec 28, 2016
@lunny
Copy link
Member

lunny commented Dec 28, 2016

@issmirnov could you send this PR also to release/v1.0?

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)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is wrong, it's not a "mysql dump" it's a plain "SQL dump" for any database that you happen to use.

bkcsoft pushed a commit that referenced this pull request Jan 3, 2017
* Remove manual line breaks, and update sql comment.
@lunny
Copy link
Member

lunny commented Jan 6, 2017

And dump has a new option -d=mysql, that means you can backup your sqlite as mysql SQL syntax.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants