Skip to content

Commit 1781786

Browse files
committed
versioning docs
1 parent b301a46 commit 1781786

File tree

4 files changed

+20
-1
lines changed

4 files changed

+20
-1
lines changed
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
---
2+
title: "Versioning"
3+
---
4+
5+
OpenTaco comes with built in versioning for units. Right now we do simple version history, keeping the whole version of each document rather than implementing a diff system. You can configure how many versions are kept with the configurable environment variable `OPENTACO_MAX_VERSIONS`. By default we store 10 versions. Version operations respect unit locks.
6+
7+
### List Versions
8+
9+
You can list the versions for a unit with the command `taco unit versions <unit-id>`
10+
11+
![List Versions](/images/state-management/versioning/taco-unit-versions.png)
12+
13+
### Restore a past version
14+
15+
You can then restore a version from this list by using the version number rather than the hash with `taco unit restore <unit-id> <version-number>`
16+
17+
![List Versions](/images/state-management/versioning/taco-unit-restore.png)
18+
47.4 KB
Loading
75.1 KB
Loading

docs/mint.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,8 @@
5858
"ce/state-management/sso",
5959
"ce/state-management/digger-integration",
6060
"ce/state-management/development",
61-
"ce/state-management/analytics"
61+
"ce/state-management/analytics",
62+
"ce/state-management/versioning"
6263
]
6364
},
6465
{

0 commit comments

Comments
 (0)