[SOLVED] Snap cannot backup nextcloud.export command not found

I am using the nextcloud snap on a debian install but am having difficulties with backup up my data. When running the sudo nextcloud.export command I get the message ’ sudo: nextcloud.export: command not found’. Running as root results in the same message. I am a bit surprised about the message because Nextcloud seems to be working alright. Does anybody know how I can solve the error message?

Debian doesn’t add it to the $PATH for some reason. Try running /snap/bin/nextcloud.export instead.

Worked! Thank you