`oc export`and `oc get --export` are deprecated

Solution Verified - Updated -

Issue

  • oc export is deprecated since v3.10, it replaced with oc get --export.
  • You can see the following message.
Command "export" is deprecated, use the oc get --export
  • oc get --export is also depreciated
  • How do I backup my objects and resources?

Environment

  • OpenShift Container Platform 4.10 and later

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content