Skip to content

Commit 1859c5b

Browse files
authored
Update backup instructions to align with archive structure (#26902)
Signed-off-by: JonRB <[email protected]> fixes #25878
1 parent 6825523 commit 1859c5b

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

docs/content/administration/backup-and-restore.en-us.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,10 @@ directory. There should be some output similar to the following:
4343
Inside the `gitea-dump-1482906742.zip` file, will be the following:
4444

4545
- `app.ini` - Optional copy of configuration file if originally stored outside the default `custom/` directory
46-
- `custom` - All config or customization files in `custom/`.
47-
- `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.
46+
- `custom/` - All config or customization files in `custom/`.
47+
- `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.
48+
- `repos/` - Complete copy of the repository directory.
4849
- `gitea-db.sql` - SQL dump of database
49-
- `gitea-repo.zip` - Complete copy of the repository directory.
5050
- `log/` - Various logs. They are not needed for a recovery or migration.
5151

5252
Intermediate backup files are created in a temporary directory specified either with the
@@ -89,10 +89,10 @@ Example:
8989
```sh
9090
unzip gitea-dump-1610949662.zip
9191
cd gitea-dump-1610949662
92-
mv data/conf/app.ini /etc/gitea/conf/app.ini
92+
mv app.ini /etc/gitea/conf/app.ini
9393
mv data/* /var/lib/gitea/data/
9494
mv log/* /var/lib/gitea/log/
95-
mv repos/* /var/lib/gitea/repositories/
95+
mv repos/* /var/lib/gitea/gitea-repositories/
9696
chown -R gitea:gitea /etc/gitea/conf/app.ini /var/lib/gitea
9797

9898
# mysql
@@ -126,7 +126,7 @@ cd gitea-dump-1610949662
126126
# restore the gitea data
127127
mv data/* /data/gitea
128128
# restore the repositories itself
129-
mv repos/* /data/git/repositories/
129+
mv repos/* /data/git/gitea-repositories/
130130
# adjust file permissions
131131
chown -R git:git /data
132132
# Regenerate Git Hooks
@@ -150,7 +150,7 @@ mv data/conf/app.ini /etc/gitea/app.ini
150150
# restore the gitea data
151151
mv data/* /var/lib/gitea
152152
# restore the repositories itself
153-
mv repos/* /var/lib/gitea/git/repositories
153+
mv repos/* /var/lib/gitea/git/gitea-repositories
154154
# adjust file permissions
155155
chown -R git:git /etc/gitea/app.ini /var/lib/gitea
156156
# Regenerate Git Hooks

0 commit comments

Comments
 (0)