mirror of
https://github.com/go-gitea/gitea
synced 2024-12-24 03:35:55 +01:00
Add charset handling to backup/restore doc (#11062)
Co-authored-by: guillep2k <18600385+guillep2k@users.noreply.github.com>
This commit is contained in:
parent
281029529b
commit
9b7737df2d
@ -75,7 +75,7 @@ mv custom/conf/app.ini /etc/gitea/conf/app.ini # or mv app.ini /etc/gitea/conf/a
|
|||||||
unzip gitea-repo.zip
|
unzip gitea-repo.zip
|
||||||
mv gitea-repo/* /var/lib/gitea/repositories/
|
mv gitea-repo/* /var/lib/gitea/repositories/
|
||||||
chown -R gitea:gitea /etc/gitea/conf/app.ini /var/lib/gitea/repositories/
|
chown -R gitea:gitea /etc/gitea/conf/app.ini /var/lib/gitea/repositories/
|
||||||
mysql -u$USER -p$PASS $DATABASE <gitea-db.sql
|
mysql --default-character-set=utf8mb4 -u$USER -p$PASS $DATABASE <gitea-db.sql
|
||||||
# or sqlite3 $DATABASE_PATH <gitea-db.sql
|
# or sqlite3 $DATABASE_PATH <gitea-db.sql
|
||||||
service gitea restart
|
service gitea restart
|
||||||
```
|
```
|
||||||
|
@ -54,7 +54,7 @@ mv custom/conf/app.ini /etc/gitea/conf/app.ini
|
|||||||
unzip gitea-repo.zip
|
unzip gitea-repo.zip
|
||||||
mv gitea-repo/* /var/lib/gitea/repositories/
|
mv gitea-repo/* /var/lib/gitea/repositories/
|
||||||
chown -R gitea:gitea /etc/gitea/conf/app.ini /var/lib/gitea/repositories/
|
chown -R gitea:gitea /etc/gitea/conf/app.ini /var/lib/gitea/repositories/
|
||||||
mysql -u$USER -p$PASS $DATABASE <gitea-db.sql
|
mysql --default-character-set=utf8mb4 -u$USER -p$PASS $DATABASE <gitea-db.sql
|
||||||
# or sqlite3 $DATABASE_PATH <gitea-db.sql
|
# or sqlite3 $DATABASE_PATH <gitea-db.sql
|
||||||
service gitea restart
|
service gitea restart
|
||||||
```
|
```
|
||||||
|
Loading…
Reference in New Issue
Block a user