[chef] Re: Re: Chef Server 11 Backup / Restore


Chronological Thread 
  • From: Steven Barre < >
  • To:
  • Subject: [chef] Re: Re: Chef Server 11 Backup / Restore
  • Date: Mon, 06 May 2013 12:01:29 -0700
  • Organization: Real Estate Webmasters

Thanks Todd and Elvin

I found that "knife download / upload" didn't restore nodes / clients / users.

"knife backup" seems to get everything except users.

So I'm using both to get all the data I want.

Backup

# knife backup export -D /home/stack/chef-repo/.chef/chef_server_backup
# knife download --purge --chef-repo-path /home/stack/chef-repo/.chef/chef_server_backup --repo-mode everything /users

Its not documented, but you need to restore all the folders, you cant just "restore everything" in one go.

# knife backup restore clients
# knife backup restore cookbooks
# knife backup restore data_bags
# knife backup restore nodes
# knife backup restore roles

Then "knife user create" to create my users. It appears I can't just pass in the json file file from "knife download /users" though and have to manually copy paste the data.
=================================================
Steven Barre, RHCE, ZCE, MCP

 
 ">
 

Systems Administrator / Programmer
Real Estate Webmasters - 250-753-9893
==================================================
On 2013-04-17 12:23, Todd Bushnell wrote:
" type="cite">
FWIW, I also found this knife-backup plugin quite useful:  http://www.ducea.com/2013/03/04/knife-backup/.  

I preferred that it backed up and restored all cookbook versions; not just the latest.  If you don't necessarily want "all the history" you can clean-up with knife-cleanup plugin before proceeding with knife-backup.  He details this process in the link above.  Cheers.  

::toddmichael


On Tue, Apr 16, 2013 at 5:02 PM, Steven Barre < " target="_blank"> > wrote:
Ohai!

I'm starting to move some of our operations into the cloud and want to start using chef to manage the instances. But first I need a proper backup / recovery plan for my chef-server. All the directions I can find are for Chef 10 and the CouchDB, not for v11.

Anyone aware of a good tutorial on how / what to back up? And how to restore and get running again.

I understand the cookbooks and databags should be in version control, but the node data / keys and such is a different matter.

--
=================================================
Steven Barre, RHCE, ZCE, MCP
" target="_blank">

Systems Administrator / Programmer
Real Estate Webmasters - 250-753-9893
==================================================





  • [chef] Re: Re: Chef Server 11 Backup / Restore, Steven Barre, 05/06/2013

Archive powered by MHonArc 2.6.16.

§