What type of hardware are you using: Raspberry Pi 3, 4+
What YunoHost version are you running: 12.1.14 (stable)
What app is this about: Nextcloud
Describe your issue
When updating Nextcloud from version 30.0.6~ynh3 to 31.0.8~ynh1, the update failed after attempting to create a backup for Nextcloud. I found the following error message in /var/log/yunohost/operations/20250822-064744-backup_create.log:
2025-08-22 08:47:45,408: INFO - Sammeln von Dateien, die für nextcloud gesichert werden sollen…
2025-08-22 08:47:45,435: DEBUG - Executing command ‘[‘sh’, ‘-c’, ‘/bin/bash -x “/var/cache/yunohost/app_tmp_work_dirs/app_605al2ll/scripts/backup” 7>&1’]’
2025-08-22 08:47:45,473: DEBUG - illegal environment variable name
2025-08-22 08:47:45,478: ERROR - Failed to collect files to backed up for nextcloud.
My guess is, that it is the “7>&1” part in the execution line, where the trouble comes from. My question is (besides if ever anybody experienced similarities), how and where can I change this, so that the backup is possible again and also the update?
Hope to find a solution soon and thanks for any helpful hint in advance.
Cheers
Aldicek
Share relevant logs or error messages
2025-08-22 08:47:45,408: INFO - Sammeln von Dateien, die für nextcloud gesichert werden sollen…
2025-08-22 08:47:45,435: DEBUG - Executing command ‘[‘sh’, ‘-c’, ‘/bin/bash -x “/var/cache/yunohost/app_tmp_work_dirs/app_605al2ll/scripts/backup” 7>&1’]’
2025-08-22 08:47:45,473: DEBUG - illegal environment variable name
2025-08-22 08:47:45,478: ERROR - Failed to collect files to backed up for nextcloud.
