~]# chef-server-ctl backup --yes
Starting Chef Server backup
Bringing down the Chef Server
ok: down: bookshelf: 0s, normally up
ok: down: nginx: 1s, normally up
ok: down: oc_bifrost: 0s, normally up
ok: down: oc_id: 0s, normally up
ok: down: opscode-chef-mover: 0s, normally up
ok: down: opscode-erchef: 0s, normally up
ok: down: opscode-expander: 0s, normally up
ok: down: opscode-expander-reindexer: 0s, normally up
ok: down: opscode-solr4: 0s, normally up
ok: down: rabbitmq: 1s, normally up
ok: down: redis_lb: 0s, normally up
Dumping Postgresql database to /tmp/chef_backup20150916-2948-zhsm7b/chef_backup-2015-09-16-19-49-59.sql
could not change directory to "/root"
ok: down: postgresql: 0s, normally up
Writing backup manifest
Creating backup tarball
tar: Removing leading `/' from member names
Bringing up the Chef Server
ok: run: bookshelf: (pid 3121) 1s
ok: run: nginx: (pid 3168) 0s
ok: run: oc_bifrost: (pid 3183) 0s
ok: run: oc_id: (pid 3231) 1s
ok: run: opscode-chef-mover: (pid 3247) 0s
ok: run: opscode-erchef: (pid 3289) 0s
ok: run: opscode-expander: (pid 3312) 0s
ok: run: opscode-expander-reindexer: (pid 3334) 1s
ok: run: opscode-solr4: (pid 3360) 1s
ok: run: postgresql: (pid 3392) 0s
ok: run: rabbitmq: (pid 3429) 1s
ok: run: redis_lb: (pid 3655) 0s
Exporting tarball to /var/opt/chef-backup
Cleaning up /tmp/chef_backup20150916-2948-zhsm7b
Backup Complete!
~]# echo $?
1
Thanks
--
-- Tiago Cruz