{"id":32150,"date":"2026-11-30T22:07:59","date_gmt":"2026-11-30T22:07:59","guid":{"rendered":"https:\/\/www.devopsschool.com\/blog\/?p=32150"},"modified":"2026-11-30T22:07:59","modified_gmt":"2026-11-30T22:07:59","slug":"chef-tutorials-chef-infra-server-chef-automate-backup-and-restore","status":"publish","type":"post","link":"https:\/\/www.devopsschool.com\/blog\/chef-tutorials-chef-infra-server-chef-automate-backup-and-restore\/","title":{"rendered":"Chef Tutorials: Chef Infra Server &#038; Chef Automate Backup and Restore"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Chef Infra Server is backed up with <code>chef-server-ctl backup<\/code> and restored with <code>chef-server-ctl restore<\/code>. Chef Automate has its own commands, <code>chef-automate backup create<\/code> and <code>chef-automate backup restore<\/code>. This guide adds runnable commands, scheduling, off-host storage, verification steps and fixes for the gist above, whose Hugo shortcodes do not render.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">Chef Infra Server Backup and Restore<\/h2>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/docs.chef.io\/server\/server_backup_restore\/\" target=\"_blank\" rel=\"noreferrer noopener\">https:\/\/docs.chef.io\/server\/server_backup_restore\/<\/a><\/li>\n<\/ul>\n\n\n\n<script src=\"https:\/\/gist.github.com\/devops-school\/7740cb13aeed91bc7a186f2252d83a30.js\"><\/script>\n\n\n\n<h2 class=\"wp-block-heading\">Chef Automate Backup and Restore<\/h2>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/docs.chef.io\/automate\/backup\/\" target=\"_blank\" rel=\"noreferrer noopener\">Chef Automate Backup<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/docs.chef.io\/automate\/restore\/\" target=\"_blank\" rel=\"noreferrer noopener\">Chef Automate Restore <\/a><\/li>\n\n\n\n<li><\/li>\n<\/ul>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">What each tool backs up<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Chef Infra Server and Chef Automate store different data and use different backup tools. Pick the method that matches your topology. Tested backups of the wrong component will not save you.<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><th>Deployment<\/th><th>Backup command<\/th><th>What is captured<\/th><\/tr><\/thead><tbody><tr><td>Standalone Chef Infra Server<\/td><td><code>chef-server-ctl backup<\/code><\/td><td>Server configuration, PostgreSQL data (orgs, users, nodes, roles, environments, data bags) and Bookshelf cookbook files<\/td><\/tr><tr><td>Chef Backend HA cluster (end of life)<\/td><td><code>chef-backend-ctl backup<\/code> on a follower plus <code>chef-server-ctl backup --config-only<\/code> on a frontend<\/td><td>Cluster data plus frontend configuration<\/td><\/tr><tr><td>Chef Automate (including an embedded Infra Server deployed with Automate)<\/td><td><code>chef-automate backup create<\/code><\/td><td>Automate configuration, service databases and search-engine snapshots<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Note:<\/strong> The search index is not something you restore. After restoring Chef Infra Server, rebuild it with <code>chef-server-ctl reindex --all<\/code> so that <code>knife search<\/code> and search in recipes return correct results.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Back up a standalone Chef Infra Server<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">The gist above shows <code>{{% chef-server\/ctl_chef_server_backup_options %}}<\/code> placeholders where the options should be. These are the options that <code>chef-server-ctl backup --help<\/code> prints on current releases:<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><th>Option<\/th><th>Purpose<\/th><\/tr><\/thead><tbody><tr><td><code>-y<\/code>, <code>--yes<\/code><\/td><td>Agree that the server can go offline during a tar-based backup, without an interactive prompt. Scripts and cron jobs need this.<\/td><\/tr><tr><td><code>-c<\/code>, <code>--config-only<\/code><\/td><td>Back up only the configuration, not the data. Used with Chef Backend or an external PostgreSQL.<\/td><\/tr><tr><td><code>-t<\/code>, <code>--timeout SECONDS<\/code><\/td><td>Maximum time to wait for each shell command. The default is 600.<\/td><\/tr><tr><td><code>-h<\/code>, <code>--help<\/code><\/td><td>Show usage.<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-1\" data-shcb-language-name=\"PHP\" data-shcb-language-slug=\"php\"><span><code class=\"hljs language-php\"><span class=\"hljs-comment\"># Run as root on the Chef Infra Server<\/span>\nsudo chef-server-ctl backup --yes\n\n<span class=\"hljs-comment\"># The archive is written to \/var\/opt\/chef-backup by default<\/span>\nls -lh \/<span class=\"hljs-keyword\">var<\/span>\/opt\/chef-backup\/<\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-1\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">PHP<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">php<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\n\n\n<p class=\"wp-block-paragraph\">Expect a timestamped archive named something like <code>chef-backup-&lt;date-time&gt;.tgz<\/code>. Chef Infra Clients cannot converge while the server is offline, so run backups in a quiet window. The upstream documentation estimates about 4 to 5 minutes per GB of data on a t3.2xlarge instance. Plan the window from your own data size.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Schedule backups and copy them off the host<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">A backup that only exists on the server it protects is lost with that server. The script below takes a backup, copies the newest archive to S3 and removes local copies older than seven days. Replace the bucket name, and install and configure the AWS CLI first, ideally with an instance role instead of static keys.<\/p>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-2\" data-shcb-language-name=\"PHP\" data-shcb-language-slug=\"php\"><span><code class=\"hljs language-php\"><span class=\"hljs-comment\">#!\/usr\/bin\/env bash<\/span>\n<span class=\"hljs-comment\"># \/usr\/local\/sbin\/chef-server-backup.sh<\/span>\nset -euo pipefail\n\nBACKUP_DIR=\/<span class=\"hljs-keyword\">var<\/span>\/opt\/chef-backup\nREMOTE=s3:<span class=\"hljs-comment\">\/\/example-chef-backups\/infra-server\/<\/span>\n\nchef-server-ctl backup --yes\n\nLATEST=$(ls <span class=\"hljs-number\">-1<\/span>t <span class=\"hljs-string\">\"$BACKUP_DIR\"<\/span>\/chef-backup-* | head -n <span class=\"hljs-number\">1<\/span>)\naws s3 cp <span class=\"hljs-string\">\"$LATEST\"<\/span> <span class=\"hljs-string\">\"$REMOTE\"<\/span>\n\nfind <span class=\"hljs-string\">\"$BACKUP_DIR\"<\/span> -name <span class=\"hljs-string\">'chef-backup-*'<\/span> -mtime +<span class=\"hljs-number\">7<\/span> -delete<\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-2\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">PHP<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">php<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-3\" data-shcb-language-name=\"PHP\" data-shcb-language-slug=\"php\"><span><code class=\"hljs language-php\"><span class=\"hljs-comment\"># \/etc\/cron.d\/chef-server-backup  (daily at 02:00)<\/span>\n<span class=\"hljs-number\">0<\/span> <span class=\"hljs-number\">2<\/span> * * * root \/usr\/local\/sbin\/chef-server-backup.sh &gt;&gt; \/<span class=\"hljs-keyword\">var<\/span>\/log\/chef-server-backup.log <span class=\"hljs-number\">2<\/span>&gt;&amp;<span class=\"hljs-number\">1<\/span><\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-3\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">PHP<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">php<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\n\n\n<p class=\"wp-block-paragraph\"><strong>Note:<\/strong> The archive contains the server&#039;s private keys and secrets from <code>\/etc\/opscode<\/code>. Encrypt the storage, for example with S3 server-side encryption, and limit read access to the people who perform restores.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Restore Chef Infra Server on a new host<\/h2>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Build a host with the same hostname\/FQDN as the original. Clients and <code>knife<\/code> configurations point at that name and validate its certificate.<\/li>\n\n\n<li>Install the <strong>same version<\/strong> of the Chef Infra Server package as the one that created the backup. Restore requires 14.11.36 or later. Upgrade only after the restore succeeds.<\/li>\n\n\n<li>Copy the archive to the new host, for example to <code>\/tmp\/chef-backup.tgz<\/code>, and make sure the disk has room for the expanded data.<\/li>\n\n\n<li>Run the restore. Add <code>--cleanse<\/code> only if the target already holds data you intend to wipe.<\/li>\n\n\n<li>Rebuild the search index.<\/li>\n\n\n<li>Verify the server, as described in the next section, before you point clients at it.<\/li>\n<\/ol>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-4\" data-shcb-language-name=\"PHP\" data-shcb-language-slug=\"php\"><span><code class=\"hljs language-php\">sudo chef-server-ctl restore \/tmp\/chef-backup.tgz\n\n<span class=\"hljs-comment\"># Optional: choose a staging directory with more free space<\/span>\nsudo chef-server-ctl restore \/tmp\/chef-backup.tgz --staging-dir \/data\/restore-staging\n\n<span class=\"hljs-comment\"># Rebuild search<\/span>\nsudo chef-server-ctl reindex --all<\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-4\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">PHP<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">php<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\n\n\n<p class=\"wp-block-paragraph\"><strong>Note:<\/strong> <code>--cleanse<\/code> deletes all existing data on the target Chef Infra Server. Never run it against a server that is still in production.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Back up and restore Chef Automate<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Chef Automate manages its own backups. By default it writes them to <code>\/var\/opt\/chef-automate\/backups<\/code>, and each backup is identified by a timestamp ID such as <code>20240115020000<\/code>.<\/p>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-5\" data-shcb-language-name=\"PHP\" data-shcb-language-slug=\"php\"><span><code class=\"hljs language-php\">sudo chef-automate backup create          <span class=\"hljs-comment\"># take a backup and print its ID<\/span>\nsudo chef-automate backup <span class=\"hljs-keyword\">list<\/span>            <span class=\"hljs-comment\"># list available backups<\/span>\nsudo chef-automate backup show &lt;BACKUP_ID&gt;\nsudo chef-automate backup delete &lt;BACKUP_ID&gt;\nsudo chef-automate backup status          <span class=\"hljs-comment\"># check a running backup or restore<\/span><\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-5\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">PHP<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">php<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\n\n\n<p class=\"wp-block-paragraph\">To send backups to a dedicated mount or to S3, patch the Automate configuration. Use one of the two blocks below.<\/p>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-6\" data-shcb-language-name=\"PHP\" data-shcb-language-slug=\"php\"><span><code class=\"hljs language-php\"><span class=\"hljs-comment\"># backup.toml - filesystem location<\/span>\n&#91;<span class=\"hljs-keyword\">global<\/span>.v1.backups.filesystem]\n  path = <span class=\"hljs-string\">\"\/mnt\/automate_backups\"<\/span>\n\n<span class=\"hljs-comment\"># --- or S3 ---<\/span>\n&#91;<span class=\"hljs-keyword\">global<\/span>.v1.backups]\n  location = <span class=\"hljs-string\">\"s3\"<\/span>\n&#91;<span class=\"hljs-keyword\">global<\/span>.v1.backups.s3.bucket]\n  name = <span class=\"hljs-string\">\"example-automate-backups\"<\/span>\n  base_path = <span class=\"hljs-string\">\"automate\"<\/span>\n  endpoint = <span class=\"hljs-string\">\"https:\/\/s3.amazonaws.com\"<\/span><\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-6\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">PHP<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">php<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-7\" data-shcb-language-name=\"CSS\" data-shcb-language-slug=\"css\"><span><code class=\"hljs language-css\"><span class=\"hljs-selector-tag\">sudo<\/span> <span class=\"hljs-selector-tag\">chef-automate<\/span> <span class=\"hljs-selector-tag\">config<\/span> <span class=\"hljs-selector-tag\">patch<\/span> <span class=\"hljs-selector-tag\">backup<\/span><span class=\"hljs-selector-class\">.toml<\/span><\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-7\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">CSS<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">css<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\n\n\n<p class=\"wp-block-paragraph\">To restore, pass the path or URL of the backup. If the backups are on a filesystem and you restore on a new host, copy the <strong>entire backup root directory<\/strong>, not only the timestamped folder. Search-engine snapshot data is stored beside the timestamped folders.<\/p>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-8\" data-shcb-language-name=\"PHP\" data-shcb-language-slug=\"php\"><span><code class=\"hljs language-php\"><span class=\"hljs-comment\"># From the local filesystem<\/span>\nsudo chef-automate backup restore \/<span class=\"hljs-keyword\">var<\/span>\/opt\/chef-automate\/backups\/&lt;BACKUP_ID&gt;\n\n<span class=\"hljs-comment\"># From S3<\/span>\nsudo chef-automate backup restore s3:<span class=\"hljs-comment\">\/\/example-automate-backups\/automate\/&lt;BACKUP_ID&gt;<\/span>\n\n<span class=\"hljs-comment\"># Air-gapped host: also supply the install bundle<\/span>\nsudo chef-automate backup restore --airgap-bundle \/path\/to\/automate.aib \/path\/to\/backups\/&lt;BACKUP_ID&gt;<\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-8\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">PHP<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">php<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\n\n\n<p class=\"wp-block-paragraph\">Run <code>chef-automate backup restore --help<\/code> on your version to see the credential, endpoint and preflight flags it supports. Afterwards, <code>chef-automate status<\/code> should show every service as running.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Verify a restore<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">A backup only counts once you have restored it successfully. Restore to an isolated test host on a regular schedule and run these checks:<\/p>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-9\" data-shcb-language-name=\"PHP\" data-shcb-language-slug=\"php\"><span><code class=\"hljs language-php\">sudo chef-server-ctl status            <span class=\"hljs-comment\"># all services should report run:<\/span>\nsudo chef-server-ctl org-<span class=\"hljs-keyword\">list<\/span>\nsudo chef-server-ctl user-<span class=\"hljs-keyword\">list<\/span>\n\n<span class=\"hljs-comment\"># From a workstation whose config.rb points at the restored server<\/span>\nknife node <span class=\"hljs-keyword\">list<\/span>\nknife cookbook <span class=\"hljs-keyword\">list<\/span>\nknife search node <span class=\"hljs-string\">'*:*'<\/span> -i\n\n<span class=\"hljs-comment\"># On a test node<\/span>\nsudo chef-client<\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-9\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">PHP<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">php<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\n\n\n<p class=\"wp-block-paragraph\">Compare the node, cookbook and organization counts with the source server. If <code>knife node list<\/code> shows nodes but <code>knife search<\/code> returns nothing, run <code>chef-server-ctl reindex --all<\/code> again. The <a href=\"https:\/\/www.devopsschool.com\/blog\/chef-tutorials-knife-command-line-reference\/\">knife command line reference<\/a> covers the workstation commands in more detail.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Corrections to the original material<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>The embedded gist is copied from Chef&#039;s documentation source. Its <code>{{% ... %}}<\/code> and <code>{{&lt; note &gt;}}<\/code> Hugo shortcodes never render, so the actual backup and restore options and syntax are missing. The tables above fill that gap.<\/li>\n\n\n<li>The Chef Backend restore example uses <code>198.52.1000.0<\/code>, which is not a valid IPv4 address because each octet must be 0 to 255. Use a real address, for example <code>chef-backend-ctl restore --publish_address 198.51.100.10 \/backups\/backup.tar.gz<\/code>.<\/li>\n\n\n<li>The secrets file must be copied to <code>\/tmp\/chef-backend-secrets.json<\/code> with a leading slash, not <code>tmp\/...<\/code>. Otherwise the later <code>-s \/tmp\/chef-backend-secrets.json<\/code> option will not find it.<\/li>\n\n\n<li>The troubleshooting snippet is Ruby, not bash. It also patches a gem path that is hard-coded to one Ruby and one <code>chef-server-ctl<\/code> version and is overwritten on upgrade. The supported fix is to upgrade Chef Infra Server to 14.11.36 or later.<\/li>\n\n\n<li>Chef Backend is end of life. New high-availability designs should not be built on it.<\/li>\n\n\n<li>The Chef Automate list in the original ends with an empty bullet, which can be removed.<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">Troubleshooting<\/h2>\n\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><th>Symptom<\/th><th>Likely cause<\/th><th>Fix<\/th><\/tr><\/thead><tbody><tr><td>Backup waits for input in cron and never finishes<\/td><td><code>--yes<\/code> not passed<\/td><td>Run <code>chef-server-ctl backup --yes<\/code><\/td><\/tr><tr><td>Restore fails with a timeout<\/td><td>Large PostgreSQL or Bookshelf data<\/td><td>Increase the timeout, for example <code>--timeout 3600<\/code><\/td><\/tr><tr><td>Restore fails with &quot;no space left on device&quot;<\/td><td>Default staging area too small<\/td><td>Use <code>--staging-dir<\/code> on a larger volume<\/td><\/tr><tr><td>Clients report SSL or certificate errors after restore<\/td><td>Different FQDN on the new host<\/td><td>Use the original FQDN, or regenerate certificates and run <code>knife ssl fetch<\/code><\/td><\/tr><tr><td>Data is present but search returns nothing<\/td><td>Index not rebuilt<\/td><td><code>chef-server-ctl reindex --all<\/code><\/td><\/tr><tr><td>Automate restore cannot find search data<\/td><td>Only the timestamped folder was copied<\/td><td>Copy the whole backup root directory<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Frequently asked questions<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">Where does chef-server-ctl backup store its files?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">By default it writes a timestamped archive to <code>\/var\/opt\/chef-backup<\/code> on the Chef Infra Server. Copy it to separate, encrypted storage, because it contains keys and secrets.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Does Chef Infra Server go offline during a backup?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">A standalone tar-based backup can take the server offline for its duration, which is why <code>--yes<\/code> exists to confirm it. Schedule backups for a quiet window when few Chef Infra Client runs are expected.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Can I restore a Chef Infra Server backup to a newer version?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Install the same version that created the backup, restore it, verify it, and then upgrade with the normal upgrade process. This avoids a data restore and a schema migration happening at the same time.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Do I need to back up Chef Infra Server separately if it runs inside Chef Automate?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">No. When Infra Server is deployed as part of Chef Automate, <code>chef-automate backup create<\/code> includes it. Use <code>chef-server-ctl backup<\/code> only for a standalone Chef Infra Server installation.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Why does knife search return no results after a restore?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">The search index is rebuilt, not restored. Run <code>chef-server-ctl reindex --all<\/code> and check again once it finishes.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Related tutorials<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/www.devopsschool.com\/blog\/chef-tutorials-knife-command-line-reference\/\">Chef Tutorials: knife command line reference<\/a><\/li>\n\n\n<li><a href=\"https:\/\/www.devopsschool.com\/blog\/what-is-chef-and-use-cases-of-chef\/\">What is Chef and use cases of Chef?<\/a><\/li>\n\n\n<li><a href=\"https:\/\/www.devopsschool.com\/blog\/category\/infrastructure-as-code\/chef\/\">More Chef tutorials<\/a><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Chef Infra Server is backed up with chef-server-ctl backup and restored with chef-server-ctl restore. Chef Automate has its own commands, chef-automate backup create and chef-automate backup restore&#8230;. <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_joinchat":[],"footnotes":""},"categories":[88],"tags":[26281,26234],"class_list":["post-32150","post","type-post","status-publish","format-standard","hentry","category-chef","tag-backup-and-restore","tag-chef-infra-server"],"_links":{"self":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/32150","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/comments?post=32150"}],"version-history":[{"count":2,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/32150\/revisions"}],"predecessor-version":[{"id":80454,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/32150\/revisions\/80454"}],"wp:attachment":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/media?parent=32150"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/categories?post=32150"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/tags?post=32150"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}