mirror of
https://github.com/openshift/openshift-docs.git
synced 2026-02-06 06:46:26 +01:00
34 lines
711 B
Plaintext
34 lines
711 B
Plaintext
// Module included in the following assemblies:
|
|
//
|
|
// * cli_reference/openshift_cli/administrator-cli-commands.adoc
|
|
|
|
[id="cli-maintenance-commands_{context}"]
|
|
= Maintenance CLI commands
|
|
|
|
== migrate
|
|
|
|
Migrate resources on the cluster to a new version or format depending on the
|
|
subcommand used.
|
|
|
|
.Example: Perform an update of all stored objects
|
|
[source,terminal]
|
|
----
|
|
$ oc adm migrate storage
|
|
----
|
|
|
|
.Example: Perform an update of only pods
|
|
[source,terminal]
|
|
----
|
|
$ oc adm migrate storage --include=pods
|
|
----
|
|
|
|
== prune
|
|
|
|
Remove older versions of resources from the server.
|
|
|
|
.Example: Prune older builds including those whose BuildConfigs no longer exist
|
|
[source,terminal]
|
|
----
|
|
$ oc adm prune builds --orphans
|
|
----
|