Problem with migration from Rpi to PC Topic is solved

Have some feedback, questions, suggestions, or just fancy a chat? Pop it in here.
przemko
Posts: 175
Joined: Sun Mar 15, 2020 5:40 pm

Re: Problem with migration from Rpi to PC

Post by przemko »

@Joulinar I will do that but can You tell me what steps I have to make?
1. Remove nextcloud with dietpi-software.
2. Remove /var/www/nextcloud folder if it will be there.
3. Move /dietpi_userdata/nextcloud_data to external hdd.
4. Clean install of nextcloud.
5. ?
Can You help me with that? Is that correct steps and what to do next?
Regards.
Przemek.
User avatar
Joulinar
Posts: 5666
Joined: Sat Nov 16, 2019 12:49 am

Re: Problem with migration from Rpi to PC

Post by Joulinar »

  1. Move /dietpi_userdata/nextcloud_data to external hdd
  2. Remove Nextcloud + MariaDB with dietpi-software
  3. rm -Rf /var/www/nextcloud /mnt/dietpi_userdata/nextcloud_data
  4. rm -Rf /{mnt/dietpi_userdata,var/lib,var/log,etc}/mysql
  5. Clean install of Nextcloud

This should give you an empty NC installation
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
przemko
Posts: 175
Joined: Sun Mar 15, 2020 5:40 pm

Re: Problem with migration from Rpi to PC

Post by przemko »

When I make clean installation,how to restore my old nextcloud config and data? Move backed folder nextcloud_data to /mnt/dietpi_userdata?
Regards,
Przemek
przemko
Posts: 175
Joined: Sun Mar 15, 2020 5:40 pm

Re: Problem with migration from Rpi to PC

Post by przemko »

Hi @Joulinar I make clean install like You said and then copy backup of /dietpi_userdata/nextcloud_data to /dietpi_userdata and now I see nextcloud login screen but cannot login. Wrong user or password or when I try with https I see error: Too many attepmpts from my IP.

Regards.
User avatar
Joulinar
Posts: 5666
Joined: Sat Nov 16, 2019 12:49 am

Re: Problem with migration from Rpi to PC

Post by Joulinar »

did you tried using the default password?

User: admin
PW: global application password
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
przemko
Posts: 175
Joined: Sun Mar 15, 2020 5:40 pm

Re: Problem with migration from Rpi to PC

Post by przemko »

I use that and it works but I don't have my settings and users. I try to add my old user with old password but that don't work. I have bad request error.
Regards.
User avatar
Joulinar
Posts: 5666
Joined: Sat Nov 16, 2019 12:49 am

Re: Problem with migration from Rpi to PC

Post by Joulinar »

you would need to restore the database backup you have done on the old system
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
przemko
Posts: 175
Joined: Sun Mar 15, 2020 5:40 pm

Re: Problem with migration from Rpi to PC

Post by przemko »

@Joulinar Thanks for Your help. I have only 3 users. I have my files and I will make those 3 users with new names and new passwords. I don't won't to struggle with that database because I need nextcloud to my work tomorrow.
Regards and thanks.
User avatar
Joulinar
Posts: 5666
Joined: Sat Nov 16, 2019 12:49 am

Re: Problem with migration from Rpi to PC

Post by Joulinar »

Nextcloud allow you to scan your files system for new added files, if you have copied them in place

Code: Select all

ncc files:scan --all
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
przemko
Posts: 175
Joined: Sun Mar 15, 2020 5:40 pm

Re: Problem with migration from Rpi to PC

Post by przemko »

ncc files:scan --all
I have info that my new users folders are not writable. Can You tell me also If I change owner of:

Code: Select all

-rw-r--r--   1 root     root          1292 mar  7 18:51 dietpi-nextcloud-database-backup.sql
to www-data it could work to restore database?
Regards.
Post Reply