We have a sync gateway set up and, unfortunately, we’re using bucket shadowing. What is the correct way to take a backup of this setup and then restore the backup?
What we’ve been doing currently is to dump both the sync gateway bucket and the shadow bucket using cbbackup and then restore them using cbrestore. We restore the shadow bucket first, and then the sync gateway bucket, and bring SG back up.
This doesn’t work very well. Whenever we do this, we end up with tons of documents ‘missing’ from the sync gateway bucket. We don’t actually lose any data, but lots of documents no longer sync down. However, if we go and do an update on a ‘missing’ document, the sync gateway will once again become aware of it and it will begin to sync down normally.
Any insight into the appropriate method for backup/restore would be appreciated.