From 185c5ae2c468c71e08649b619185bad5959c0c57 Mon Sep 17 00:00:00 2001 From: Daniel Vos <45820840+vosdev@users.noreply.github.com> Date: Tue, 19 Jan 2021 03:05:11 +0100 Subject: [PATCH] Update back-up restore example for 1.13 changes (#14374) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Daniël Vos Co-authored-by: Lauris BH Co-authored-by: techknowlogick --- .../doc/usage/backup-and-restore.en-us.md | 22 ++++++++++------- .../doc/usage/backup-and-restore.zh-cn.md | 24 ++++++++++++------- .../doc/usage/backup-and-restore.zh-tw.md | 20 ++++++++++++++++ 3 files changed, 49 insertions(+), 17 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 5e822dc05..fb0216cd1 100644 --- a/docs/content/doc/usage/backup-and-restore.en-us.md +++ b/docs/content/doc/usage/backup-and-restore.en-us.md @@ -72,15 +72,21 @@ involves moving files to their correct locations and restoring a database dump. Example: ```sh -apt-get install gitea -unzip gitea-dump-1482906742.zip -cd gitea-dump-1482906742 -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/ +unzip gitea-dump-1610949662.zip +cd gitea-dump-1610949662 +mv data/conf/app.ini /etc/gitea/conf/app.ini +mv data/* /var/lib/gitea/data/ +mv log/* /var/lib/gitea/log/ +mv repos/* /var/lib/gitea/repositories/ +chown -R gitea:gitea /etc/gitea/conf/app.ini /var/lib/gitea + +# mysql mysql --default-character-set=utf8mb4 -u$USER -p$PASS $DATABASE