github.com/hugorut/terraform@v1.1.3/website/docs/cli/state/recover.mdx (about)

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