Backup / restore don't 100% work

What type of hardware are you using: VPS bought online
What YunoHost version are you running: 13.0.8 (testing)
How are you able to access your server: The webadmin
Are you in a special context or did you perform specific tweaking on your YunoHost instance ?: I do have some hooks installed but I don’t believe this is the cause

Describe your issue

Setting up a new server its prudent to do a backup/restore test. I’m using restic.

Doing this test I’ve noticed :

  • Some apps fail to start (fix is Force-upgrade)
  • Some apps loose portal icons (fix is Force-upgrade)
  • Domains loose settings such as email/custom title & logo etc (fix is to manually repair)

Good to see no data lost, but I’m a bit surprised that the restore has these niggles.

Many thanks.

Share relevant logs or error messages

None … but I can re-test and gather if useful.

Hi, sorry, this is way too vague to trigger any help or initiate any investigation for bugs. Please share the restore logs of the related issues. :slight_smile:

Okay, fair enough, so it sounds like this might be new to you.

I’ll do my best to repeat the backup/restore test and report back here.

Pete

Regarding “Domains loose settings such as email/custom title & logo etc” I can replicate this pretty easily -

  1. Re-install debian 13
  2. apt-get update && sudo apt-get upgrade
  3. curl https://install.yunohost.org/trixie | bash -s – -d testing
  4. usual install - add domain (debug.u3acommunities.org), user

Then make some domain changes -

  1. Enabled lets encrypt certificate for the domain
  2. edit the domain - disable emails, change title & add custom logo
  3. create a backup & save locally

The file conf/ynh/domains/debug.u3acommunities.org.yml in the backup contained -

custom_css: ''
mail_in: 0
mail_out: 0
portal_logo: /usr/share/yunohost/portal/customassets/4e85a10eddf666f51e7283090738ab874bbadea7da244a2b71aa77d5a9c948a5.png
portal_public_intro: ''
portal_title: Custom Title
portal_user_intro: ''
search_engine: ''

Which looks good to me but the logo mentioned was not in the backup archive. List of files backed up was -

% tar -tvf 20261111-163355.tar
-rw-r--r--  0 root   root      340 22 Jul  2025 conf/ldap/ldap.conf
drwx------  0 debian debian      0  1 Aug 05:33 data/home/debian/
-rw-r--r--  0 debian debian    220  9 May  2026 data/home/debian/.bash_logout
-rw-r--r--  0 debian debian   3526  9 May  2026 data/home/debian/.bashrc
-rw-r--r--  0 debian debian    807  9 May  2026 data/home/debian/.profile
drwx------  0 debian debian      0 11 Nov 16:21 data/home/debian/.ssh/
-rw-------  0 debian debian      0 11 Nov 16:21 data/home/debian/.ssh/authorized_keys
drwxr-xr-x  0 plord  plord       0 11 Nov 16:29 data/home/plord/
-rw-r--r--  0 plord  plord     220 11 Nov 16:29 data/home/plord/.bash_logout
-rw-r--r--  0 plord  plord    3526 11 Nov 16:29 data/home/plord/.bashrc
-rw-r--r--  0 plord  plord     807 11 Nov 16:29 data/home/plord/.profile
lrwxrwxrwx  0 plord  plord       0 11 Nov 16:29 data/home/plord/media -> /media
-rw-------  0 root   root      919 11 Nov 16:28 conf/ynh/firewall.yml
-rw-------  0 root   root       78 11 Nov 16:29 conf/ynh/permissions.yml
-rw-r--r--  0 root   root       24 11 Nov 16:29 conf/ynh/current_host
dr-x------  0 ynh-portal ynh-portal  0 11 Nov 16:29 conf/ynh/portal/
-rw-r--r--  0 root       root      521 11 Nov 16:33 conf/ynh/portal/debug.u3acommunities.org.json
drwx------  0 root       root        0 11 Nov 16:33 conf/ynh/domains/
-rw-r--r--  0 root       root      251 11 Nov 16:33 conf/ynh/domains/debug.u3acommunities.org.yml
drwx------  0 opendkim   root        0 11 Nov 16:30 conf/ynh/dkim/
-rw-------  0 opendkim   root     1704 11 Nov 16:30 conf/ynh/dkim/debug.u3acommunities.org.mail.key
-rw-------  0 opendkim   root      514 11 Nov 16:30 conf/ynh/dkim/debug.u3acommunities.org.mail.txt
-rw-r--r--  0 opendkim   root        1 11 Nov 16:33 conf/ynh/dkim/keytable
-rw-r--r--  0 opendkim   root        1 11 Nov 16:33 conf/ynh/dkim/signingtable
drwxr-x---  0 root       ssl-cert    0 11 Nov 16:31 conf/ynh/certs/
lrwxrwxrwx  0 root       root        0 11 Nov 16:31 conf/ynh/certs/debug.u3acommunities.org -> /etc/yunohost/certs//debug.u3acommunities.org-history/20261111.163122-letsencrypt
drwxr-x---  0 root       ssl-cert    0 11 Nov 16:31 conf/ynh/certs/debug.u3acommunities.org-history/
drwxr-x---  0 root       ssl-cert    0 11 Nov 16:29 conf/ynh/certs/debug.u3acommunities.org-history/20261111.162950-selfsigned/
lrwxrwxrwx  0 root       ssl-cert    0 11 Nov 16:29 conf/ynh/certs/debug.u3acommunities.org-history/20261111.162950-selfsigned/ca.pem -> /etc/ssl/certs/ca-yunohost_crt.pem
-rw-r-----  0 root       ssl-cert 6005 11 Nov 16:29 conf/ynh/certs/debug.u3acommunities.org-history/20261111.162950-selfsigned/crt.pem
-rw-r-----  0 root       ssl-cert 1704 11 Nov 16:29 conf/ynh/certs/debug.u3acommunities.org-history/20261111.162950-selfsigned/key.pem
-rw-r-----  0 root       ssl-cert 8887 11 Nov 16:29 conf/ynh/certs/debug.u3acommunities.org-history/20261111.162950-selfsigned/openssl.cnf
drw-r-xr-x  0 root       root        0 11 Nov 16:31 conf/ynh/certs/debug.u3acommunities.org-history/20261111.163122-letsencrypt/
-rw-r-----  0 root       ssl-cert 6023 11 Nov 16:31 conf/ynh/certs/debug.u3acommunities.org-history/20261111.163122-letsencrypt/crt.pem
-rw-r-----  0 root       ssl-cert 3268 11 Nov 16:31 conf/ynh/certs/debug.u3acommunities.org-history/20261111.163122-letsencrypt/key.pem
drwxr-x---  0 root       ssl-cert    0 11 Nov 16:28 conf/ynh/certs/yunohost.org/
-rw-r-----  0 root       ssl-cert 1363 11 Nov 16:30 conf/ynh/certs/yunohost.org/ca.pem
-rw-r-----  0 root       ssl-cert 4626 11 Nov 16:28 conf/ynh/certs/yunohost.org/crt.pem
-rw-r-----  0 root       ssl-cert 1708 11 Nov 16:28 conf/ynh/certs/yunohost.org/key.pem
drwxrwsr-t  0 root       mail        0 22 Jul 06:03 data/mail/
-rw-r--r--  0 root       root        1 11 Nov 16:33 conf/manually_modified_files/home/yunohost.backup/tmp/20261111-163355/conf/manually_modified_files/manually_modified_files_list
-rw-r--r--  0 root       root        3 11 Nov 16:28 conf/manually_modified_files/etc/ssowat/conf.json.persistent
-rw-r--r--  0 root       root     2259 14 Sep  2025 hooks/restore/05-conf_ldap
-rw-r--r--  0 root       root      899 14 Sep  2025 hooks/restore/17-data_home
-rw-r--r--  0 root       root     1076 14 Sep  2025 hooks/restore/18-data_multimedia
-rw-r--r--  0 root       root     1503 14 Sep  2025 hooks/restore/20-conf_ynh_settings
-rw-r--r--  0 root       root      950 14 Sep  2025 hooks/restore/21-conf_ynh_certs
-rw-r--r--  0 root       root      959 14 Sep  2025 hooks/restore/23-data_mail
-rw-r--r--  0 root       root     1238 14 Sep  2025 hooks/restore/50-conf_manually_modified_files
-rw-r--r--  0 root       root     1672 11 Nov 16:33 backup.csv
-rw-r--r--  0 root       root      845 11 Nov 16:33 info.json
drwxr-xr-x  0 root       root        0 11 Nov 16:33 conf/
drwxr-xr-x  0 root       root        0 11 Nov 16:33 conf/ldap/
-rw-r--r--  0 root       root    49560 11 Nov 16:33 conf/ldap/cn=config.master.ldif
-rw-r--r--  0 root       root     7809 11 Nov 16:33 conf/ldap/dc=yunohost-dc=org.ldif
drwxr-xr-x  0 root       root        0 11 Nov 16:33 conf/manually_modified_files/
drwxr-xr-x  0 root       root        0 11 Nov 16:33 conf/manually_modified_files/etc/
drwxr-xr-x  0 root       root        0 11 Nov 16:33 conf/manually_modified_files/etc/ssowat/
drwxr-xr-x  0 root       root        0 11 Nov 16:33 conf/manually_modified_files/home/
drwxr-xr-x  0 root       root        0 11 Nov 16:33 conf/manually_modified_files/home/yunohost.backup/
drwxr-xr-x  0 root       root        0 11 Nov 16:33 conf/manually_modified_files/home/yunohost.backup/tmp/
drwxr-xr-x  0 root       root        0 11 Nov 16:33 conf/manually_modified_files/home/yunohost.backup/tmp/20261111-163355/
drwxr-xr-x  0 root       root        0 11 Nov 16:33 conf/manually_modified_files/home/yunohost.backup/tmp/20261111-163355/conf/
drwxr-xr-x  0 root       root        0 11 Nov 16:33 conf/manually_modified_files/home/yunohost.backup/tmp/20261111-163355/conf/manually_modified_files/
-rw-r--r--  0 root       root        1 11 Nov 16:33 conf/manually_modified_files/manually_modified_files_list
drwxr-xr-x  0 root       root        0 11 Nov 16:33 conf/ynh/
drwxr-xr-x  0 root       root        0 11 Nov 16:33 data/
drwxr-xr-x  0 root       root        0 11 Nov 16:33 data/home/

Then the restore test -

  1. re-installed debian 13 & yunohost as above
  2. uploaded backup and restored all
  3. UI showed “cp: cannot stat ‘/home/yunohost.backup/tmp/20261111-163355/data/mail/.’: No such file or directory”
  4. UI logs showed no errors (red x)
  5. Lets encrypt certificate seemed to be applied (from the backup)
  6. Domain emails enabled (not restored), custom title not restored and custom logo not restored

Logs from UI are https://paste.yunohost.org/raw/tiwotupico and https://paste.yunohost.org/raw/qabajaqeje

Hope this helps.

Regarding “Some apps loose portal icons (fix is Force-upgrade)” I found it can happen on install as well .. so perhaps not related to backup ?

  1. install roundcube
  2. noticed icon wasn’t correct in portal
  3. forced browser refresh but console showed 404 on https://debug.u3acommunities.org/yunohost/sso/applogos/89579c825558c572f05985884e237c89b81847541641f0610016e660c35fc82a.png

Logs at https://paste.yunohost.org/raw/utepiyavov

A force-upgrade didn’t fix this missing icon.

You used the restic app?

For these reproductions, no, just the regular yunohost backup feature on a fresh install.

But, yes, I first noticed this with a restic backup. But same happens without restic.

The domain YAML pointing to /usr/share/yunohost/portal/customassets/… while that file is absent from the tar looks like the concrete cause of the missing custom logo: restore recreates the setting but not the referenced asset. Since this happens with the regular backup on a fresh install, a focused bug report with just that YAML entry and the tar listing (plus the backup hook used) would be useful. The roundcube applogos 404 seems like a separate portal/icon issue; include its paste logs in a separate report.

OK, so it looks to be a Trixie issue, because I didn’t face it on bookworm. For the app logos, they are first fetched when running “fetch available updates”

I raised Restoring a backup doesn't restore domain settings · Issue #2927 · YunoHost/issues · GitHub to the lack of domain restoration