Restore backup system/data

NethServer 7.9:
Module: restore
Greetings. Sorry for the English.

I’m trying to restore a nethserver. I have backups of the configuration and data.
I installed a new system, fixed the network, restored the configuration backup and finally restored the data.
The machine thus restored does not work.
For example webtop, nectcloud doesn’t work.
Looking in the system files /var/lib/nethserver I noticed that many directories have strange owners.
Where am I wrong? Is it a bag?

drwxr-xr-x. 2 leonardo.m@effezeta.it domain admins@effezeta.it 6 13 apr 2023 2fa
drwxr-xr-x. 5 leonardo.m@effezeta.it domain admins@effezeta.it 4096 15 ott 05.36 backup
drwxr-xr-x 3 leonardo.m@effezeta.it domain admins@effezeta.it 18 30 giu 05.45 dante
drwxr-s—. 2 root adm 4096 15 ott 08.41 db
drwxr-x— 3 ejabberd ejabberd 43 15 ott 03.17 ejabberd
drwxr-xr-x 2 leonardo.m@effezeta.it domain admins@effezeta.it 27 29 giu 19.34 fail2ban
drwxr-xr-x. 77 leonardo.m@effezeta.it domain admins@effezeta.it 4096 2 ott 09.43 home
drwxrws— 2 leonardo.m@effezeta.it vmail 23 29 giu 21.11 imapsync
drwxrwsr-x 2 leonardo.m@effezeta.it domain admins@effezeta.it 6 3 apr 2023 mail-disclaimers
drwx------ 2 leonardo.m@effezeta.it domain admins@effezeta.it 74 9 ott 12.55 nethsupport
drwxrwx— 90 leonardo.m@effezeta.it domain admins@effezeta.it 8192 8 ott 03.28 nextcloud
drwxr-xr-x. 2 root root 196 15 ott 04.19 secrets
drwxrwx— 2 leonardo.m@effezeta.it vmail 165 17 set 23.20 sieve-scripts
drwx------ 92 vmail vmail 4096 15 ott 09.41 vmail
drwxr-xr-x 5 tomcat tomcat 70 26 lug 16.34 webtop

Hi Leonardo,

did you update the Nethserver?

Which backup engine did you use? Duplicity, Restic?

Are there errors in the logfiles in /var/log/backup/?

Here are the right owner/permissions for /var/lib/nethserver/:

[root@server2 ~]# ls -l /var/lib/nethserver/
total 48
drwxr-xr-x   2 root     root         6 Apr 13  2023 2fa
drwxr-xr-x.  9 root     root      4096 Oct 15 08:38 backup
dr--------   2 root     root     20480 Oct 15 08:38 backup_db_dolibarr
drwxr-xr-x   7 root     root        66 Jan  1  2023 dante
drwxr-s---.  2 root     adm       4096 Oct 14 00:13 db
drwxr-x---   2 ejabberd ejabberd    29 Jan 25  2022 ejabberd
drwxr-xr-x   2 root     root        43 Nov  9  2018 fail2ban
drwxr-xr-x   3 root     root        20 Jun 23  2019 ftp
drwxr-xr-x   6 gitea    gitea       90 Sep  6  2018 gitea
drwxr-xr-x. 13 root     root       191 Nov 19  2022 home
drwxrwxr-x   4 root     root        34 Mar 30  2021 ibay
drwxrws---   2 root     vmail       99 Apr  3  2023 imapsync
drwxrwsr-x   2 root     adm          6 Apr  3  2023 mail-disclaimers
drwxr-xr-x   4 root     root        32 Apr 22  2018 mattermost
drwxr-xr-x   3 root     root        20 Sep 10  2020 meshcentral
drwxrwx---  11 apache   apache     150 Oct 15 07:55 moodledata
drwxr-xr-x   2 root     root         6 May 30 20:35 nethserver-ns8-migration
drwxrwx---  61 apache   apache    4096 Oct 15 08:38 nextcloud
drwxr-xr-x   7 root     root       139 Oct 11  2021 portainer
drwxrwxrwx  10 root     root       114 Mar 30  2021 print_driver
drwxr-xr-x   4 root     root        42 Mar  3  2020 recycle
drwxr-xr-x.  2 root     root      4096 Oct 11 18:26 secrets
drwxrwx---   2 root     vmail      203 Oct  1 21:29 sieve-scripts
drwxr-xr-x  10 root     root       184 Jun 12 08:31 vhost
drwx------  21 vmail    vmail     4096 May 25 17:20 vmail
drwxr-xr-x   5 tomcat   tomcat      70 Jul 26 16:34 webtop
drwxr-xr-x   3 root     root        20 Mar 23  2020 zabbix
2 Likes