0
我正尝试使用knife-essentials将Chef 11服务器中的所有对象备份到json文件。我创建了一个目录下的“备份”含.chef/download.rb如何使用knife-essentials进行备份厨师11
transfer_repo = File.expand_path('..', File.dirname(__FILE__))
chef_server_url "https://localhost"
node_name 'chef-importer'
client_key "~/.chef/client.pem"
repo_mode 'everything'
versioned_cookbooks true
chef_repo_path transfer_repo
cookbook_path nil
当我尝试使用“刀下载”我得到这个错误:
# /usr/local/rvm/bin/chef_knife download -c .chef/download.rb/
ERROR: TypeError: can't convert nil into String
这是抱怨cookbook_path,所以我试图消除这一行,但是这给了我这样的:
ERROR: File chef is a directory while file chef is a regular file
什么是使用刀要领下载厨师11一切正确的方法是什么?
谢谢