Back up and restore from the terminal
On this page
A backup is a copy of the whole user story map at one moment, kept on the server. The CLI and the app share the same backups, so one made in the terminal shows in Menu → Backups in the app, and the other way round.
Make a backup
Add a note with -m, so you can tell it apart later:
storymaps backup -m "Before the planning session"Backed up map abc12345 as 6e3cb08697e7 (27 cards)
If nothing has changed since one of the backups, no new one is made, and the CLI says which one matches:
storymaps backupNo changes since backup 6e3cb08697e7 from 20:05, so no new backup was made.
List the backups
Newest first, each with the ID to restore it by:
storymaps backups6e3cb08697e7 20:05 27 cards Before the planning session998e16f31f84 11:02 24 cards (no note) Restore one with storymaps restore <backup ID>
Restore one
Give it the backup ID. It shows the backup and asks first. --force skips the question.
storymaps restore 6e3cb08697e7Backup 6e3cb08697e7 from 20:05: Coffee App, 27 cards, "Before the planning session"> Restore this backup? The map is backed up first. (Y/n)Restored map abc12345 from backup 6e3cb08697e7The map before the restore is backup 90136b94f6a6.Run storymaps pull to bring the restored map into storymap.yml.
- It backs up first. The story map as it was before the restore becomes a backup too, so a restore can be undone with another restore.
- It changes the story map, not your file. Run
storymaps pullafterwards. Until you do, a push stops with a conflict, so an old file can't undo the restore by accident.
Keeping backups
The server keeps the 8 newest backups of each story map, and the oldest go as new ones come in. Backups are protected from deletion, but can be removed if needed by contacting us.
A locked story map needs its password to back up or restore. The CLI uses the one saved by storymaps unlock, or asks for it.
A whole project
In a project folder, storymaps backup backs up every story map with the same note, such as before an agent makes a big change:
storymaps backup -m "Before the release" abc12345.yml Coffee App backed up as 067f57a0cf4b (26 cards) k3x9w2pq.yml Checkout backed up as ca95776ac648 (7 cards) m7q2r8tz.yml Loyalty Card backed up as 50a280102a30 (7 cards) g1ft5c4d.yml Gift Cards backed up as 847cf70510d0 (4 cards) zbyf2k7s.yml Merch backed up as f529075d07ea (4 cards) n5b8d2wq.yml Menu Board backed up as fa6b9219062f (4 cards) ougxixd8.yml Seasonal Menu backed up as 33e596a899ad (4 cards) iajfqtjq.yml Breakfast backed up as d41f6cb7121b (4 cards)Backed up 8 maps.
A story map that hasn't changed since its last backup reuses it, so it doesn't use up one of its 8. A project password is asked for once.
storymaps backups lists the newest backup of each story map:
storymaps backupsCoffee shop, newest backup of each map Coffee App 067f57a0cf4b 14:57 Before the release Checkout ca95776ac648 14:57 Before the release Loyalty Card 50a280102a30 14:57 Before the release Gift Cards 847cf70510d0 14:57 Before the release Merch f529075d07ea 14:57 Before the release Menu Board fa6b9219062f 14:57 Before the release Seasonal Menu 33e596a899ad 14:57 Before the release Breakfast d41f6cb7121b 14:57 Before the releaseEvery backup of one map: storymaps backups -f storymaps/<id>.yml
Restoring still puts back one story map at a time. The backup ID says which, so there's no need to name the file:
storymaps restore ca95776ac648Backup ca95776ac648 from 14:57: Checkout, 7 cards, "Before the release"> Restore this backup? The map is backed up first. YesRestored map k3x9w2pq from backup ca95776ac648The map before the restore is backup 615a2313da5d.Run storymaps pull to bring the restored map into storymaps/k3x9w2pq.yml.
For backups in the app, see Back up and restore a story map.