github.com/muratcelep/terraform@v1.1.0-beta2-not-internal-4/website/docs/cli/state/recover.html.md (about)

     1  ---
     2  layout: "docs"
     3  page_title: "Recovering from State Disasters - Terraform CLI"
     4  descriptin: "Commands that allow you to restore state backups and override Terraform state protections."
     5  ---
     6  
     7  # Recovering from State Disasters
     8  
     9  If something has gone horribly wrong (possibly due to accidents when performing
    10  other state manipulation actions), you might need to take drastic actions with
    11  your state data.
    12  
    13  - [The `terraform force-unlock` command](/docs/cli/commands/force-unlock.html) can
    14    override the protections Terraform uses to prevent two processes from
    15    modifying state at the same time. You might need this if a Terraform process
    16    (like a normal apply) is unexpectedly terminated (like by the complete
    17    destruction of the VM it's running in) before it can release its lock on the
    18    state backend. Do not run this until you are completely certain what happened
    19    to the process that caused the lock to get stuck.
    20  
    21  - [The `terraform state pull` command](/docs/cli/commands/state/pull.html) and
    22    [the `terraform state push` command](/docs/cli/commands/state/push.html) can
    23    directly read and write entire state files from and to the configured backend.
    24    You might need this for obtaining or restoring a state backup.
    25