Skip to content

Commit

Permalink
Minor improvement to DEVELOPER.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Magform committed Mar 17, 2024
1 parent a7b8485 commit 5025c5e
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions DEVELOPER.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand All @@ -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:
Expand All @@ -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.

0 comments on commit 5025c5e

Please sign in to comment.