Update backup-restore-migrate-guide.md

Signed-off-by: Stavros Kois <47820033+stavros-k@users.noreply.github.com>
This commit is contained in:
Stavros Kois 2024-04-14 01:23:00 +03:00 committed by GitHub
parent 77af3ebf00
commit 8e32cbb012
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 12 additions and 12 deletions

View File

@ -28,13 +28,13 @@ If you have not already done so install PGAdmin and the [tcdbinfo.sh script](htt
bash tcdbinfo.sh
```
![tcdbinfo-output](./img/tcdbinfo-output.png)
<!-- ![tcdbinfo-output](./img/tcdbinfo-output.png) -->
2. Add Nextcloud to PGAdmin using the connection info from previous step.
![pgadmin-connection1](./img/pgadmin-connection1.png)
![pgadmin-connection2](./img/pgadmin-connection2.png)
<!-- ![pgadmin-connection1](./img/pgadmin-connection1.png) -->
<!-- ![pgadmin-connection2](./img/pgadmin-connection2.png) -->
3. Backup Nextcloud database.
![pgadmin-backup](./img/pgadmin-backup.png)
<!-- ![pgadmin-backup](./img/pgadmin-backup.png) -->
### Backup User Data
@ -50,7 +50,7 @@ This step is not required but to have a clean installation remove all UserData f
ls -la
```
![userdata-old](./img/userdata-old.png)
<!-- ![userdata-old](./img/userdata-old.png) -->
:::warning
@ -66,7 +66,7 @@ rm -rf <folder>
rm .ocdata .htaccess index.html nextcloud.log
```
![userdata-clean](./img/userdata-clean.png)
<!-- ![userdata-clean](./img/userdata-clean.png) -->
:::
@ -82,7 +82,7 @@ Install with a temporary admin user that you do not currently use for Nextcloud
Setup Nextcloud User Data storage with your previous User Data dataset or the dataset you copied your User Data to.
![userdata-setting](./img/userdata-setting.png)
<!-- ![userdata-setting](./img/userdata-setting.png) -->
### Restore Database
@ -100,13 +100,13 @@ Wait for Nextcloud to fully deploy before proceeding.
2. Add Nextcloud to PGAdmin as guided in [steps 1 and 2 here](#backup-nextcloud-database).
3. In PGAdmin right click on the database and select restore as shown below.
![pgadmin-restore1](./img/pgadmin-restore1.png)
<!-- ![pgadmin-restore1](./img/pgadmin-restore1.png) -->
4. Select the database backup you created previously.
![pgadmin-restore2](./img/pgadmin-restore2.png)
<!-- ![pgadmin-restore2](./img/pgadmin-restore2.png) -->
5. Configure Data/Objects as shown below.
![pgadmin-restore3](./img/pgadmin-restore3.png)
<!-- ![pgadmin-restore3](./img/pgadmin-restore3.png) -->
6. Configure Options as shown below and click restore.
![pgadmin-restore4](./img/pgadmin-restore4.png)
<!-- ![pgadmin-restore4](./img/pgadmin-restore4.png) -->
:::caution PGAdmin Error
@ -129,7 +129,7 @@ Wait for Nextcloud to fully deploy before proceeding.
:::
1. Open a shell for the Nextcloud main pod as shown below. Ensure your are selecting the correct pod it should just say nextcloud for both Pods (followed by random characters only) and Containers as shown below.
![nextcloud-cli](./img/nextcloud-cli.png)
<!-- ![nextcloud-cli](./img/nextcloud-cli.png) -->
2. Run the following commands in the Nextcloud shell.
```bash