Hello,
it should now be possible to provide credentials via environment variables.
Could someone help me setting up a script that sets these variables and then calls the nextcloudcmd?
Currently I have the following script:
#!/bin/bash
dest="/mnt/backups"
ncurl="https://cloud.XXXXXXXXXXX/"
export NC_USER="XXXXXXXXXXX"
export NC_PASSWORD="XXXXXXXXXXX"
/usr/bin/flock -n /tmp/syncnextcloud.lockfile nextcloudcmd --non-interactive "$dest" "$ncurl"
And I keep getting the error: “Server requested authentication and we didn’t provide a user”.
What am I missing?
Thanks!