mdxp / knife-backup

knife plugin to help backup and restore a chef server.
Apache License 2.0
110 stars 45 forks source link

Add ability to choose what components should be exported or restored. #4

Closed ketan closed 11 years ago

ketan commented 11 years ago

This commit allows passing in components to knife backup export and knife backup restore commands:

$ knife backup export roles nodes

The above commands will backup just the roles and nodes

$ knife backup restore data_bags environments

The above commands will backup just the data bags and environments

mdxp commented 11 years ago

Unfortunately this is not working for me. I tried it with chef 10.x and 11.x with the same result:

knife backup roles nodes
FATAL: Cannot find sub command for: 'backup roles nodes'
Available backup subcommands: (for details, knife SUB-COMMAND --help)

** BACKUP COMMANDS **
knife backup export [COMPONENT [COMPONENT ...]] [-D DIR] (options)
knife backup restore [COMPONENT [COMPONENT ...]] [-D DIR] (options)
ketan commented 11 years ago

Did you try knife backup export nodes roles

mdxp commented 11 years ago

Ups. Somehow I knew that it was not a good idea to do this at 3am ;). Sorry about that. I will check it out again shortly.

ketan commented 11 years ago

Hi,

Any traction on this?

mdxp commented 11 years ago

Merged; THanks @ketan! Sorry for the delay on getting back on this.