I have a demo environment that we use for testing and development of our mobile app and server side web app.
It makes sense to clone the current production environment now and again with a “clean” set of updated data - and without having a lot of sync/repl. history floating around…
So I have previously done a full backup (bucket name is “data”):
/opt/couchbase/bin/cbbackup couchbase://db1.prod-env.dk:8091 /home/couchbase/backup -b data -u xxxx -p yyyy
And then restored it on the test server:
/opt/couchbase/bin/cbrestore /home/couchbase/backup couchbase://db2.test-env.dk:8091 -b data -u xxxx -p yyyy
There is also a Sync.Gateway connected to the test environment (not in the production environment yet).
So this leads me to the following questions for best practice:
- Should I delete the
databucket from the test server prior to restoring?
- If so - should I do this on both my nodes in the the cluster?
- Should I do anything on the Sync.Gateway server prior to the restore?
- I guess I should do a
resyncon the Sync.Gateway server after the restore?
- Anything else I need to do to get a “clean” start on the test environment (loosing e.g. repl. history)?
Thanks in advance