{"id":1694,"date":"2020-08-11T02:58:59","date_gmt":"2020-08-11T09:58:59","guid":{"rendered":"https:\/\/www.couchbase.com\/blog\/how-to-backup-couchbase\/"},"modified":"2020-08-11T02:58:59","modified_gmt":"2020-08-11T09:58:59","slug":"how-to-backup-couchbase","status":"publish","type":"post","link":"https:\/\/www.couchbase.com\/blog\/how-to-backup-couchbase\/","title":{"rendered":"How to Backup Couchbase: A Quick Start Guide"},"content":{"rendered":"\n<p><span>In this article, you will get an overview of how to backup both Couchbase Community and Enterprise editions on Ubuntu and how to set up a basic Couchbase backup strategy.\u00a0<\/span><\/p>\n\n\n\n<p><span>The scripts and techniques described here are not production-ready, you might still need to make a few improvements according to your environment to make it fail tolerant.<\/span><\/p>\n\n\n\n<p><span>I also highly recommend you to read the official documentations referenced during this article as many optional parameters won\u2019t be mentioned.<\/span><\/p>\n\n\n\n<p>\u00a0<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span>General Recommendations<\/span><\/h2>\n\n\n\n<p>\u00a0<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span>Backup Machines<\/span><\/h3>\n\n\n\n<p><span>Although in clusters with small data volume and a small number of nodes you could even use one of the nodes to backup the data during off-peak hours, it is highly recommended to always run your backups in an external machine running within the same network.<\/span><\/p>\n\n\n\n<p><span>Don\u2019t underestimate the amount of memory and CPU needed to run healthy backup processes. Sharing the same machine can impact your cluster performance and also\u00a0<\/span><span>cause backups to fail when there are not enough resources available.<\/span><\/p>\n\n\n\n<p><span>If you need to reduce the costs of running an extra server for backups, most cloud providers allow you to schedule when an instance should be started, then in your backup script, you can shutdown the machine once everything is finished.\u00a0<\/span><\/p>\n\n\n\n<p><span>On Kubernetes, it should be even easier, as you could use <\/span><a href=\"https:\/\/kubernetes.io\/docs\/concepts\/workloads\/controllers\/cron-jobs\/\"><span>CronJobs<\/span><\/a><span> to do virtually the same thing or simply define <\/span><a href=\"https:\/\/docs.couchbase.com\/operator\/1.1\/backup-and-restore.html\"><span>backup policies if you are using Couchbase Autonomous Operator<\/span><\/a><span>.<\/span><\/p>\n\n\n\n<p>\u00a0<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span>Retention Policy<\/span><\/h3>\n\n\n\n<p><span>Both Incremental and <\/span><span>cumulative<\/span><span> backups depend on the last full backup. So, It is important to remember that you can\u2019t archive old backups solely based on the date, you should also consider it\u2019s dependencies.<\/span><\/p>\n\n\n\n<p><span>If you have a small SLA you should also consider leaving the last few backups in an easily accessible block storage. Depending on the size of your database and the speed of the network, downloading data from some object storage might cost you precious minutes.<\/span><\/p>\n\n\n\n<p>\u00a0<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span>Recovery Testing<\/span><\/h3>\n\n\n\n<p><span>Although it is unfeasible to test every single backup, it is crucial to have a recurrent backup testing strategy to check its health. Test backups also help you to get familiar with the data-restoring tools and also to understand how much time you will need to fully recover the database (2 important things to know when something goes wrong).<\/span><\/p>\n\n\n\n<p><span>Couchbase already has internally a number of features that will prevent data loss, for instance, the number of replicas for each vBucket that is configured when you first create the bucket. Assuming that your database is properly configured, the most likely scenarios where you will need to recover the database are :<\/span><\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li><span>If you lose more nodes than the number of replicas. (e.g. You have configured 2 replicas but you have lost 3 nodes at once )<\/span><\/li>\n\n\n<li><span>An operation which will leave the whole database inconsistent (e.g. A new application version is deployed with a bug that update\/delete a high number of records )<\/span><\/li>\n\n<\/ol>\n\n\n\n<h2 class=\"wp-block-heading\"><\/h2>\n\n\n\n<h2 class=\"wp-block-heading\"><\/h2>\n\n\n\n<h2 class=\"wp-block-heading\"><span>Preparing the Backup Machine<\/span><\/h2>\n\n\n\n<p><span>If you plan to run your backups in a dedicated machine, you must copy the <\/span><b>bin<\/b><span> folder from your Couchbase installation to this machine, or simply<\/span><a href=\"https:\/\/docs.couchbase.com\/server\/current\/install\/install-linux.html\"><span> install Couchbase<\/span><\/a><span> on this machine as well. For instance, on Ubuntu, you need to run the following commands:<\/span><\/p>\n\n\n<p>[crayon lang=&#8221;sh&#8221; decode=&#8221;true&#8221;]curl -O https:\/\/packages.couchbase.com\/releases\/couchbase-release\/couchbase-release-1.0-amd64.deb<br \/>\nsudo dpkg -i .\/couchbase-release-1.0-amd64.deb<br \/>\nsudo apt-get update<br \/>\n[\/crayon]<\/p>\n\n\n\n<p>Then you will need to run the following command according to your Couchbase version:<\/p>\n\n\n\n<p><strong>Couchbase Community:<\/strong><\/p>\n\n\n<p>[crayon lang=&#8221;sh&#8221; decode=&#8221;true&#8221;]sudo apt-get install couchbase-server-community[\/crayon]<\/p>\n\n\n\n<p><strong>Couchbase Enterprise<\/strong><\/p>\n\n\n<p>[crayon lang=&#8221;sh&#8221; decode=&#8221;true&#8221;]sudo apt-get install couchbase-server[\/crayon]<\/p>\n\n\n\n<p>\u00a0<\/p>\n\n\n\n<p><span>After that, all the files we will need for this article should be under the <strong>\/opt\/couchbase\/bin<\/strong> folder (&#8220;<\/span><em><strong><span class=\"s1\">\/Applications\/Couchbase Server.app\/Contents\/Resources\/couchbase-core\/bin<\/span><\/strong><\/em><span><em><strong>&#8220;<\/strong><\/em> on Mac).<\/span><\/p>\n\n\n\n<p><span>To reduce the inconvenience of referencing the <\/span><b>bin<\/b><span> folder in every command, I suggest you add it to the <strong>PATH<\/strong> or create a symbolic link in the<strong> \/usr\/bin <\/strong>directory:<\/span><\/p>\n\n\n\n<p><em><strong>Couchbase Community:<\/strong><\/em><\/p>\n\n\n<p>[crayon lang=&#8221;sh&#8221; decode=&#8221;true&#8221;]\/usr\/bin$ sudo ln -s \/opt\/couchbase\/bin\/cbbackup cbbackup[\/crayon]<\/p>\n\n\n\n<p><strong>Couchbase Enterprise:<\/strong><\/p>\n\n\n<p>[crayon lang=&#8221;sh&#8221; decode=&#8221;true&#8221;]\/usr\/bin$ sudo ln -s \/opt\/couchbase\/bin\/cbbackupmgr cbbackupmgr[\/crayon]<\/p>\n\n\n\n<p>\u00a0<\/p>\n\n\n\n<p>\u00a0<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span>How to Backup Couchbase Community<\/span><\/h2>\n\n\n\n<p><span>Couchbase Community comes with two main tools to help you backup and restore the data of your Couchbase cluster: <\/span><a href=\"https:\/\/docs.couchbase.com\/server\/current\/cli\/cbtools\/cbbackup.html\"><span>cbbackup<\/span><\/a><span> and <\/span><a href=\"https:\/\/docs.couchbase.com\/server\/current\/cli\/cbtools\/cbrestore.html\"><span>cbrestore<\/span><\/a><span>. Both tools are available under the <\/span><b>bin<\/b><span> directory of your Couchbase installation.<\/span><\/p>\n\n\n\n<p><span>CBBACKUP has 3 main modes:<\/span><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><span><strong>full<\/strong> &#8211; The <\/span><span>full<\/span><span> mode will perform a full backup.<\/span><\/li>\n\n\n<li><span><strong>diff<\/strong> &#8211; (default) The <\/span><span>diff<\/span><span> mode will perform a differential incremental backup which backups only the changes since the last full or incremental backup.<\/span><\/li>\n\n\n<li><span><strong>accu<\/strong> &#8211; The <\/span><span>accu<\/span><span> mode performs a cumulative incremental backup, which backs up all changes since the last full backup.<\/span><\/li>\n\n<\/ul>\n\n\n\n<p>A simple backup strategy could be similar to the following:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><span>Full backup on Sundays 1 am;<\/span><\/li>\n\n\n<li><span>Daily Incremental backups at 1 am;<\/span><\/li>\n\n<\/ul>\n\n\n\n<p><span>Let\u2019s start by creating a script which will run our full backup, create a file called <\/span><b>full_backup_couchbase.sh<\/b><span> with the following content:<\/span><\/p>\n\n\n<p>[crayon lang=&#8221;sh&#8221; decode=&#8221;true&#8221;]#!\/bin\/bash -e<\/p>\n<p>echo &#8220;Running Couchbase Full Backup&#8221;<\/p>\n<p>cd \/opt\/couchbase\/bin\/<br \/>\n.\/cbbackup https:\/\/COUCHBASE_NODE_IP:8091 \/YOUR\/BACKUP\/DIR -u yourusername -p yourpassword! -m full<\/p>\n<p>echo &#8220;Full Couchbase Backup concluded&#8221;[\/crayon]<\/p>\n\n\n\n<p><span>Then, let\u2019s use CronTab to schedule our full backup, run the following command:<\/span><\/p>\n\n\n<p>[crayon lang=&#8221;sh&#8221; decode=&#8221;true&#8221;]sudo vim \/etc\/crontab[\/crayon]<\/p>\n\n\n\n<p><span>Press &#8220;<strong>i<\/strong>&#8221; to enter the edition mode and then add the following line:<\/span><\/p>\n\n\n<p>[crayon lang=&#8221;sh&#8221; decode=&#8221;true&#8221;]0 1 * * Sun \u00a0 yourLocalUser\u00a0 \/PATH\/TO\/YOUR\/SCRIPT\/full_backup_couchbase.sh[\/crayon]<\/p>\n\n\n\n<p><span>Note that <\/span><b>yourLocalUser<\/b><span> refers to the local user of the machine, the script will run using that context. Save the file once you finish (&#8220;esc&#8221;, then &#8220;:wq&#8221; in case you are not used to vim)<\/span><\/p>\n\n\n\n<p><span>Now, let\u2019s create the script to run the incremental backups, the only difference here is the <\/span><b>mode<\/b><span> parameter. Create a file called <\/span><b>incremental_backup_couchbase.sh<\/b><span> and add the following content:<\/span><\/p>\n\n\n<p>[crayon lang=&#8221;sh&#8221; decode=&#8221;true&#8221;]#!\/bin\/bash -e<br \/>\necho &#8220;Running Couchbase Incremental Backup&#8221;<\/p>\n<p>cd \/opt\/couchbase\/bin\/<br \/>\n.\/cbbackup https:\/\/YOUR_COUCHBASE_NODE_IP:8091 \/YOUR\/BACKUP\/DIR -u your_couchbase_username -p your_couchbase_password -m diff<\/p>\n<p>echo &#8220;Couchbase Incremental Backup concluded&#8221;[\/crayon]<\/p>\n\n\n\n<p><span>Let\u2019s also add this script to tab CronTab file:<\/span><\/p>\n\n\n<p>[crayon lang=&#8221;default&#8221; decode=&#8221;true&#8221;]sudo vim \/etc\/crontab[\/crayon]<\/p>\n\n\n\n<p><span>And then add the following line:<\/span><\/p>\n\n\n\n<p><p>[crayon lang=&#8221;sh&#8221; decode=&#8221;true&#8221;]sudo apt-get install couchbase-server-community[\/crayon]<\/p>\n0<\/p>\n\n\n\n<p><span>The crontab above says that this script will run from Monday to Saturday at 01 am. <\/span><span>Don\u2019t forget to make both your scripts executable:<\/span><\/p>\n\n\n\n<p><p>[crayon lang=&#8221;sh&#8221; decode=&#8221;true&#8221;]sudo apt-get install couchbase-server-community[\/crayon]<\/p>\n1<\/p>\n\n\n\n<p><span>Run both your scripts to be sure that they are working properly. In the last session of this article, you will learn how to also test your crontab.<\/span><\/p>\n\n\n\n<p>\u00a0<\/p>\n\n\n\n<p>\u00a0<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span>How to Backup Couchbase Enterprise<\/span><\/h2>\n\n\n\n<p><span>Couchbase Enterprise comes with a more comprehensive tool called <\/span><a href=\"https:\/\/docs.couchbase.com\/server\/current\/backup-restore\/cbbackupmgr.html\"><span>cbbackupmgr<\/span><\/a><span> which gives you some extra features:<\/span><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><span>Backup compaction in a backup repository to free up disk space;<\/span><\/li>\n\n\n<li><span>Lists the contents of the backup archive;<\/span><\/li>\n\n\n<li><span>Merge two or more backups together;<\/span><\/li>\n\n<\/ul>\n\n\n\n<p><span>As we have a few extra features now we could create a more elaborated script that does the following:<\/span><\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li><span>Configure the directory if it is not configured yet (<\/span><a href=\"https:\/\/docs.couchbase.com\/server\/current\/backup-restore\/cbbackupmgr-config.html\"><span>cbbackupmgr config<\/span><\/a><span>)<\/span><\/li>\n\n\n<li><span>Execute a full\/delta backup<\/span><\/li>\n\n\n<li><span>Merge older incremental backups to reclaim disk space<\/span><\/li>\n\n<\/ol>\n\n\n\n<p><span>\u00a0Here is a script called <\/span><strong>backup_with_periodic_merge.sh<\/strong><span> that you could use do to exactly what is described above:<\/span><\/p>\n\n\n\n<p><p>[crayon lang=&#8221;sh&#8221; decode=&#8221;true&#8221;]sudo apt-get install couchbase-server-community[\/crayon]<\/p>\n2<\/p>\n\n\n\n<p>\u00a0<\/p>\n\n\n\n<p><span>To run the script you could specify something like the following:<\/span><\/p>\n\n\n\n<p><p>[crayon lang=&#8221;sh&#8221; decode=&#8221;true&#8221;]sudo apt-get install couchbase-server-community[\/crayon]<\/p>\n3<\/p>\n\n\n\n<p><span>In order to avoid typing this command every time, let&#8217;s create a second script with all the parameters. Here a script called <strong>cb_incremental_backup.sh<\/strong>:<\/span><\/p>\n\n\n\n<p><p>[crayon lang=&#8221;sh&#8221; decode=&#8221;true&#8221;]sudo apt-get install couchbase-server-community[\/crayon]<\/p>\n4<\/p>\n\n\n\n<p><span>Here I am assuming that both files are located under the folder <strong>\/home\/ubuntu\/scripts<\/strong>. At the end of the script, I\u2019m also using <\/span><a href=\"https:\/\/ubuntu.com\/server\/docs\/mail-postfix\"><span>Postfix<\/span><\/a><span> to send an email to a group of users once the whole process has been finished. There are definitely better ways to monitor if your backups ran successfully, but if you don\u2019t have any better strategy in place yet, sending an email is at least a basic type of monitoring.<\/span><\/p>\n\n\n\n<p><span>Scheduling this script to run using crontab will be very similar to what we have done on the community edition, just run the following command:<\/span><\/p>\n\n\n\n<p><p>[crayon lang=&#8221;sh&#8221; decode=&#8221;true&#8221;]sudo apt-get install couchbase-server-community[\/crayon]<\/p>\n5<\/p>\n\n\n\n<p><span>And then add the following line:<\/span><\/p>\n\n\n\n<p><p>[crayon lang=&#8221;sh&#8221; decode=&#8221;true&#8221;]sudo apt-get install couchbase-server-community[\/crayon]<\/p>\n6<\/p>\n\n\n\n<p><span>Note that <\/span><b>yourLocalUser<\/b><span> refers to the local user of the machine, the script will run using that context. Save the file once you finish (&#8220;esc&#8221;, then &#8220;:wq&#8221; in case you are not used to vim)<\/span><\/p>\n\n\n\n<p><span>The <strong>cb_incremental_backup.sh<\/strong> script will run incremental backups every day at 01 am. I recommend you to additionally run full backups from time to time to avoid having a single full backup with a number of incremental ones.<\/span><\/p>\n\n\n\n<h1 class=\"wp-block-heading\"><\/h1>\n\n\n\n<h2 class=\"wp-block-heading\"><\/h2>\n\n\n\n<h2 class=\"wp-block-heading\"><span>Testing your CronTab<\/span><\/h2>\n\n\n\n<p><span>You can quickly test your CronTabs using <a href=\"https:\/\/cronitor.io\">cronitor<\/a>, just run the following commands to install it<\/span><\/p>\n\n\n\n<p><p>[crayon lang=&#8221;sh&#8221; decode=&#8221;true&#8221;]sudo apt-get install couchbase-server-community[\/crayon]<\/p>\n7<\/p>\n\n\n\n<p><span>Then, run the command below to list all your scheduled jobs:<\/span><\/p>\n\n\n\n<p><p>[crayon lang=&#8221;sh&#8221; decode=&#8221;true&#8221;]sudo apt-get install couchbase-server-community[\/crayon]<\/p>\n8<\/p>\n\n\n\n<p><span>Navigate through the list using the arrow keys, choose the one you want to run and hit enter:<\/span><\/p>\n\n\n\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-9060\" src=\"https:\/\/www.couchbase.com\/wp-content\/uploads\/sites\/5\/2026\/05\/Screen-Shot-2020-08-06-at-4.06.43-PM-1024x280-1.png\" alt=\"\" width=\"900\" height=\"246\"><\/p>\n\n\n\n<p>\u00a0<\/p>\n\n\n\n<p>If everything is properly configured, your script should be executed successfully.<\/p>\n\n\n\n<p>\u00a0<\/p>\n\n\n\n<p>\u00a0<\/p>\n\n\n\n<p>\u00a0<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In this article, you will get an overview of how to backup both Couchbase Community and Enterprise editions on Ubuntu and how to set up a basic Couchbase backup strategy.\u00a0 The scripts and techniques described here are not production-ready, you might still need to make a few improvements according to your environment to make it [&hellip;]<\/p>\n","protected":false},"author":8754,"featured_media":18,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"inline_featured_image":false,"footnotes":""},"categories":[418,136,54],"tags":[242],"ppma_author":[287],"class_list":["post-1694","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-backup","category-best-practices-and-tutorials","category-couchbase-server","tag-backup"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v27.6 (Yoast SEO v27.6) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>Couchbase Backup and Restore: A Quick How to Start Guide<\/title>\n<meta name=\"description\" content=\"Get an overview of how-to backup both Couchbase Community and Enterprise editions on Ubuntu and a basic Couchbase backup and restore strategy.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.couchbase.com\/blog\/how-to-backup-couchbase\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Backup Couchbase: A Quick Start Guide\" \/>\n<meta property=\"og:description\" content=\"Get an overview of how-to backup both Couchbase Community and Enterprise editions on Ubuntu and a basic Couchbase backup and restore strategy.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.couchbase.com\/blog\/how-to-backup-couchbase\/\" \/>\n<meta property=\"og:site_name\" content=\"The Couchbase Blog\" \/>\n<meta property=\"article:published_time\" content=\"2020-08-11T09:58:59+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/5\/2026\/05\/couchbase-nosql-dbaas.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1800\" \/>\n\t<meta property=\"og:image:height\" content=\"630\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Denis Rosa, Developer Advocate, Couchbase\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@deniswsrosa\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Denis Rosa, Developer Advocate, Couchbase\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"6 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.couchbase.com\\\/blog\\\/how-to-backup-couchbase\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.couchbase.com\\\/blog\\\/how-to-backup-couchbase\\\/\"},\"author\":{\"name\":\"Denis Rosa, Developer Advocate, Couchbase\",\"@id\":\"https:\\\/\\\/www.couchbase.com\\\/blog\\\/#\\\/schema\\\/person\\\/fe3c5273e805e72a5294611a48f62257\"},\"headline\":\"How to Backup Couchbase: A Quick Start Guide\",\"datePublished\":\"2020-08-11T09:58:59+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.couchbase.com\\\/blog\\\/how-to-backup-couchbase\\\/\"},\"wordCount\":1594,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/www.couchbase.com\\\/blog\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.couchbase.com\\\/blog\\\/how-to-backup-couchbase\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.couchbase.com\\\/blog\\\/wp-content\\\/uploads\\\/sites\\\/5\\\/2026\\\/05\\\/couchbase-nosql-dbaas.png\",\"keywords\":[\"backup\"],\"articleSection\":[\"Backup\",\"Best Practices and Tutorials\",\"Couchbase Server\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.couchbase.com\\\/blog\\\/how-to-backup-couchbase\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.couchbase.com\\\/blog\\\/how-to-backup-couchbase\\\/\",\"url\":\"https:\\\/\\\/www.couchbase.com\\\/blog\\\/how-to-backup-couchbase\\\/\",\"name\":\"Couchbase Backup and Restore: A Quick How to Start Guide\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.couchbase.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.couchbase.com\\\/blog\\\/how-to-backup-couchbase\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.couchbase.com\\\/blog\\\/how-to-backup-couchbase\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.couchbase.com\\\/blog\\\/wp-content\\\/uploads\\\/sites\\\/5\\\/2026\\\/05\\\/couchbase-nosql-dbaas.png\",\"datePublished\":\"2020-08-11T09:58:59+00:00\",\"description\":\"Get an overview of how-to backup both Couchbase Community and Enterprise editions on Ubuntu and a basic Couchbase backup and restore strategy.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.couchbase.com\\\/blog\\\/how-to-backup-couchbase\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.couchbase.com\\\/blog\\\/how-to-backup-couchbase\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.couchbase.com\\\/blog\\\/how-to-backup-couchbase\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.couchbase.com\\\/blog\\\/wp-content\\\/uploads\\\/sites\\\/5\\\/2026\\\/05\\\/couchbase-nosql-dbaas.png\",\"contentUrl\":\"https:\\\/\\\/www.couchbase.com\\\/blog\\\/wp-content\\\/uploads\\\/sites\\\/5\\\/2026\\\/05\\\/couchbase-nosql-dbaas.png\",\"width\":1800,\"height\":630},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.couchbase.com\\\/blog\\\/how-to-backup-couchbase\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.couchbase.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Backup Couchbase: A Quick Start Guide\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.couchbase.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.couchbase.com\\\/blog\\\/\",\"name\":\"The Couchbase Blog\",\"description\":\"Couchbase, the NoSQL Database\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.couchbase.com\\\/blog\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.couchbase.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.couchbase.com\\\/blog\\\/#organization\",\"name\":\"The Couchbase Blog\",\"url\":\"https:\\\/\\\/www.couchbase.com\\\/blog\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.couchbase.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.couchbase.com\\\/blog\\\/wp-content\\\/uploads\\\/sites\\\/5\\\/2026\\\/06\\\/logo.svg\",\"contentUrl\":\"https:\\\/\\\/www.couchbase.com\\\/blog\\\/wp-content\\\/uploads\\\/sites\\\/5\\\/2026\\\/06\\\/logo.svg\",\"width\":\"1024\",\"height\":\"1024\",\"caption\":\"The Couchbase Blog\"},\"image\":{\"@id\":\"https:\\\/\\\/www.couchbase.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.couchbase.com\\\/blog\\\/#\\\/schema\\\/person\\\/fe3c5273e805e72a5294611a48f62257\",\"name\":\"Denis Rosa, Developer Advocate, Couchbase\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/f8d1f5c13115122cab89d0f229b904480bfe20d3dfbb093fe9734cda5235d419?s=96&d=mm&r=gbe0716f6199cfb09417c92cf7a8fa8d6\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/f8d1f5c13115122cab89d0f229b904480bfe20d3dfbb093fe9734cda5235d419?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/f8d1f5c13115122cab89d0f229b904480bfe20d3dfbb093fe9734cda5235d419?s=96&d=mm&r=g\",\"caption\":\"Denis Rosa, Developer Advocate, Couchbase\"},\"description\":\"Denis Rosa is a Developer Advocate for Couchbase and lives in Munich - Germany. He has a solid experience as a software engineer and speaks fluently Java, Python, Scala and Javascript. Denis likes to write about search, Big Data, AI, Microservices and everything else that would help developers to make a beautiful, faster, stable and scalable app.\",\"sameAs\":[\"https:\\\/\\\/x.com\\\/deniswsrosa\"],\"url\":\"https:\\\/\\\/www.couchbase.com\\\/blog\\\/author\\\/denis-rosa\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Couchbase Backup and Restore: A Quick How to Start Guide","description":"Get an overview of how-to backup both Couchbase Community and Enterprise editions on Ubuntu and a basic Couchbase backup and restore strategy.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.couchbase.com\/blog\/how-to-backup-couchbase\/","og_locale":"en_US","og_type":"article","og_title":"How to Backup Couchbase: A Quick Start Guide","og_description":"Get an overview of how-to backup both Couchbase Community and Enterprise editions on Ubuntu and a basic Couchbase backup and restore strategy.","og_url":"https:\/\/www.couchbase.com\/blog\/how-to-backup-couchbase\/","og_site_name":"The Couchbase Blog","article_published_time":"2020-08-11T09:58:59+00:00","og_image":[{"width":1800,"height":630,"url":"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/5\/2026\/05\/couchbase-nosql-dbaas.png","type":"image\/png"}],"author":"Denis Rosa, Developer Advocate, Couchbase","twitter_card":"summary_large_image","twitter_creator":"@deniswsrosa","twitter_misc":{"Written by":"Denis Rosa, Developer Advocate, Couchbase","Est. reading time":"6 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.couchbase.com\/blog\/how-to-backup-couchbase\/#article","isPartOf":{"@id":"https:\/\/www.couchbase.com\/blog\/how-to-backup-couchbase\/"},"author":{"name":"Denis Rosa, Developer Advocate, Couchbase","@id":"https:\/\/www.couchbase.com\/blog\/#\/schema\/person\/fe3c5273e805e72a5294611a48f62257"},"headline":"How to Backup Couchbase: A Quick Start Guide","datePublished":"2020-08-11T09:58:59+00:00","mainEntityOfPage":{"@id":"https:\/\/www.couchbase.com\/blog\/how-to-backup-couchbase\/"},"wordCount":1594,"commentCount":0,"publisher":{"@id":"https:\/\/www.couchbase.com\/blog\/#organization"},"image":{"@id":"https:\/\/www.couchbase.com\/blog\/how-to-backup-couchbase\/#primaryimage"},"thumbnailUrl":"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/5\/2026\/05\/couchbase-nosql-dbaas.png","keywords":["backup"],"articleSection":["Backup","Best Practices and Tutorials","Couchbase Server"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.couchbase.com\/blog\/how-to-backup-couchbase\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.couchbase.com\/blog\/how-to-backup-couchbase\/","url":"https:\/\/www.couchbase.com\/blog\/how-to-backup-couchbase\/","name":"Couchbase Backup and Restore: A Quick How to Start Guide","isPartOf":{"@id":"https:\/\/www.couchbase.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.couchbase.com\/blog\/how-to-backup-couchbase\/#primaryimage"},"image":{"@id":"https:\/\/www.couchbase.com\/blog\/how-to-backup-couchbase\/#primaryimage"},"thumbnailUrl":"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/5\/2026\/05\/couchbase-nosql-dbaas.png","datePublished":"2020-08-11T09:58:59+00:00","description":"Get an overview of how-to backup both Couchbase Community and Enterprise editions on Ubuntu and a basic Couchbase backup and restore strategy.","breadcrumb":{"@id":"https:\/\/www.couchbase.com\/blog\/how-to-backup-couchbase\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.couchbase.com\/blog\/how-to-backup-couchbase\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.couchbase.com\/blog\/how-to-backup-couchbase\/#primaryimage","url":"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/5\/2026\/05\/couchbase-nosql-dbaas.png","contentUrl":"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/5\/2026\/05\/couchbase-nosql-dbaas.png","width":1800,"height":630},{"@type":"BreadcrumbList","@id":"https:\/\/www.couchbase.com\/blog\/how-to-backup-couchbase\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.couchbase.com\/blog\/"},{"@type":"ListItem","position":2,"name":"How to Backup Couchbase: A Quick Start Guide"}]},{"@type":"WebSite","@id":"https:\/\/www.couchbase.com\/blog\/#website","url":"https:\/\/www.couchbase.com\/blog\/","name":"The Couchbase Blog","description":"Couchbase, the NoSQL Database","publisher":{"@id":"https:\/\/www.couchbase.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.couchbase.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.couchbase.com\/blog\/#organization","name":"The Couchbase Blog","url":"https:\/\/www.couchbase.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.couchbase.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/5\/2026\/06\/logo.svg","contentUrl":"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/5\/2026\/06\/logo.svg","width":"1024","height":"1024","caption":"The Couchbase Blog"},"image":{"@id":"https:\/\/www.couchbase.com\/blog\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/www.couchbase.com\/blog\/#\/schema\/person\/fe3c5273e805e72a5294611a48f62257","name":"Denis Rosa, Developer Advocate, Couchbase","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/f8d1f5c13115122cab89d0f229b904480bfe20d3dfbb093fe9734cda5235d419?s=96&d=mm&r=gbe0716f6199cfb09417c92cf7a8fa8d6","url":"https:\/\/secure.gravatar.com\/avatar\/f8d1f5c13115122cab89d0f229b904480bfe20d3dfbb093fe9734cda5235d419?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/f8d1f5c13115122cab89d0f229b904480bfe20d3dfbb093fe9734cda5235d419?s=96&d=mm&r=g","caption":"Denis Rosa, Developer Advocate, Couchbase"},"description":"Denis Rosa is a Developer Advocate for Couchbase and lives in Munich - Germany. He has a solid experience as a software engineer and speaks fluently Java, Python, Scala and Javascript. Denis likes to write about search, Big Data, AI, Microservices and everything else that would help developers to make a beautiful, faster, stable and scalable app.","sameAs":["https:\/\/x.com\/deniswsrosa"],"url":"https:\/\/www.couchbase.com\/blog\/author\/denis-rosa\/"}]}},"acf":[],"authors":[{"term_id":287,"user_id":8754,"is_guest":0,"slug":"denis-rosa","display_name":"Denis Rosa, Developer Advocate, Couchbase","avatar_url":"https:\/\/secure.gravatar.com\/avatar\/?s=96&d=mm&r=g","0":null,"1":"","2":"","3":"","4":"","5":"","6":"","7":"","8":""}],"_links":{"self":[{"href":"https:\/\/www.couchbase.com\/blog\/wp-json\/wp\/v2\/posts\/1694","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.couchbase.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.couchbase.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.couchbase.com\/blog\/wp-json\/wp\/v2\/users\/8754"}],"replies":[{"embeddable":true,"href":"https:\/\/www.couchbase.com\/blog\/wp-json\/wp\/v2\/comments?post=1694"}],"version-history":[{"count":0,"href":"https:\/\/www.couchbase.com\/blog\/wp-json\/wp\/v2\/posts\/1694\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.couchbase.com\/blog\/wp-json\/wp\/v2\/media\/18"}],"wp:attachment":[{"href":"https:\/\/www.couchbase.com\/blog\/wp-json\/wp\/v2\/media?parent=1694"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.couchbase.com\/blog\/wp-json\/wp\/v2\/categories?post=1694"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.couchbase.com\/blog\/wp-json\/wp\/v2\/tags?post=1694"},{"taxonomy":"author","embeddable":true,"href":"https:\/\/www.couchbase.com\/blog\/wp-json\/wp\/v2\/ppma_author?post=1694"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}