Company
Date Published
Author
Denis Rosa, Developer Advocate, Couchbase
Word count
2391
Language
English
Hacker News points
None

Summary

The article provides a detailed guide on how to back up Couchbase Community and Enterprise editions on Ubuntu, emphasizing that the scripts and techniques described are not production-ready and may require customization based on specific environments. It advises using an external machine within the same network for backups to avoid performance issues and suggests cost-saving measures like scheduling cloud instances for backup tasks. The importance of a well-defined retention policy and regular recovery testing is highlighted, noting that backups depend on the last full backup and that testing helps familiarize users with restoration tools. For Couchbase Community, the article explains using cbbackup and cbrestore tools with a simple strategy of weekly full backups and daily incremental backups, while for Couchbase Enterprise, it introduces the cbbackupmgr tool with features like backup compaction and merging. Scripts are provided for automating these tasks using CronTab, and the article concludes with instructions on testing cron jobs using Cronitor to ensure successful execution.