Export Couchbase data to json using Python sdk


I’m looking to create incremental backup for Couchbase bucket named ‘A’ after every 1day or 1hr in local folder.

Can someone please help me with syntax which achieves this from python sdk.

Thanks in advance

Hi @Kratos,

The Python SDK does not currently support backing up the buckets directly.

However, there is a command-line tool, cbbackupmgr that can be used to backup buckets.

Alternatively, there is a REST API that allows you to perform backups of Couchbase data.

If you absolutely need to do it using Python, using the REST interface or the CLI tool might be an option worth exploring.

For more information about backing up in general, you can refer to the documentation.

If you have any further questions, please feel free to reach out.

1 Like