You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@brooklyn.apache.org by du...@apache.org on 2018/06/21 14:11:14 UTC

[1/2] brooklyn-docs git commit: Fix copy-state usage for brooklyn-karaf

Repository: brooklyn-docs
Updated Branches:
  refs/heads/master 866ea4ba4 -> f63a2dcb3


Fix copy-state usage for brooklyn-karaf


Project: http://git-wip-us.apache.org/repos/asf/brooklyn-docs/repo
Commit: http://git-wip-us.apache.org/repos/asf/brooklyn-docs/commit/4d417bb2
Tree: http://git-wip-us.apache.org/repos/asf/brooklyn-docs/tree/4d417bb2
Diff: http://git-wip-us.apache.org/repos/asf/brooklyn-docs/diff/4d417bb2

Branch: refs/heads/master
Commit: 4d417bb21dcf7892d13aa8ed81f17d5a86401394
Parents: e1db373
Author: Aled Sage <al...@gmail.com>
Authored: Wed Jun 20 15:29:05 2018 +0100
Committer: Aled Sage <al...@gmail.com>
Committed: Wed Jun 20 15:29:05 2018 +0100

----------------------------------------------------------------------
 guide/ops/persistence/index.md | 18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/brooklyn-docs/blob/4d417bb2/guide/ops/persistence/index.md
----------------------------------------------------------------------
diff --git a/guide/ops/persistence/index.md b/guide/ops/persistence/index.md
index 5cefa85..b2f52ae 100644
--- a/guide/ops/persistence/index.md
+++ b/guide/ops/persistence/index.md
@@ -246,16 +246,16 @@ The state can be downloaded periodically from the object store, archived and bac
 An example script to be invoked by CRON is shown below:
 
     DATE=`date "+%Y%m%d.%H%M.%S"`
-    BACKUP_FILENAME=/path/to/archives/back-${DATE}.tar.gz
-    TEMP_DATA_DIR=/path/to/tempdir
-    
-    brooklyn copy-state \
-            --persistenceLocation named:my-persistence-location \
-            --persistenceDir /path/to/bucket \
-            --destinationDir $TEMP_DATA_DIR
+    BACKUP_FILENAME=/path/to/archives/back-${DATE}.zip
+    HOSTNAME=localhost
+    USERNAME=admin
+    PASSWORD=pa55wOrd
+
+    curl -v -u "${USERNAME}:${PASSWORD}" \
+            https://${HOSTNAME}:8443/v1/server/ha/persist/export \
+            > ${BACKUP_FILENAME}
 
-    tar --exclude '*/backups/*' -czvf $BACKUP_FILENAME $TEMP_DATA_DIR
     # For s3cmd installation see http://s3tools.org/repositories
     s3cmd put $BACKUP_FILENAME s3://mybackupbucket
     rm $BACKUP_FILENAME
-    rm -r $TEMP_DATA_DIR
+


[2/2] brooklyn-docs git commit: Closes #258

Posted by du...@apache.org.
Closes #258

Fix copy-state usage for brooklyn-karaf

In brooklyn classic, one could run `brooklyn copy-state ...`. This is not supported in brooklyn karaf.

Instead, the REST api can be used. This PR updates the docs to show how to use it.

Please first review/merge https://github.com/apache/brooklyn-server/pull/972, to fix this REST api for usage in karaf!


Project: http://git-wip-us.apache.org/repos/asf/brooklyn-docs/repo
Commit: http://git-wip-us.apache.org/repos/asf/brooklyn-docs/commit/f63a2dcb
Tree: http://git-wip-us.apache.org/repos/asf/brooklyn-docs/tree/f63a2dcb
Diff: http://git-wip-us.apache.org/repos/asf/brooklyn-docs/diff/f63a2dcb

Branch: refs/heads/master
Commit: f63a2dcb327b5368950c1f135e8a3de335fcb955
Parents: 866ea4b 4d417bb
Author: Duncan Grant <du...@cloudsoftcorp.com>
Authored: Thu Jun 21 15:10:59 2018 +0100
Committer: Duncan Grant <du...@cloudsoftcorp.com>
Committed: Thu Jun 21 15:10:59 2018 +0100

----------------------------------------------------------------------
 guide/ops/persistence/index.md | 18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)
----------------------------------------------------------------------