You are missing a sudo.
The sudo -u openhab
part of the line runs the script as the openhab user. Then you want to run sudo openhab-cli backup
to start as the openhab user and test that openhab can call that script with sudo.
sudo -u openhab sudo openhab-cli backup