From 1859c5b636637d0a827c4b67ab0f59fe4b635f87 Mon Sep 17 00:00:00 2001 From: JonRB <4564448+eeyrjmr@users.noreply.github.com> Date: Tue, 5 Sep 2023 02:26:12 +0100 Subject: [PATCH] Update backup instructions to align with archive structure (#26902) Signed-off-by: JonRB fixes https://github.com/go-gitea/gitea/issues/25878 --- .../administration/backup-and-restore.en-us.md | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/docs/content/administration/backup-and-restore.en-us.md b/docs/content/administration/backup-and-restore.en-us.md index 251bd53afe..d46efecf99 100644 --- a/docs/content/administration/backup-and-restore.en-us.md +++ b/docs/content/administration/backup-and-restore.en-us.md @@ -43,10 +43,10 @@ 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 the default `custom/` directory -- `custom` - All config or customization files in `custom/`. -- `data` - Data directory (APP_DATA_PATH), except sessions if you are using file session. This directory includes `attachments`, `avatars`, `lfs`, `indexers`, SQLite file if you are using SQLite. +- `custom/` - All config or customization files in `custom/`. +- `data/` - Data directory (APP_DATA_PATH), except sessions if you are using file session. This directory includes `attachments`, `avatars`, `lfs`, `indexers`, SQLite file if you are using SQLite. +- `repos/` - Complete copy of the repository directory. - `gitea-db.sql` - SQL dump of database -- `gitea-repo.zip` - Complete copy of the repository directory. - `log/` - Various logs. They are not needed for a recovery or migration. Intermediate backup files are created in a temporary directory specified either with the @@ -89,10 +89,10 @@ Example: ```sh unzip gitea-dump-1610949662.zip cd gitea-dump-1610949662 -mv data/conf/app.ini /etc/gitea/conf/app.ini +mv 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/ +mv repos/* /var/lib/gitea/gitea-repositories/ chown -R gitea:gitea /etc/gitea/conf/app.ini /var/lib/gitea # mysql @@ -126,7 +126,7 @@ cd gitea-dump-1610949662 # restore the gitea data mv data/* /data/gitea # restore the repositories itself -mv repos/* /data/git/repositories/ +mv repos/* /data/git/gitea-repositories/ # adjust file permissions chown -R git:git /data # Regenerate Git Hooks @@ -150,7 +150,7 @@ mv data/conf/app.ini /etc/gitea/app.ini # restore the gitea data mv data/* /var/lib/gitea # restore the repositories itself -mv repos/* /var/lib/gitea/git/repositories +mv repos/* /var/lib/gitea/git/gitea-repositories # adjust file permissions chown -R git:git /etc/gitea/app.ini /var/lib/gitea # Regenerate Git Hooks