InfluxDB backup fails to backup

When trying to backup InfluxDB (either as partial or part of full), I get an error and see following in my Supervisor log:

24-01-10 10:55:47 INFO (MainThread) [supervisor.addons.addon] Building backup for add-on a0d7b954_influxdb
24-01-10 10:58:09 INFO (MainThread) [supervisor.homeassistant.api] Updated Home Assistant API token
24-01-10 11:13:13 ERROR (MainThread) [supervisor.addons.addon] Can't write tarfile securetar.SecureTarFile object at 0x7f2360407290>: [Errno 5] I/O error
24-01-10 11:13:13 ERROR (MainThread) [supervisor.backups.backup] Can't create backup for a0d7b954_influxdb
24-01-10 11:13:13 INFO (MainThread) [supervisor.backups.manager] Backup a3604a00 starting stage finishing_file
24-01-10 11:13:31 INFO (MainThread) [supervisor.backups.manager] Creating partial backup with slug a3604a00 completed

Backup is normally attempted on local (SSD) storage. Attempting backup to NAS share also triggers error.

When attempting backup I can see the total time is around 15-18 minutes before this error is shown. Is there a ‘magic’ threshold involved here?

EDIT:
Used the CLI in ‘Advanced SSH & Web Terminal’ add-on and tried following two commands:

  • docker exec -it addon_a0d7b954_influxdb influxd backup -portable /share/influx
    Influx was a folder I created myself. This completed without errors in 4 minutes (final size 13.8GB)
  • docker exec -it addon_a0d7b954_influxdb tar -czvf /share/a0d7b954_inf1uxdb.tar.gz /data
    This completed without errors in 34mins (final size 14.3GB)

It thus seems as this is something caused in the backup process itself.