mirror of
https://github.com/fleetdm/fleet
synced 2026-05-21 16:08:47 +00:00
For #23750 # Overview This PR adds a basic tool for creating and restoring Fleet dev snapshots. In this first iteration a snapshot is just a folder containing a MySQL db dump made using the existing backup/restore scripts, and the tool allows you to easily save and restore snapshots interactively. ## Usage * `make snapshot` to create a new snapshot * `make restore` to select and restore a snapshot ## Future plans Future iterations can add metadata to snapshots to integrate things like: * node keys from osquery-perf, so you can easily reconnect to hosts created in a previous session * env vars from when the snapshot was made * the branch from when the snapshot was made, to allow switching to that branch and restarting the server as part of the restore process *  ## Demo https://github.com/user-attachments/assets/1590c37a-3df9-4201-a42b-ccd1a36cb6cf |
||
|---|---|---|
| .. | ||
| backup.sh | ||
| README.md | ||
| restore.sh | ||
| restore_e2e_software_test.sh | ||