Pivotal Knowledge Base

Follow

"Incorrect usage" message seen in cfops

Environment 

Product Version
Pivotal Cloud Foundry® (PCF) 1.6, 1.7 and 1.8
IaaS vSphere, Openstack, & AWS

Summary

On installing cfops (PCF backup and restore tool) in the environment, issues were encountered while executing a backup or restore. The error message is shown below:

  • Incorrect usage

Checklist

  • The cfops command that was executed is missing a flag or value. Please check the command for all required flags and values. See the Additional Information section below on the list of flags.
  • Run "cfops backup help" or "cfops restore help" for a list of the flags and values required.
  • Additional help can be found at the cfops official site.

Resolution

Follow the checklist above and resolve issues if found. Please open a ticket with Pivotal Support if unable to identify the problem using the steps above. 

Additional Information

  • Ops Manager Backup
Full flag Compact flag Description Value
-opsmanagerhost -omh Ops Manager VM hostname  
-adminuser -du Ops Manager web console admin user  
-adminpass -dp Ops Manager web console admin password  
-opsmanageruser -omu Ops Manager user ubuntu
-destination -d Backup destination path  
-tile -t Component name ops-manager
  • Elastic Runtime Backup
Full flag Compact flag Description Value
-opsmanagerhost -omh Ops Manager VM hostname  
-adminuser -du Ops Manager web console admin user  
-adminpass -dp Ops Manager web console admin password  
-opsmanageruser -omu Ops Manager user ubuntu
-destination -d Backup destination path  
-tile -t Component name elastic-runtime
-nfs -nfs Type of nfs backup bp / lite / full (see below)

 

-nfs flag value Description
-nfs bp Backs up buildpacks only and necessitates re-pushing apps
-nfs lite Backs up buildpacks, app droplets, and source
-nfs full Backs up buildpacks, app droplets, source, and app cache
  • Ops Manager Restore
Full flag Compact flag Description Value
-opsmanagerhost -omh Ops Manager VM hostname  
-omr -omr Ops Manager passphrase  
-adminuser -du Ops Manager web console admin user  
-adminpass -dp Ops Manager web console admin password  
-opsmanageruser -omu Ops Manager user ubuntu
-destination -d Path to Ops Manager backup  
-tile -t Component name

ops-manager

  • Elastic Runtime Restore
Full flag Compact flag Description Value
-opsmanagerhost -omh Ops Manager VM hostname  
-adminuser -du Ops Manager web console admin user  
-adminpass -dp Ops Manager web console admin password  
-opsmanageruser -omu Ops Manager user ubuntu
-destination -d Path to Elastic Runtime backup  
-tile -t Component name elastic-runtime

 

 

Comments

Powered by Zendesk