Migrate from NextCloudPi 23 to newer server Intel x64 version 24?

Hello there
I am planning to migrate my NextCloudPI v1.49 mini server running NC 23.0.8.1 to a newer server Intel running NC latest stable version 24.

Migration documentation is vague enough to make me feel uncomfortable to start without asking first to this community :sweat_smile:

Anyone with such experience to share?

Reason to upgrade is moving to a more robust server Intel with version 24 with PHP8 and using photo apps for facial and object recognition for better categorization and certainly more performances.

Thak you.

Hello!

I would move to a new installation with the same version of NC and PHP, etc.

Then i would upgrade.

I think it gets easier to debug if you get any problem and maybe you can generate a snapshot if system breaks.

Is there a special reason for php 8 or is it crucial in any way?
Otherwise just install nextcloudpi on your new system an restore your backup as described here:

Nextcloudpi is running on Debian 11, Nextcloud 24 (Iā€™m curious why you havenā€™t updated yet) and php 7.4
Furthermore you keep your administration and security tools you are used from your system now.

@henriquemohr good advice to align the target and source version for migration

@REAPERSbattlecry reason why I havenā€™t updated yet my current NextCloudPI is because I donā€™t see the possibility to upgrade to version 24 in admin/overview
Maybe because I donā€™t have PHP 7.4 ?

What option is less risky?

  1. on source system: upgrade from 23.0.8.1 to 24 then migrate on version 24
  2. use the migration on version 23.0.8.1 from source to target and later upgrade to version 24

Any improvement in migration tool for version 24?
Anyone did any of these options?

Ohh so you havenā€™t updated to Debian 11 yet.
With the update comes the php upgrade to 7.4.
It is possible to go that road with ncp-dist-upgrade.
Please backup your instance before you do that.

If you migrate from 23 to 23 or from 24 to 24 doesnā€™t matter.
As far as I understood is the migration tool to move a user from a instance to another instance. Your server configuration wonā€™t be transfered.

2 Likes

ok so I decided for the most quick and risky option (ncp-dist-upgrade on raspi server)

andā€¦ it clamorously failed :exploding_head:

raspi is now not booting up and have to restore or fix in some way

any help to understand or fix what it went wrong is appreciated

step#1
before to run the dist upgrade I made an image of disk, hopefully restoring it (I wll do now) will set the system up and running again

sudo dd if=/dev/sdb of=/media/myBackupDrive/raspimage/BextCloudPi1.49.image
117231408+0 records in
117231408+0 records out
60022480896 bytes (60 GB, 56 GiB) copied, 2963.91 s, 20.3 MB/s

step #2 ncp-dist-upgrade run and fails

Calculating upgrade... Error!
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 libc6-dev : Breaks: libgcc-8-dev (< 8.4.0-2~) but 8.3.0-6+rpi1 is to be installed
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.
Something went wrong. Fix it and try again

step #3 installation of gcc-8 done and OK

Restarting services possibly affected by the upgrade:
  postfix: restarting...done.
  ssh: restarting...done.
  cron: restarting...done.

step #4 restarting ncp-dist-upgrade ends with no output :sleepy:

user@host:/ $ sudo ncp-dist-upgrade

>>> ATTENTION <<<
This is a dangerous process that is only guaranteed to work properly if you
have not made manual changes in the system. Backup the SD card first and
proceed at your own risk.

Note that this is not a requirement for NCP to continue working properly.
The current distribution will keep receiving updates for some time.

Do you want to continue? [y/N]
y
user@host:/ $

full logs of sudo ncp-dist-upgrade

>>> ATTENTION <<<
This is a dangerous process that is only guaranteed to work properly if you
have not made manual changes in the system. Backup the SD card first and
proceed at your own risk.

Note that this is not a requirement for NCP to continue working properly.
The current distribution will keep receiving updates for some time.

Do you want to continue? [y/N]
y
Maintenance mode enabled
Hit:1 http://archive.raspberrypi.org/debian buster InRelease
Hit:2 http://raspbian.raspberrypi.org/raspbian buster InRelease
Reading package lists... Done
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Calculating upgrade... Done
The following packages will be upgraded:
  libxslt1.1
1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/215 kB of archives.
After this operation, 0 B of additional disk space will be used.
apt-listchanges: Can't set locale; make sure $LC_* and $LANG are correct!
apt-listchanges: Reading changelogs...
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
	LANGUAGE = (unset),
	LC_ALL = (unset),
	LC_TIME = "fr_FR.UTF-8",
	LC_MONETARY = "fr_FR.UTF-8",
	LC_ADDRESS = "fr_FR.UTF-8",
	LC_TELEPHONE = "fr_FR.UTF-8",
	LC_NAME = "fr_FR.UTF-8",
	LC_MEASUREMENT = "fr_FR.UTF-8",
	LC_IDENTIFICATION = "fr_FR.UTF-8",
	LC_NUMERIC = "fr_FR.UTF-8",
	LC_PAPER = "fr_FR.UTF-8",
	LANG = "en_GB.UTF-8"
    are supported and installed on your system.
perl: warning: Falling back to a fallback locale ("en_GB.UTF-8").
locale: Cannot set LC_ALL to default locale: No such file or directory
(Reading database ... 80661 files and directories currently installed.)
Preparing to unpack .../libxslt1.1_1.1.32-2.2~deb10u2_armhf.deb ...
Unpacking libxslt1.1:armhf (1.1.32-2.2~deb10u2) over (1.1.32-2.2~deb10u1) ...
Setting up libxslt1.1:armhf (1.1.32-2.2~deb10u2) ...
Processing triggers for libc-bin (2.28-10+rpt2+rpi1+deb10u1) ...
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Note, selecting 'php7.3-common' instead of 'php7.3-fileinfo'
The following packages were automatically installed and are no longer required:
  libgd3 libsmbclient libzip4 php7.3-readline ttf-dejavu-core
Use 'sudo apt autoremove' to remove them.
The following packages will be REMOVED:
  php-igbinary* php-imagick* php-redis* php-smbclient* php7.3* php7.3-bz2* php7.3-cli* php7.3-curl* php7.3-fpm* php7.3-gd* php7.3-intl* php7.3-json*
  php7.3-ldap* php7.3-mbstring* php7.3-opcache* php7.3-xml* php7.3-zip*
0 upgraded, 0 newly installed, 17 to remove and 0 not upgraded.
After this operation, 11.2 MB disk space will be freed.
apt-listchanges: Can't set locale; make sure $LC_* and $LANG are correct!
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
	LANGUAGE = (unset),
	LC_ALL = (unset),
	LC_TIME = "fr_FR.UTF-8",
	LC_MONETARY = "fr_FR.UTF-8",
	LC_ADDRESS = "fr_FR.UTF-8",
	LC_TELEPHONE = "fr_FR.UTF-8",
	LC_NAME = "fr_FR.UTF-8",
	LC_MEASUREMENT = "fr_FR.UTF-8",
	LC_IDENTIFICATION = "fr_FR.UTF-8",
	LC_NUMERIC = "fr_FR.UTF-8",
	LC_PAPER = "fr_FR.UTF-8",
	LANG = "en_GB.UTF-8"
    are supported and installed on your system.
perl: warning: Falling back to a fallback locale ("en_GB.UTF-8").
locale: Cannot set LC_ALL to default locale: No such file or directory
(Reading database ... 80660 files and directories currently installed.)
Removing php-redis (4.2.0-1) ...
Removing php-igbinary (3.0.0-1) ...
Removing php-imagick (3.4.3-4.1) ...
Removing php-smbclient (0.9.0-3+b1) ...
Removing php7.3 (7.3.31-1~deb10u1) ...
Removing php7.3-bz2 (7.3.31-1~deb10u1) ...
Removing php7.3-fpm (7.3.31-1~deb10u1) ...
Conf php7.3-fpm disabled.
apache2_invoke prerm: Disable configuration php7.3-fpm
Removing php7.3-cli (7.3.31-1~deb10u1) ...
Removing php7.3-curl (7.3.31-1~deb10u1) ...
Removing php7.3-gd (7.3.31-1~deb10u1) ...
Removing php7.3-intl (7.3.31-1~deb10u1) ...
Removing php7.3-json (7.3.31-1~deb10u1) ...
Removing php7.3-ldap (7.3.31-1~deb10u1) ...
Removing php7.3-mbstring (7.3.31-1~deb10u1) ...
Removing php7.3-opcache (7.3.31-1~deb10u1) ...
Removing php7.3-xml (7.3.31-1~deb10u1) ...
Removing php7.3-zip (7.3.31-1~deb10u1) ...
Processing triggers for man-db (2.8.5-2) ...
(Reading database ... 80494 files and directories currently installed.)
Purging configuration files for php7.3-mbstring (7.3.31-1~deb10u1) ...
Purging configuration files for php7.3-fpm (7.3.31-1~deb10u1) ...
apache2_invoke postrm: Purging state for php7.3-fpm
dpkg: warning: while removing php7.3-fpm, directory '/etc/php/7.3/fpm/conf.d' not empty so not removed
Purging configuration files for php7.3-json (7.3.31-1~deb10u1) ...
Purging configuration files for php7.3-bz2 (7.3.31-1~deb10u1) ...
Purging configuration files for php-smbclient (0.9.0-3+b1) ...
Purging configuration files for php7.3-intl (7.3.31-1~deb10u1) ...
Purging configuration files for php7.3-xml (7.3.31-1~deb10u1) ...
Purging configuration files for php7.3-cli (7.3.31-1~deb10u1) ...
dpkg: warning: while removing php7.3-cli, directory '/etc/php/7.3/cli/conf.d' not empty so not removed
Purging configuration files for php7.3-opcache (7.3.31-1~deb10u1) ...
Purging configuration files for php-igbinary (3.0.0-1) ...
Purging configuration files for php7.3-zip (7.3.31-1~deb10u1) ...
Purging configuration files for php7.3-ldap (7.3.31-1~deb10u1) ...
Purging configuration files for php-imagick (3.4.3-4.1) ...
Purging configuration files for php7.3-curl (7.3.31-1~deb10u1) ...
Purging configuration files for php-redis (4.2.0-1) ...
Purging configuration files for php7.3-gd (7.3.31-1~deb10u1) ...
Processing triggers for systemd (241-7~deb10u8+rpi1) ...
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  libgd3 libsmbclient libzip4 php7.3-readline ttf-dejavu-core
Use 'sudo apt autoremove' to remove them.
The following packages will be REMOVED:
  php7.3-mysql*
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
After this operation, 355 kB disk space will be freed.
apt-listchanges: Can't set locale; make sure $LC_* and $LANG are correct!
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
	LANGUAGE = (unset),
	LC_ALL = (unset),
	LC_TIME = "fr_FR.UTF-8",
	LC_MONETARY = "fr_FR.UTF-8",
	LC_ADDRESS = "fr_FR.UTF-8",
	LC_TELEPHONE = "fr_FR.UTF-8",
	LC_NAME = "fr_FR.UTF-8",
	LC_MEASUREMENT = "fr_FR.UTF-8",
	LC_IDENTIFICATION = "fr_FR.UTF-8",
	LC_NUMERIC = "fr_FR.UTF-8",
	LC_PAPER = "fr_FR.UTF-8",
	LANG = "en_GB.UTF-8"
    are supported and installed on your system.
perl: warning: Falling back to a fallback locale ("en_GB.UTF-8").
locale: Cannot set LC_ALL to default locale: No such file or directory
(Reading database ... 80479 files and directories currently installed.)
Removing php7.3-mysql (7.3.31-1~deb10u1) ...
(Reading database ... 80466 files and directories currently installed.)
Purging configuration files for php7.3-mysql (7.3.31-1~deb10u1) ...
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Note, selecting 'php-redis' instead of 'php7.3-redis'
The following packages were automatically installed and are no longer required:
  libgd3 libsmbclient libzip4 php7.3-readline ttf-dejavu-core
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Note, selecting 'php7.3-common' instead of 'php7.3-exif'
The following packages were automatically installed and are no longer required:
  libgd3 libsmbclient libzip4 php7.3-readline ttf-dejavu-core
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  libgd3 libsmbclient libzip4 php7.3-readline ttf-dejavu-core
Use 'sudo apt autoremove' to remove them.
The following packages will be REMOVED:
  php-bcmath* php7.3-bcmath*
0 upgraded, 0 newly installed, 2 to remove and 0 not upgraded.
After this operation, 68.6 kB disk space will be freed.
apt-listchanges: Can't set locale; make sure $LC_* and $LANG are correct!
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
	LANGUAGE = (unset),
	LC_ALL = (unset),
	LC_TIME = "fr_FR.UTF-8",
	LC_MONETARY = "fr_FR.UTF-8",
	LC_ADDRESS = "fr_FR.UTF-8",
	LC_TELEPHONE = "fr_FR.UTF-8",
	LC_NAME = "fr_FR.UTF-8",
	LC_MEASUREMENT = "fr_FR.UTF-8",
	LC_IDENTIFICATION = "fr_FR.UTF-8",
	LC_NUMERIC = "fr_FR.UTF-8",
	LC_PAPER = "fr_FR.UTF-8",
	LANG = "en_GB.UTF-8"
    are supported and installed on your system.
perl: warning: Falling back to a fallback locale ("en_GB.UTF-8").
locale: Cannot set LC_ALL to default locale: No such file or directory
(Reading database ... 80466 files and directories currently installed.)
Removing php-bcmath (2:7.3+69) ...
Removing php7.3-bcmath (7.3.31-1~deb10u1) ...
(Reading database ... 80454 files and directories currently installed.)
Purging configuration files for php7.3-bcmath (7.3.31-1~deb10u1) ...
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  libgd3 libsmbclient libzip4 php7.3-readline ttf-dejavu-core
Use 'sudo apt autoremove' to remove them.
The following packages will be REMOVED:
  php7.3-gmp*
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
After this operation, 85.0 kB disk space will be freed.
apt-listchanges: Can't set locale; make sure $LC_* and $LANG are correct!
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
	LANGUAGE = (unset),
	LC_ALL = (unset),
	LC_TIME = "fr_FR.UTF-8",
	LC_MONETARY = "fr_FR.UTF-8",
	LC_ADDRESS = "fr_FR.UTF-8",
	LC_TELEPHONE = "fr_FR.UTF-8",
	LC_NAME = "fr_FR.UTF-8",
	LC_MEASUREMENT = "fr_FR.UTF-8",
	LC_IDENTIFICATION = "fr_FR.UTF-8",
	LC_NUMERIC = "fr_FR.UTF-8",
	LC_PAPER = "fr_FR.UTF-8",
	LANG = "en_GB.UTF-8"
    are supported and installed on your system.
perl: warning: Falling back to a fallback locale ("en_GB.UTF-8").
locale: Cannot set LC_ALL to default locale: No such file or directory
(Reading database ... 80454 files and directories currently installed.)
Removing php7.3-gmp (7.3.31-1~deb10u1) ...
(Reading database ... 80445 files and directories currently installed.)
Purging configuration files for php7.3-gmp (7.3.31-1~deb10u1) ...
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Note, selecting 'php-imagick' instead of 'php7.3-imagick'
The following packages were automatically installed and are no longer required:
  libgd3 libsmbclient libzip4 php7.3-readline ttf-dejavu-core
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Get:1 http://raspbian.raspberrypi.org/raspbian bullseye InRelease [15.0 kB]
Get:2 http://archive.raspberrypi.org/debian bullseye InRelease [23.7 kB]                           
Get:3 http://raspbian.raspberrypi.org/raspbian bullseye/main armhf Packages [13.2 MB]
Get:4 http://archive.raspberrypi.org/debian bullseye/main armhf Packages [301 kB]
Get:5 http://raspbian.raspberrypi.org/raspbian bullseye/contrib armhf Packages [60.2 kB]
Get:6 http://raspbian.raspberrypi.org/raspbian bullseye/non-free armhf Packages [106 kB]
Get:7 http://raspbian.raspberrypi.org/raspbian bullseye/rpi armhf Packages [1360 B]
Fetched 13.7 MB in 7s (1901 kB/s)                                                                                                                             
Reading package lists... Done
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Calculating upgrade... Error!
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 libc6-dev : Breaks: libgcc-8-dev (< 8.4.0-2~) but 8.3.0-6+rpi1 is to be installed
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.
Something went wrong. Fix it and try again

full logs of sudo apt install gcc-8-base

Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  libc-dev-bin libfl2 libgd3 libisl19 libpng-tools libsmbclient libzip4 linux-libc-dev php7.3-readline ttf-dejavu-core
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
  binutils binutils-arm-linux-gnueabihf binutils-common cpp-8 gcc-10-base gcc-8 gcc-9-base libasan5 libatomic1 libbinutils libbrotli1 libc-bin libc-dev-bin
  libc-l10n libc6 libc6-dbg libcbor0 libcc1-0 libcrypt1 libctf-nobfd0 libctf0 libfido2-1 libfreetype6 libgcc-8-dev libgcc-s1 libgfortran5 libgomp1 libisl23
  libpng-tools libpng16-16 libselinux1 libstdc++6 libtirpc-common libtirpc3 libubsan1 locales manpages manpages-dev openssh-client openssh-server
  openssh-sftp-server runit-helper zlib1g
Suggested packages:
  binutils-doc gcc-8-locales gcc-8-doc glibc-doc keychain libpam-ssh monkeysphere ssh-askpass molly-guard
Recommended packages:
  libc6-dev libc-devtools libnss-nis libnss-nisplus
The following packages will be REMOVED:
  libc6-dev libfreetype6-dev libgcc1 libpng-dev zlib1g-dev
The following NEW packages will be installed:
  gcc-10-base gcc-9-base libcbor0 libcrypt1 libctf-nobfd0 libctf0 libfido2-1 libgcc-s1 libisl23 runit-helper
The following packages will be upgraded:
  binutils binutils-arm-linux-gnueabihf binutils-common cpp-8 gcc-8 gcc-8-base libasan5 libatomic1 libbinutils libbrotli1 libc-bin libc-dev-bin libc-l10n
  libc6 libc6-dbg libcc1-0 libfreetype6 libgcc-8-dev libgfortran5 libgomp1 libpng-tools libpng16-16 libselinux1 libstdc++6 libtirpc-common libtirpc3
  libubsan1 locales manpages manpages-dev openssh-client openssh-server openssh-sftp-server zlib1g
34 upgraded, 10 newly installed, 5 to remove and 865 not upgraded.
Need to get 43.5 MB of archives.
After this operation, 13.2 MB disk space will be freed.
Do you want to continue? [Y/n] Y
Get:1 http://archive.raspberrypi.org/debian bullseye/main armhf libc-l10n all 2.31-13+rpt2+rpi1+deb11u4 [864 kB]
Get:3 http://archive.raspberrypi.org/debian bullseye/main armhf libc6-dbg armhf 2.31-13+rpt2+rpi1+deb11u4 [6379 kB]
Get:2 http://mirrors.ircam.fr/pub/raspbian/raspbian bullseye/main armhf gcc-10-base armhf 10.2.1-6+rpi1 [202 kB]
Get:4 http://mirrors.ircam.fr/pub/raspbian/raspbian bullseye/main armhf libgcc-s1 armhf 10.2.1-6+rpi1 [36.1 kB]
Get:5 http://mirrors.ircam.fr/pub/raspbian/raspbian bullseye/main armhf libcrypt1 armhf 1:4.4.18-4 [93.2 kB]
Get:6 http://archive.raspberrypi.org/debian bullseye/main armhf libc-dev-bin armhf 2.31-13+rpt2+rpi1+deb11u4 [267 kB]                         
Get:7 http://archive.raspberrypi.org/debian bullseye/main armhf locales all 2.31-13+rpt2+rpi1+deb11u4 [4086 kB]                               
Get:8 http://mirrors.ircam.fr/pub/raspbian/raspbian bullseye/main armhf libcbor0 armhf 0.5.0+dfsg-2 [19.5 kB]
Get:9 http://archive.raspberrypi.org/debian bullseye/main armhf libc6 armhf 2.31-13+rpt2+rpi1+deb11u4 [2302 kB]                             
Get:10 http://archive.raspberrypi.org/debian bullseye/main armhf libc-bin armhf 2.31-13+rpt2+rpi1+deb11u4 [681 kB]
Get:11 http://mirrors.ircam.fr/pub/raspbian/raspbian bullseye/main armhf libfido2-1 armhf 1.6.0-2 [47.2 kB]
Get:12 http://mirrors.ircam.fr/pub/raspbian/raspbian bullseye/main armhf libselinux1 armhf 3.1-3 [79.4 kB]
Get:13 http://mirrors.ircam.fr/pub/raspbian/raspbian bullseye/main armhf openssh-sftp-server armhf 1:8.4p1-5+deb11u1 [42.4 kB]
Get:14 http://mirrors.ircam.fr/pub/raspbian/raspbian bullseye/main armhf openssh-client armhf 1:8.4p1-5+deb11u1 [794 kB]
Get:15 http://mirrors.ircam.fr/pub/raspbian/raspbian bullseye/main armhf runit-helper all 2.10.3 [7808 B]  
Get:16 http://mirrors.ircam.fr/pub/raspbian/raspbian bullseye/main armhf openssh-server armhf 1:8.4p1-5+deb11u1 [318 kB]
Get:18 http://mirrors.ircam.fr/pub/raspbian/raspbian bullseye/main armhf libstdc++6 armhf 10.2.1-6+rpi1 [408 kB]
Get:17 http://mirrors.fe.up.pt/raspbian/raspbian bullseye/main armhf zlib1g armhf 1:1.2.11.dfsg-2+deb11u2 [84.8 kB]                     
Get:19 http://mirrors.ircam.fr/pub/raspbian/raspbian bullseye/main armhf libcc1-0 armhf 10.2.1-6+rpi1 [38.3 kB]                
Get:20 http://mirrors.ircam.fr/pub/raspbian/raspbian bullseye/main armhf binutils-arm-linux-gnueabihf armhf 2.35.2-2+rpi1 [2105 kB]   
Get:21 http://mirrors.ircam.fr/pub/raspbian/raspbian bullseye/main armhf libbinutils armhf 2.35.2-2+rpi1 [393 kB]            
Get:22 http://mirrors.ircam.fr/pub/raspbian/raspbian bullseye/main armhf binutils armhf 2.35.2-2+rpi1 [61.7 kB]
Get:23 http://mirrors.ircam.fr/pub/raspbian/raspbian bullseye/main armhf binutils-common armhf 2.35.2-2+rpi1 [2220 kB]
Get:24 http://mirrors.ircam.fr/pub/raspbian/raspbian bullseye/main armhf libctf-nobfd0 armhf 2.35.2-2+rpi1 [100 kB]
Get:25 http://mirrors.ircam.fr/pub/raspbian/raspbian bullseye/main armhf libctf0 armhf 2.35.2-2+rpi1 [41.9 kB] 
Get:26 http://mirrors.ircam.fr/pub/raspbian/raspbian bullseye/main armhf libgomp1 armhf 10.2.1-6+rpi1 [84.1 kB]
Get:27 http://distrib-coffee.ipsl.jussieu.fr/pub/linux/raspbian/raspbian bullseye/main armhf libatomic1 armhf 10.2.1-6+rpi1 [8212 B]
Get:28 http://distrib-coffee.ipsl.jussieu.fr/pub/linux/raspbian/raspbian bullseye/main armhf gcc-9-base armhf 9.3.0-22+rpi1 [199 kB]
Get:29 http://distrib-coffee.ipsl.jussieu.fr/pub/linux/raspbian/raspbian bullseye/main armhf libasan5 armhf 9.3.0-22+rpi1 [348 kB]
Get:30 http://distrib-coffee.ipsl.jussieu.fr/pub/linux/raspbian/raspbian bullseye/main armhf libubsan1 armhf 10.2.1-6+rpi1 [746 kB]
Get:31 http://distrib-coffee.ipsl.jussieu.fr/pub/linux/raspbian/raspbian bullseye/main armhf gcc-8 armhf 8.4.0-7+rpi1 [7272 kB]
Get:33 http://mirrors.ircam.fr/pub/raspbian/raspbian bullseye/main armhf libisl23 armhf 0.23-1 [497 kB] 
Get:34 http://mirrors.ircam.fr/pub/raspbian/raspbian bullseye/main armhf cpp-8 armhf 8.4.0-7+rpi1 [6811 kB]                              
Get:32 http://distrib-coffee.ipsl.jussieu.fr/pub/linux/raspbian/raspbian bullseye/main armhf libgcc-8-dev armhf 8.4.0-7+rpi1 [594 kB]
Get:35 http://mirrors.ircam.fr/pub/raspbian/raspbian bullseye/main armhf libgfortran5 armhf 10.2.1-6+rpi1 [232 kB]
Get:36 http://distrib-coffee.ipsl.jussieu.fr/pub/linux/raspbian/raspbian bullseye/main armhf gcc-8-base armhf 8.4.0-7+rpi1 [195 kB]
Get:37 http://mirrors.ircam.fr/pub/raspbian/raspbian bullseye/main armhf manpages-dev all 5.10-1 [2309 kB]
Get:38 http://mirrors.ircam.fr/pub/raspbian/raspbian bullseye/main armhf manpages all 5.10-1 [1412 kB]
Get:39 http://mirrors.ircam.fr/pub/raspbian/raspbian bullseye/main armhf libbrotli1 armhf 1.0.9-2+b1 [261 kB]
Get:40 http://distrib-coffee.ipsl.jussieu.fr/pub/linux/raspbian/raspbian bullseye/main armhf libpng-tools armhf 1.6.37-3 [138 kB]
Get:41 http://distrib-coffee.ipsl.jussieu.fr/pub/linux/raspbian/raspbian bullseye/main armhf libpng16-16 armhf 1.6.37-3 [276 kB]
Get:42 http://mirrors.ircam.fr/pub/raspbian/raspbian bullseye/main armhf libfreetype6 armhf 2.10.4+dfsg-1+deb11u1 [353 kB]
Get:43 http://distrib-coffee.ipsl.jussieu.fr/pub/linux/raspbian/raspbian bullseye/main armhf libtirpc-common all 1.3.1-1+deb11u1 [13.5 kB]
Get:44 http://distrib-coffee.ipsl.jussieu.fr/pub/linux/raspbian/raspbian bullseye/main armhf libtirpc3 armhf 1.3.1-1+deb11u1 [71.7 kB]
Fetched 43.5 MB in 6s (7503 kB/s)
apt-listchanges: Can't set locale; make sure $LC_* and $LANG are correct!
Reading changelogs... Done
apt-listchanges: Mailing root: apt-listchanges: news for sbam
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
	LANGUAGE = (unset),
	LC_ALL = (unset),
	LC_TIME = "fr_FR.UTF-8",
	LC_MONETARY = "fr_FR.UTF-8",
	LC_ADDRESS = "fr_FR.UTF-8",
	LC_TELEPHONE = "fr_FR.UTF-8",
	LC_NAME = "fr_FR.UTF-8",
	LC_MEASUREMENT = "fr_FR.UTF-8",
	LC_IDENTIFICATION = "fr_FR.UTF-8",
	LC_NUMERIC = "fr_FR.UTF-8",
	LC_PAPER = "fr_FR.UTF-8",
	LANG = "en_GB.UTF-8"
    are supported and installed on your system.
perl: warning: Falling back to a fallback locale ("en_GB.UTF-8").
locale: Cannot set LC_ALL to default locale: No such file or directory
Extracting templates from packages: 100%
Preconfiguring packages ...
Selecting previously unselected package gcc-10-base:armhf.
(Reading database ... 80446 files and directories currently installed.)
Preparing to unpack .../gcc-10-base_10.2.1-6+rpi1_armhf.deb ...
Unpacking gcc-10-base:armhf (10.2.1-6+rpi1) ...
Setting up gcc-10-base:armhf (10.2.1-6+rpi1) ...
Selecting previously unselected package libgcc-s1:armhf.
(Reading database ... 80451 files and directories currently installed.)
Preparing to unpack .../libgcc-s1_10.2.1-6+rpi1_armhf.deb ...
Unpacking libgcc-s1:armhf (10.2.1-6+rpi1) ...
Replacing files in old package libgcc1:armhf (1:8.3.0-6+rpi1) ...
Setting up libgcc-s1:armhf (10.2.1-6+rpi1) ...
Selecting previously unselected package libcrypt1:armhf.
(Reading database ... 80453 files and directories currently installed.)
Preparing to unpack .../libcrypt1_1%3a4.4.18-4_armhf.deb ...
Unpacking libcrypt1:armhf (1:4.4.18-4) ...
Replacing files in old package libc6:armhf (2.28-10+rpt2+rpi1+deb10u1) ...
Setting up libcrypt1:armhf (1:4.4.18-4) ...
(Reading database ... 80458 files and directories currently installed.)
Preparing to unpack .../libc-l10n_2.31-13+rpt2+rpi1+deb11u4_all.deb ...
Unpacking libc-l10n (2.31-13+rpt2+rpi1+deb11u4) over (2.28-10+rpt2+rpi1+deb10u1) ...
Selecting previously unselected package libcbor0:armhf.
Preparing to unpack .../libcbor0_0.5.0+dfsg-2_armhf.deb ...
Unpacking libcbor0:armhf (0.5.0+dfsg-2) ...
Selecting previously unselected package libfido2-1:armhf.
Preparing to unpack .../libfido2-1_1.6.0-2_armhf.deb ...
Unpacking libfido2-1:armhf (1.6.0-2) ...
Preparing to unpack .../libselinux1_3.1-3_armhf.deb ...
Unpacking libselinux1:armhf (3.1-3) over (2.8-1+b1) ...
Setting up libselinux1:armhf (3.1-3) ...
(Reading database ... 80470 files and directories currently installed.)
Preparing to unpack .../openssh-sftp-server_1%3a8.4p1-5+deb11u1_armhf.deb ...
Unpacking openssh-sftp-server (1:8.4p1-5+deb11u1) over (1:7.9p1-10+deb10u2+rpt1) ...
Preparing to unpack .../openssh-client_1%3a8.4p1-5+deb11u1_armhf.deb ...
Unpacking openssh-client (1:8.4p1-5+deb11u1) over (1:7.9p1-10+deb10u2+rpt1) ...
Selecting previously unselected package runit-helper.
Preparing to unpack .../runit-helper_2.10.3_all.deb ...
Unpacking runit-helper (2.10.3) ...
Preparing to unpack .../openssh-server_1%3a8.4p1-5+deb11u1_armhf.deb ...
Unpacking openssh-server (1:8.4p1-5+deb11u1) over (1:7.9p1-10+deb10u2+rpt1) ...
Preparing to unpack .../libc6-dbg_2.31-13+rpt2+rpi1+deb11u4_armhf.deb ...
Unpacking libc6-dbg:armhf (2.31-13+rpt2+rpi1+deb11u4) over (2.28-10+rpt2+rpi1+deb10u1) ...
(Reading database ... 80499 files and directories currently installed.)
Removing libfreetype6-dev:armhf (2.9.1-3+deb10u2) ...
Removing libpng-dev:armhf (1.6.36-6) ...
Removing zlib1g-dev:armhf (1:1.2.11.dfsg-1+deb10u1) ...
Removing libc6-dev:armhf (2.28-10+rpt2+rpi1+deb10u1) ...
(Reading database ... 79848 files and directories currently installed.)
Preparing to unpack .../libc-dev-bin_2.31-13+rpt2+rpi1+deb11u4_armhf.deb ...
Unpacking libc-dev-bin (2.31-13+rpt2+rpi1+deb11u4) over (2.28-10+rpt2+rpi1+deb10u1) ...
Preparing to unpack .../locales_2.31-13+rpt2+rpi1+deb11u4_all.deb ...
Unpacking locales (2.31-13+rpt2+rpi1+deb11u4) over (2.28-10+rpt2+rpi1+deb10u1) ...
Preparing to unpack .../libc6_2.31-13+rpt2+rpi1+deb11u4_armhf.deb ...
Checking for services that may need to be restarted...
Checking init scripts...
Unpacking libc6:armhf (2.31-13+rpt2+rpi1+deb11u4) over (2.28-10+rpt2+rpi1+deb10u1) ...
Setting up libc6:armhf (2.31-13+rpt2+rpi1+deb11u4) ...
Checking for services that may need to be restarted...
Checking init scripts...

Restarting services possibly affected by the upgrade:
  postfix: restarting...done.
  ssh: restarting...done.
  cron: restarting...done.

Services restarted successfully.
(Reading database ... 79839 files and directories currently installed.)
Preparing to unpack .../libc-bin_2.31-13+rpt2+rpi1+deb11u4_armhf.deb ...
Unpacking libc-bin (2.31-13+rpt2+rpi1+deb11u4) over (2.28-10+rpt2+rpi1+deb10u1) ...
Setting up libc-bin (2.31-13+rpt2+rpi1+deb11u4) ...
(Reading database ... 79839 files and directories currently installed.)
Preparing to unpack .../zlib1g_1%3a1.2.11.dfsg-2+deb11u2_armhf.deb ...
Unpacking zlib1g:armhf (1:1.2.11.dfsg-2+deb11u2) over (1:1.2.11.dfsg-1+deb10u1) ...
Setting up zlib1g:armhf (1:1.2.11.dfsg-2+deb11u2) ...
(Reading database ... 79838 files and directories currently installed.)
Removing libgcc1:armhf (1:8.3.0-6+rpi1) ...
(Reading database ... 79837 files and directories currently installed.)
Preparing to unpack .../libstdc++6_10.2.1-6+rpi1_armhf.deb ...
Unpacking libstdc++6:armhf (10.2.1-6+rpi1) over (8.3.0-6+rpi1) ...
Setting up libstdc++6:armhf (10.2.1-6+rpi1) ...
(Reading database ... 79837 files and directories currently installed.)
Preparing to unpack .../00-libcc1-0_10.2.1-6+rpi1_armhf.deb ...
Unpacking libcc1-0:armhf (10.2.1-6+rpi1) over (8.3.0-6+rpi1) ...
Preparing to unpack .../01-binutils-arm-linux-gnueabihf_2.35.2-2+rpi1_armhf.deb ...
Unpacking binutils-arm-linux-gnueabihf (2.35.2-2+rpi1) over (2.31.1-16+rpi2) ...
Preparing to unpack .../02-libbinutils_2.35.2-2+rpi1_armhf.deb ...
Unpacking libbinutils:armhf (2.35.2-2+rpi1) over (2.31.1-16+rpi2) ...
Preparing to unpack .../03-binutils_2.35.2-2+rpi1_armhf.deb ...
Unpacking binutils (2.35.2-2+rpi1) over (2.31.1-16+rpi2) ...
Preparing to unpack .../04-binutils-common_2.35.2-2+rpi1_armhf.deb ...
Unpacking binutils-common:armhf (2.35.2-2+rpi1) over (2.31.1-16+rpi2) ...
Selecting previously unselected package libctf-nobfd0:armhf.
Preparing to unpack .../05-libctf-nobfd0_2.35.2-2+rpi1_armhf.deb ...
Unpacking libctf-nobfd0:armhf (2.35.2-2+rpi1) ...
Selecting previously unselected package libctf0:armhf.
Preparing to unpack .../06-libctf0_2.35.2-2+rpi1_armhf.deb ...
Unpacking libctf0:armhf (2.35.2-2+rpi1) ...
Preparing to unpack .../07-libgomp1_10.2.1-6+rpi1_armhf.deb ...
Unpacking libgomp1:armhf (10.2.1-6+rpi1) over (8.3.0-6+rpi1) ...
Preparing to unpack .../08-libatomic1_10.2.1-6+rpi1_armhf.deb ...
Unpacking libatomic1:armhf (10.2.1-6+rpi1) over (8.3.0-6+rpi1) ...
Selecting previously unselected package gcc-9-base:armhf.
Preparing to unpack .../09-gcc-9-base_9.3.0-22+rpi1_armhf.deb ...
Unpacking gcc-9-base:armhf (9.3.0-22+rpi1) ...
Preparing to unpack .../10-libasan5_9.3.0-22+rpi1_armhf.deb ...
Unpacking libasan5:armhf (9.3.0-22+rpi1) over (8.3.0-6+rpi1) ...
Preparing to unpack .../11-libubsan1_10.2.1-6+rpi1_armhf.deb ...
Unpacking libubsan1:armhf (10.2.1-6+rpi1) over (8.3.0-6+rpi1) ...
Preparing to unpack .../12-gcc-8_8.4.0-7+rpi1_armhf.deb ...
Unpacking gcc-8 (8.4.0-7+rpi1) over (8.3.0-6+rpi1) ...
Preparing to unpack .../13-libgcc-8-dev_8.4.0-7+rpi1_armhf.deb ...
Unpacking libgcc-8-dev:armhf (8.4.0-7+rpi1) over (8.3.0-6+rpi1) ...
Selecting previously unselected package libisl23:armhf.
Preparing to unpack .../14-libisl23_0.23-1_armhf.deb ...
Unpacking libisl23:armhf (0.23-1) ...
Preparing to unpack .../15-cpp-8_8.4.0-7+rpi1_armhf.deb ...
Unpacking cpp-8 (8.4.0-7+rpi1) over (8.3.0-6+rpi1) ...
Preparing to unpack .../16-libgfortran5_10.2.1-6+rpi1_armhf.deb ...
Unpacking libgfortran5:armhf (10.2.1-6+rpi1) over (8.3.0-6+rpi1) ...
Preparing to unpack .../17-gcc-8-base_8.4.0-7+rpi1_armhf.deb ...
Unpacking gcc-8-base:armhf (8.4.0-7+rpi1) over (8.3.0-6+rpi1) ...
dpkg: considering deconfiguration of manpages-dev, which would be broken by installation of manpages ...
dpkg: yes, will deconfigure manpages-dev (broken by manpages)
Preparing to unpack .../18-manpages_5.10-1_all.deb ...
De-configuring manpages-dev (4.16-2) ...
Unpacking manpages (5.10-1) over (4.16-2) ...
Replacing files in old package manpages-dev (4.16-2) ...
Preparing to unpack .../19-manpages-dev_5.10-1_all.deb ...
Unpacking manpages-dev (5.10-1) over (4.16-2) ...
Preparing to unpack .../20-libbrotli1_1.0.9-2+b1_armhf.deb ...
Unpacking libbrotli1:armhf (1.0.9-2+b1) over (1.0.7-2+deb10u1) ...
Preparing to unpack .../21-libpng-tools_1.6.37-3_armhf.deb ...
Unpacking libpng-tools (1.6.37-3) over (1.6.36-6) ...
Preparing to unpack .../22-libpng16-16_1.6.37-3_armhf.deb ...
Unpacking libpng16-16:armhf (1.6.37-3) over (1.6.36-6) ...
Preparing to unpack .../23-libfreetype6_2.10.4+dfsg-1+deb11u1_armhf.deb ...
Unpacking libfreetype6:armhf (2.10.4+dfsg-1+deb11u1) over (2.9.1-3+deb10u2) ...
Preparing to unpack .../24-libtirpc-common_1.3.1-1+deb11u1_all.deb ...
Unpacking libtirpc-common (1.3.1-1+deb11u1) over (1.1.4-0.4+deb10u1) ...
Preparing to unpack .../25-libtirpc3_1.3.1-1+deb11u1_armhf.deb ...
Unpacking libtirpc3:armhf (1.3.1-1+deb11u1) over (1.1.4-0.4+deb10u1) ...
Setting up runit-helper (2.10.3) ...
Setting up libc-l10n (2.31-13+rpt2+rpi1+deb11u4) ...
Setting up manpages (5.10-1) ...
Setting up libtirpc-common (1.3.1-1+deb11u1) ...
Setting up libbrotli1:armhf (1.0.9-2+b1) ...
Setting up libcbor0:armhf (0.5.0+dfsg-2) ...
Setting up binutils-common:armhf (2.35.2-2+rpi1) ...
Setting up libctf-nobfd0:armhf (2.35.2-2+rpi1) ...
Setting up libgomp1:armhf (10.2.1-6+rpi1) ...
Setting up locales (2.31-13+rpt2+rpi1+deb11u4) ...
Installing new version of config file /etc/locale.alias ...
locale: Cannot set LC_ALL to default locale: No such file or directory
Generating locales (this might take a while)...
  en_GB.UTF-8... done
Generation complete.
Setting up libc6-dbg:armhf (2.31-13+rpt2+rpi1+deb11u4) ...
Setting up libpng16-16:armhf (1.6.37-3) ...
Setting up libatomic1:armhf (10.2.1-6+rpi1) ...
Setting up gcc-8-base:armhf (8.4.0-7+rpi1) ...
Setting up libgfortran5:armhf (10.2.1-6+rpi1) ...
Setting up libubsan1:armhf (10.2.1-6+rpi1) ...
Setting up libbinutils:armhf (2.35.2-2+rpi1) ...
Setting up libfido2-1:armhf (1.6.0-2) ...
Setting up libisl23:armhf (0.23-1) ...
Setting up libc-dev-bin (2.31-13+rpt2+rpi1+deb11u4) ...
Setting up libcc1-0:armhf (10.2.1-6+rpi1) ...
Setting up gcc-9-base:armhf (9.3.0-22+rpi1) ...
Setting up libctf0:armhf (2.35.2-2+rpi1) ...
Setting up libtirpc3:armhf (1.3.1-1+deb11u1) ...
Setting up manpages-dev (5.10-1) ...
Setting up libpng-tools (1.6.37-3) ...
Setting up openssh-client (1:8.4p1-5+deb11u1) ...
Installing new version of config file /etc/ssh/ssh_config ...
Setting up libasan5:armhf (9.3.0-22+rpi1) ...
Setting up libfreetype6:armhf (2.10.4+dfsg-1+deb11u1) ...
Setting up libgcc-8-dev:armhf (8.4.0-7+rpi1) ...
Setting up cpp-8 (8.4.0-7+rpi1) ...
Setting up binutils-arm-linux-gnueabihf (2.35.2-2+rpi1) ...
Setting up openssh-sftp-server (1:8.4p1-5+deb11u1) ...
Setting up openssh-server (1:8.4p1-5+deb11u1) ...
Installing new version of config file /etc/init.d/ssh ...
Installing new version of config file /etc/ssh/moduli ...
locale: Cannot set LC_ALL to default locale: No such file or directory
/usr/bin/locale: Cannot set LC_ALL to default locale: No such file or directory
rescue-ssh.target is a disabled or a static unit, not starting it.
Setting up binutils (2.35.2-2+rpi1) ...
Setting up gcc-8 (8.4.0-7+rpi1) ...
Processing triggers for ufw (0.36-1) ...
Processing triggers for systemd (241-7~deb10u8+rpi1) ...
Processing triggers for man-db (2.8.5-2) ...
Processing triggers for libc-bin (2.31-13+rpt2+rpi1+deb11u4) ...

restore of boot disk worked flawlessly and yes backup and disaster recovery is one of things I love in Linux world

I found this thread having a similar issue on 23.0.2 upgrade but I will keep the old Raspi running and change my strategy

I prefer to setup a new instance on the new server and migrate users and data

for everyoneā€™s reference the command to restore is

sudo dd if=/media/myBackupDrive/raspimage/BextCloudPi1.49.image of=/dev/sdb

and to make sure you find the right disk and partition, use lsblk command