Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Perform a restore from recent backup #25893

Open
phpaiva opened this issue Jan 22, 2025 · 0 comments
Open

Perform a restore from recent backup #25893

phpaiva opened this issue Jan 22, 2025 · 0 comments

Comments

@phpaiva
Copy link

phpaiva commented Jan 22, 2025

I am doing a backup with:

influx backup "$INFLUX_BACKUP_PATH" -t="$INFLUX_ROOT_TOKEN"

The backup is performed. When I try to backup:

pablo@pablo-MII-V:/dev/shm$ sudo influx restore /dev/shm/influxdb_backup --token ""$INFLUX_ROOT_TOKEN""
2025/01/21 21:10:23 INFO: Restoring bucket "196e269b74ba658d" as "cpe_periodic_reports"
Error: failed to restore bucket "cpe_periodic_reports": 422 Unprocessable Entity: bucket with name cpe_periodic_reports already exists

If I delete the bucket:

pablo@pablo-MII-V:/dev/shm$ sudo influx restore /dev/shm/influxdb_backup --token ""$INFLUX_ROOT_TOKEN""
2025/01/21 21:24:08 INFO: Restoring bucket "196e269b74ba658d" as "cpe_periodic_reports"
Error: failed to restore bucket "cpe_periodic_reports": 401 Unauthorized: read:authorizations is unauthorized

Finally with the --new-bucket flag:

pablo@pablo-MII-V:/dev/shm$ sudo influx restore /dev/shm/influxdb_backup --new-bucket --token "uLdH_rC1K5EpO6eFmGHRhBzRTdI4t8oBWHqFDxyIOsrN9-RG_lfHYJR_vTb4oR6o1u9KbK57-iR4siVq_jBleA=="
Error: --bucket-id or --bucket must be set to use --new-bucket

Its obvious but anyway I will clarify that there are more than just 1 bucket in the backup, so I don't understand why always a bucket is referred when the backup was performed generally.

It will be great to understand which kind of madness is this.

Thanks in advance.

Pablo.

@phpaiva phpaiva changed the title Perform a restore is impossible Perform a restore from recent backup Jan 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant