Chef-server-ctl backup restore commands missing


#1

Hi, I have a chef server setup on Amazon linux and was testing the backup/restore procedures
=What I want to do is to run chef-server-ctl backup on one server, then chef-server-ctl restore on a different server, but new installations are missing backup and restore commands.

Source - Server1:
I have followed the standard install and setup procedures
-wget https://web-dl.packagecloud.io/chef/stable/packages/el/7/chef-server-core-12.1.2-1.el7.x86_64.rpm
-rpm -Uvh chef-server-core-12.1.2-1.el7.x86_64.rpm
-chef-server-ctl reconfigure
-create user
-create org and assign user as admin
-create a node, upload some cookbooks
-ran: chef-server-ctl backup which created a backup tgz file

Destination - Server2:
The problem comes when I created the second chef server and tried to restore
-wget https://web-dl.packagecloud.io/chef/stable/packages/el/7/chef-server-core-12.1.2-1.el7.x86_64.rpm
-rpm -Uvh chef-server-core-12.1.2-1.el7.x86_64.rpm
-chef-server-ctl reconfigure
-ran chef-server-ctl and noticed the backup and restore commands are missing:

=== the only difference is that the first server was installed maybe 2 weeks ago and the new ones these last few days otherwise they should be identical ===

==Output of chef-server-ctl missing backup and restore commands on new server
chef-server-ctl
I don’t know that command.
/opt/opscode/embedded/bin/omnibus-ctl: command (subcommand)
General Commands:
cleanse
Delete all opscode data, and start from scratch.
cleanup
Perform post-upgrade removal of now-obsolete data, configuration files, logs, etc. Add the ‘–no-op’ flag to see what would be removed.
gather-logs
Create a tarball of recent logs and system information for Chef Support
help
Print this help message.
install
Install addon package by name, with optional --path parameter indicating directory containing packages
reconfigure
Reconfigure the application.
reindex
Reindex all server data for a given organization
show-config
Show the configuration that would be generated by reconfigure.
test
Run the API test suite against localhost.
uninstall
Kill all processes and uninstall the process supervisor (data will be preserved).
upgrade
Upgrade your private chef installation.

What am I doing wrong? What happened here?


#2

Upon further investigation, I found out that the two chef server versions were indeed different:
chef-server 12.1.2 (this one DOES NOT HAVE restore/backup command extensions)
versus
chef-server 12.3.1 (this one has restore/backup command extensions)

This also shows they are different inside the omibus directory where the commands come from:
ls -l /opt/opscode/embedded/service/omnibus-ctl

backup.rb
chef12_upgrade_data_transform.rb
chef12_upgrade_download.rb
chef12_upgrade_upload.rb
chef-server-ctl
cleanup.rb
gather-logs.rb
Gemfile
Gemfile.lock
ha.rb
helpers
install.rb
key_control.rb
knife
open_source_chef12_upgrade.rb
password.rb
psql.rb


reindex.rb
spec
test.rb
upgrade.rb
wrap-knife-opc.rb

Anyway, mystery solved.