@tamethecomplex, do you have dgraph running in a docker on ubuntu ? If yes you need to go inside the container to trigger the backup.
docker -it <image_name or id> -exec curl localhost:8080/admin/export.
We can whitelist a set of ip’s as manish suggested if you want to trigger it from outside docker.