diff --git a/scripts/backup b/scripts/backup index c7571df..be3c01a 100644 --- a/scripts/backup +++ b/scripts/backup @@ -44,7 +44,7 @@ if [ -d "/var/lib/influxdb/data/opentsdb" ]; then ynh_print_warn --message="The InfluxDB database will not be saved, because 'do_not_backup_data' is set." fi else - influxd backup -database opentsdb influxdb_data + influxd backup -portable influxdb_data fi fi diff --git a/scripts/restore b/scripts/restore index 6c81de0..5890952 100644 --- a/scripts/restore +++ b/scripts/restore @@ -59,10 +59,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 -data_dir /var/lib/influxdb/data ./influxdb_data - fi + influxd restore -portable ./influxdb_data fi #=================================================