summaryrefslogtreecommitdiffstats
path: root/docs/content
diff options
context:
space:
mode:
authormrsdizzie <info@mrsdizzie.com>2019-04-05 09:24:28 -0400
committertechknowlogick <matti@mdranta.net>2019-04-05 09:24:28 -0400
commite14cad79c9c808ead463d8f85e463e22d851bbc0 (patch)
treedb7d8505d2ee18acb6e07ea8940a0460ffa13254 /docs/content
parentd8802b1298edac9ed78de85303fcd0d930a3fdb6 (diff)
downloadgitea-e14cad79c9c808ead463d8f85e463e22d851bbc0.tar.gz
gitea-e14cad79c9c808ead463d8f85e463e22d851bbc0.zip
Include custom configuration file in dump (#6516)
When running the dump command, include the specific configuration file provided as part of the backup. Currently we only zip up custom/ and this misses the config file if it is somewhere else, like /etc/gitea/app.ini Fixes #6034
Diffstat (limited to 'docs/content')
-rw-r--r--docs/content/doc/usage/backup-and-restore.en-us.md3
1 files changed, 2 insertions, 1 deletions
diff --git a/docs/content/doc/usage/backup-and-restore.en-us.md b/docs/content/doc/usage/backup-and-restore.en-us.md
index a0816ebe48..9c24cb3d2f 100644
--- a/docs/content/doc/usage/backup-and-restore.en-us.md
+++ b/docs/content/doc/usage/backup-and-restore.en-us.md
@@ -34,6 +34,7 @@ directory. There should be some output similar to the following:
Inside the `gitea-dump-1482906742.zip` file, will be the following:
+* `app.ini` - Optional copy of configuration file if originally stored outside of the default `custom/` directory
* `custom` - All config or customerize files in `custom/`.
* `data` - Data directory in <GITEA_WORK_DIR>, except sessions if you are using file session. This directory includes `attachments`, `avatars`, `lfs`, `indexers`, sqlite file if you are using sqlite.
* `gitea-db.sql` - SQL dump of database
@@ -53,7 +54,7 @@ Example:
apt-get install gitea
unzip gitea-dump-1482906742.zip
cd gitea-dump-1482906742
-mv custom/conf/app.ini /etc/gitea/conf/app.ini
+mv custom/conf/app.ini /etc/gitea/conf/app.ini # or mv app.ini /etc/gitea/conf/app.ini
unzip gitea-repo.zip
mv gitea-repo/* /var/lib/gitea/repositories/
chown -R gitea:gitea /etc/gitea/conf/app.ini /var/lib/gitea/repositories/