How to take back up of remote influx db?

influxd has an option to take backup of remote db. However it doesn’t have an option to pass credentials.

This works
influxd backup -host ./influx.db

But this fails
influxd backup -host -password password -username user ./influx.db

Is there an alternate way to backup remote influxdb?

does your username or password have any characters that would make this thing act weird?