Backup wont Work

Hello,
i will do a backup of my openHABian 2.5.12 installation.
I’ve done it many times with the command ‘sudo openhab-cli backup --full’ but today i only get this error /usr/bin/openhab-cli: 88: /usr/bin/openhab-cli: /bin/backup: not found

what can i do to backup before upgrade to openHAB3 ?

Thanks

It could be that the environment variables in your system are not set correct.
The backup executable normally is found at /usr/share/openhab2/runtime/bin/backup .
Using environment variables ( that is being done by oepnhab-cli ) it would be $OPENHAB_RUNTIME/bin/backup.

I’ve found the backup script at /usr/share/openhab2/runtime/bin/backup. But if i start it i get this error

`
#########################################
openHAB 2.x.x backup script
#########################################

Using ‘/usr/share/openhab2/conf’ as conf folder…
Using ‘/usr/share/openhab2/userdata’ as userdata folder…
Using ‘/usr/share/openhab2/runtime’ as runtime folder…
Using ‘/usr/share/openhab2/backups’ as backup folder…
Writing to ‘/usr/share/openhab2/backups/openhab2-backup-21_03_22-16_55_15.zip’…
Configuration paths are invalid…
Try setting OPENHAB_USERDATA and OPENHAB_CONF environment variables.`