Restoring error (Backup)

I am trying to backup and restore databases and the data inside from one remote host to another. I was successful in getting the databases into other host (through meta data transfer). However, I am having issues getting the data from the databases into the new host.
I followed the InfluxDB website guidelines for backup and restore and am facing this error when trying to restore data.

restore: -metadir or -destinationDatabase are required to restore

Does anyone know how to get around this issue? thanks!

It looks like you might be using a legacy backup and restore method, as the flag -metadir is not used by the current backup utility. I don’t see any references to -destinationDatabase in either of the backup tools’ documentation.

Please make sure you’re referring to the latest backup and restore docs, and if you’re still having trouble, please provide the steps required to reproduce the issue.