Bucket - Delete Data

I want to change the deletion date from “1 year” to “Never”. After “Save Changes” the date is back to “1 year”

Hello @DGR75,
What version of InfluxDB are you using?
Can you try listing the bucket with the CLI instead? Sometimes the UI doesn’t reflect changes well.

Just make sure to configure the CLI first before you use it.

v.2.7.11

pi@raspi2:~ $ influx bucket list --org roe75 --t 4fW-jDertJRHaxPSaOt4qQNdSnzkqbESxap8mnlfPYLciFPAYPG1F5b.....
ID                      Name            Retention       Shard group duration    Organization ID         Schema Type
135fc433ee7b1237        _monitoring     168h0m0s        24h0m0s                 d0a40e629bde45e9        implicit
ee102402cc3987c1        _tasks          72h0m0s         24h0m0s                 d0a40e629bde45e9        implicit
dd1db126fdf0d790        iobroker_all    8760h0m0s       168h0m0s                d0a40e629bde45e9        implicit
d6966e1af5849b04        vis             infinite        168h0m0s                d0a40e629bde45e9        implicit
pi@raspi2:~ $

I had transferred the data with influx backup in the old system and influx restore in the new system. The bucket in the old system is set to “OLDER THAN” - “forever”.

After the restore I can no longer set this. However, there is the option to specify years for “OLDER THAN”. I have now set this to 20 years.

The problem is that I have to do a new restore because the data is now only available for 1 year in the new system. Before a restore I have to delete the bucket and after the restore I am afraid that old data will be deleted again immediately.

One possible solution might be to export the individual databases from the old system using csv and import them into a new bucket.

I have now imported the old data into the new system using csv export and csv import. It looks as if there was no more elegant solution.

The setting in the bucket is not permanent.
I had set “Delete Data” to 20 years, but after a shutdown and even after a reboot it is back to “1 year” and the data from the past is gone.

is this perhaps a bug?

I’m creating a new post because no one here has a solution.

See Post “Is this perhaps a bug?”