Hi
in the past we’ve made backup of live system CE 7.1.1 with cbbackup and did restore this in our staging by copy the backup via tar archive to staging.
This works ok up to the point we use collections.
These collection are not restored.
Is there a way to backup and restore these collection with cbbackup?
As a alternative I try to backup and restore by using cbbackupmgr.
My steps :
create archive with repo in live with option --disable-bucket-config to prevent problems with different memory configuration
cbbackup was replaced with cbbackupmgr in the 4.5 Couchbase Server Enterprise Edition and more recently in the 7.0 Couchbase Server Community Edition, so it should be the only tool used.
Note that the two tools use different backup file formats.
It seems like you are creating backups without the bucket metadata then needing this metadata when restoring your backup. These two actions seem to be incompatible. I would try to keep the bucket config and change the bucket options after restoring the backup or potentially modifying the metadata in the backup file.
Thanks,
Ian McCloy (Couchbase Principal Product Manager)
In regards to the exit of cbbackupmgr without a message in the scenario mentioned – looks like this issue will be fixed in a future version.
When you look in your archive directory (–archive that you used with cbbackupmgr), you’ll see that there is a logs directory. You can always look at the log in the archive logs directory to get more info. In this case, there was an issue during the auto create of the bucket (so, at least you’ll have known that the problem was with the --auto-create-buckets option).