Restore -newdb not working

I am having problems with Influxdb 1.8

After creating a backup and restoring the backup, the -NEWDB name is always ignored and the DB is restored with the original name.

sudo -u influxdb influxd restore -database myexample -newdb bumbum -metadir /var/lib/influxdb/meta -datadir /var/lib/influxdb/data /tmp/
Using metastore snapshot: /tmp/meta.00
2020/08/31 19:14:57 Restoring offline from backup /tmp/example.*

ls -lah /var/lib/influxdb/data/
total 36K
drwxrwxr-x 9 influxdb influxdb 4.0K Aug 31 19:11 .
drwxr-xr-x 6 influxdb influxdb 4.0K Aug 31 18:39 …
drwx------ 4 influxdb influxdb 4.0K Jan 30 2020 example
drwx-w---- 4 influxdb influxdb 4.0K Dec 10 2019 _internal
drwxr-xr-x 4 influxdb influxdb 4.0K Aug 31 19:11 myexample

Any help please? Thank you.

-newdb bumbum requires -db knockknock (original db name). Did you try with -db ?

Hi. Thank you for your answer.

But yes i did and its the same behaviour.