How to backuo database

I trie to backup all of my databases with this command:

sudo influxd backup -portable /var/tmp/backup_influxdb

unfortunately I receive the following error:

root@debian:/var/tmp/backup_influxdb# sudo influxd backup -portable /var/tmp/backup_influxdb
2025/08/03 17:58:41 backing up metastore to /var/tmp/backup_influxdb/meta.00
2025/08/03 17:58:41 Download shard 0 failed dial tcp [::1]:8088: connect: connection refused.  Waiting 2s and retrying (0)...
2025/08/03 17:58:43 Download shard 0 failed dial tcp [::1]:8088: connect: connection refused.  Waiting 2s and retrying (1)...

I am on the same machine, the permission of the folder is set to 777, so everybody should be able to write ti the folder.

Anybody a solution for this problem?

Here is a quick debug ckecklist:

Ensure InfluxDB is running.

Confirm the backup/restore RPC service is enabled and listening on 127.0.0.1:8088.

Check your influxdb.conf for the correct bind-address setting.

Make sure you are not running into user permission issues.

Check for port conflicts or firewall issues.

Reference : Back up and restore data in InfluxDB v1.11 | InfluxDB OSS v1 Documentation

There was a problem with thee Index of the database and therefor influxdb was not running in the correct way.

Now with the problem solved I can run a backup.