You need notes Running with the notes-data volume mounted at /data, from lab 5.5.4.
Haven't done lab 5.5.4?
Do it first: it deploys the notes app, creates the volume and mounts it. The notes app keeps one note in /data/note.txt: POST /note saves the request body, GET /note returns it. Keep notes at 1 spherelet.
Save the value to keep
curl -X POST --data "before snapshot" https://<your-notes-url>/note curl https://<your-notes-url>/noteYou should seeNo error from curl, and the second command prints your note.
Take a snapshot
Open
notes, then the Backups tab, and choose Back up now.You should seeA new row that turns from PENDING to COMPLETED.
Change the data
curl -X POST --data "after snapshot" https://<your-notes-url>/note curl https://<your-notes-url>/noteThis is the mistake you're about to undo.
You should seeafter snapshot
Wait two minutes
A snapshot can't be restored until it's two minutes old.
Check yourself
You should seeThe snapshot is at least two minutes old.
Restore the snapshot
On the snapshot's row choose Restore. Set Restore to to Same service and environment and choose Restore. View logs shows the restore's progress.
You should seenotes shows Redeploying, then Running.
Read the first value back
curl https://<your-notes-url>/noteYou should seebefore snapshot
Check your work
If this doesn't pass
If it stays PENDING or shows FAILED, take another with Backup Now and wait for COMPLETED before going on.
If this doesn't pass
Refused? The snapshot was under two minutes old. Wait and restore again.
If this doesn't pass
Still after snapshot? Check you restored the snapshot from step 2, not a newer one. Empty? Check notes-data is still mounted at /data under Settings, Storage.