From 5025c5efa20cbe949144ec7393b07116c4c0e916 Mon Sep 17 00:00:00 2001 From: Nicolas Ferraresso Date: Sun, 17 Mar 2024 18:26:45 +0100 Subject: [PATCH] Minor improvement to DEVELOPER.md --- DEVELOPER.md | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/DEVELOPER.md b/DEVELOPER.md index 0b00c14..2ff9b9e 100644 --- a/DEVELOPER.md +++ b/DEVELOPER.md @@ -127,11 +127,11 @@ influxd backup -portable /tmp/sailtrack_core_db_backu tar -czf /tmp/sailtrack_core_db_backup.tar.gz /tmp/sailtrack_core_db_backup ``` -Now download and keep the /tmp/sailtrack_core_db_backup.tar.gz file containing the backup. +Now download and keep `/tmp/sailtrack_core_db_backup.tar.gz` file containing the backup. ### Restoring Backup -When restoring the backup on a new SailTrack Core instance, follow these steps: +When restoring the backup on a SailTrack Core instance, follow these steps: 1. Download the backup file `sailtrack_core_db_backup.tar.gz` and place it in the `/tmp` directory. @@ -149,6 +149,7 @@ use sailtrack-data-tmp SELECT * INTO "sailtrack-data".autogen.:MEASUREMENT FROM "sailtrack-data-tmp".autogen./.*/ GROUP BY * DROP DATABASE "sailtrack-data-tmp" ``` + These commands switch to the temporary database, copy data to the original database, and then drop the temporary database. 4. Remove the unused files: @@ -157,5 +158,3 @@ These commands switch to the temporary database, copy data to the original datab rm /tmp/saitrack_core_db_backup.tar.gz rm -r /tmp/sailtrack_core_db_backup ``` - -Your data is now accessible from the new core. \ No newline at end of file