This repository has been archived on 2023-07-11. You can view files and clone it, but cannot push or open issues or pull requests.
gitea-migration/Migration.md

26 lines
521 B
Markdown
Raw Normal View History

2021-09-05 02:50:03 +02:00
## Migration from [imbert to zentralwerk](https://codimd.c3d2.de/inbert-2021)
2021-09-05 00:25:29 +02:00
2021-09-05 02:50:03 +02:00
[based on https://docs.gitea.io/en-us/backup-and-restore/](https://docs.gitea.io/en-us/backup-and-restore/)
2021-09-05 00:25:29 +02:00
### @imbert
2021-09-05 00:25:29 +02:00
```shell
sudo -u git gitea dump -c /etc/gitea/app.ini
```
### @gitea.hq.c3d2.de (lxc 315 @server6)
2021-09-05 00:25:29 +02:00
- copied `gitea-dump-*.zip` from imbert to `/tmp/`
2021-09-05 00:25:29 +02:00
```shell
/etc/nixos/migrate.sh
```
Check consistency:
```shell
su gitea
cd
export GITEA_WORK_DIR=/var/lib/gitea
/nix/store/*-gitea-1.15.2/bin/gitea doctor --all
```