run in background

This commit is contained in:
m0duspwnens
2021-05-04 09:59:16 -04:00
parent e2f52765e4
commit a0f1839162
2 changed files with 5 additions and 5 deletions

View File

@@ -313,7 +313,7 @@ post_2.3.5X_to_2.3.60() {
echo "The status can be checked in $INFLUXDB_MIGRATION_LOG" echo "The status can be checked in $INFLUXDB_MIGRATION_LOG"
read -p "Press enter to continue." read -p "Press enter to continue."
echo "" echo ""
docker exec -t so-influxdb /bin/bash -c 'influx -ssl -unsafeSsl -database telegraf -execute "SELECT mean(*) INTO "so_long_term".:MEASUREMENT FROM /.*/ GROUP BY time(5m),*"' >> "$INFLUXDB_MIGRATION_LOG" 2>&1 & docker exec -dt so-influxdb /bin/bash -c 'influx -ssl -unsafeSsl -database telegraf -execute "SELECT mean(*) INTO "so_long_term".:MEASUREMENT FROM /.*/ GROUP BY time(5m),*"' >> "$INFLUXDB_MIGRATION_LOG" 2>&1
POSTVERSION=2.3.60 POSTVERSION=2.3.60
} }

View File

@@ -2,12 +2,12 @@ influxdb:
retention_policies: retention_policies:
autogen: autogen:
default: True default: True
duration: 1d duration: 30d
shard_duration: 1h shard_duration: 1d
so_long_term: so_long_term:
default: False default: False
duration: 7d duration: 0s
shard_duration: 1d shard_duration: 7d
downsample: downsample:
so_long_term: so_long_term:
resolution: 5m resolution: 5m