Skip to content

Conversation

benloh
Copy link
Collaborator

@benloh benloh commented Sep 12, 2025

In order to:

  • simplify the process of backing up and restoring a droplet
  • avoid unnecessary errors or multiple downloads selecting the too many or the wrong zips

We now have a single download "All data" link that will download everything in a single zip. Including:

  • .nc-process-state.json -- active graphs
  • .nc-server-start.txt -- log start time
  • nc-multiplex log.txt file
  • netcreate-itest/runtime folder - will archive entire folder, including loki, templates, template backups, loki, backup lokis, logs, etc.

active graphs, templates, lokis, backups, logs
@benloh
Copy link
Collaborator Author

benloh commented Sep 12, 2025

@jdanish Please give this a spin to make sure the download data works. Since this will be used with research data I want to make absolutely sure that this works.

To Test

Make sure you have a working nc-multiplex install with graphs loaded.

  1. git checkout download-data
  2. ./start-nc-multiplex.sh
  3. Go to the manage page: http://localhost/manage
  4. Make sure you have a few graphs loaded
  5. Click Download "All Data" -- you should get a zip with all the files

Now test it on a new install. You can use another droplet or another install, e.g.

  1. cd ~/tmp
  2. git clone nc-multiplex
  3. Install netcreate-itest and do the necessary package installs, etc. to get nc-multiplex running on your local machine.
  4. Copy the .nc-process-state.json file into ~/tmp/nc-multiplex/.nc-process-state.json
  5. Copy the .nc-server-start.txt file into ~/tmp/nc-multiplex/.nc-server-start.txt
  6. Copy the runtime folder into ~/tmp/nc-multiplex/netcreat-itest folder.
  7. ./start-nc-multiplex.sh
    The graphs you loaded before should be displayed.

After this we should try it on a droplet. I've installed it on qa.netcreate.app

  1. Go to the manage page: http://qa.netcreate.app/manage
  2. Make sure you have a few graphs loaded
  3. Click Download "All Data" -- you should get a zip with all the files
  4. Go to your local install in ~/tmp
  5. Copy the .nc-process-state.json file into ~/tmp/nc-multiplex/.nc-process-state.json
  6. Copy the .nc-server-start.txt file into ~/tmp/nc-multiplex/.nc-server-start.txt
  7. Copy the runtime folder into ~/tmp/nc-multiplex/netcreat-itest folder.
  8. ./start-nc-multiplex.sh
    The graphs from the classroom should be displayed.

@benloh benloh requested a review from jdanish September 12, 2025 22:49
@benloh benloh merged commit 3d0252e into deploy-terraform Sep 13, 2025
@benloh benloh deleted the download-data branch September 13, 2025 18:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant