mirror of
https://github.com/YunoHost-Apps/grafana_ynh.git
synced 2024-09-03 20:36:29 +02:00
Use portable format and restore all databases
This commit is contained in:
parent
435ee20a40
commit
1157a237d6
1 changed files with 1 additions and 4 deletions
|
@ -93,10 +93,7 @@ ynh_script_progression --message="Restoring the InfluxDB database..." --weight=1
|
|||
# That happens when passing automated tests (NetData not present)
|
||||
ynh_systemd_action --service_name=influxdb --action="stop"
|
||||
if [ "$(ls -A ./influxdb_data)" ] ; then
|
||||
influxd restore -metadir /var/lib/influxdb/meta ./influxdb_data
|
||||
if [ "$(ls -A ./influxdb_data/opentsdb*)" ] ; then
|
||||
influxd restore -database opentsdb -datadir /var/lib/influxdb/data ./influxdb_data
|
||||
fi
|
||||
influxd restore -portable ./influxdb_data
|
||||
fi
|
||||
|
||||
#=================================================
|
||||
|
|
Loading…
Reference in a new issue