Repository: brooklyn-docs Updated Branches: refs/heads/master 95e2ce5a4 -> adcc10826
Added docs for Cleaning Orphaned State Project: http://git-wip-us.apache.org/repos/asf/brooklyn-docs/repo Commit: http://git-wip-us.apache.org/repos/asf/brooklyn-docs/commit/c298c28e Tree: http://git-wip-us.apache.org/repos/asf/brooklyn-docs/tree/c298c28e Diff: http://git-wip-us.apache.org/repos/asf/brooklyn-docs/diff/c298c28e Branch: refs/heads/master Commit: c298c28e454c2672aa93a978d78a1430b5c0a8bc Parents: 8567739 Author: Ivana Yovcheva <[email protected]> Authored: Fri Jul 22 18:18:57 2016 +0300 Committer: Ivana Yovcheva <[email protected]> Committed: Fri Jul 22 18:18:57 2016 +0300 ---------------------------------------------------------------------- guide/ops/persistence/index.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/brooklyn-docs/blob/c298c28e/guide/ops/persistence/index.md ---------------------------------------------------------------------- diff --git a/guide/ops/persistence/index.md b/guide/ops/persistence/index.md index 30c3d5f..57996cb 100644 --- a/guide/ops/persistence/index.md +++ b/guide/ops/persistence/index.md @@ -170,6 +170,20 @@ The `copy-state` CLI command takes the following arguments: * `--transformations` <transformations> The local transformations file to be applied to the copy of the data before uploading it. +## CLI Commands for Cleaning Orphaned State + +Brooklyn includes a command to clean orphaned state which uses the copy state command +and removes orphaned locations, enrichers, policies and feeds from the copied state. +The `clean-orphaned-state` CLI command takes the following arguments: + +* `--persistenceDir` <source persistence dir> + The directory to read persisted state (or container name if using an object store). +* `--persistenceLocation` <source persistence location> + The location spec for an object store to read persisted state. +* `--destinationDir` <target persistence dir> + The directory to copy persistence data to, with orphaned state removed. +* `--destinationLocation` <target persistence location> + The location spec for an object store to copy data to. ## Handling Rebind Failures
