> For the complete documentation index, see [llms.txt](https://ajuda.pdvlegal.com.br/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://ajuda.pdvlegal.com.br/pdv/configuracao-do-pdv/restauracao-de-dados.md).

# Restauração de dados

{% hint style="danger" %}
**Pré-requisitos:**

**Backup existente:** Gerado previamente em *PDV > Configurar > Backup dos Dados*.
{% endhint %}

***

**Passo a Passo para Restauração de Dados:**

**1 - Acessar a função de restauração:**

* *PDV > Configurar > Restauração de Dados*.

**2 - Obter a chave de segurança:**

* Acesse **Retaguarda Cloud > Administrativo > Filiais > \[Sua Filial] > Meus Terminais.**
* Clique no **ícone de informação (ℹ️)** do terminal desejado > Copie a chave (validade: **1 hora**).

**3 - Iniciar restauração:**

* Insira a chave no PDV > Confirme.

**4 - Selecionar backup:**

* Escolha o **banco de dados** a ser restaurado (ex.: "Backup\_20231001").
* Confirme a operação.

<figure><img src="/files/6baz9G52v7MLvkwZ0Zja" alt=""><figcaption></figcaption></figure>

{% hint style="success" %}
**Após a restauração:**

* **Dados recuperados:** Vendas, cadastros, configurações do backup selecionado.
* **Atenção:** Dados posteriores ao backup **serão perdidos**.
  {% endhint %}

***

### Resolver problemas comuns

{% hint style="danger" %}

* **Problema:** Chave de segurança inválida.
  * *Solução:* Gere uma nova chave no Cloud (expira a cada 1 hora).
* **Problema:** Backup não aparece na lista.
  * *Solução:* Verifique se o backup foi gerado corretamente no mesmo terminal.
* **Problema:** Restauração falhou.
  * *Solução:* Repita o processo com uma chave atualizada e conexão estável.
    {% endhint %}

***

### Dicas rápidas

{% hint style="success" %}

* **Agende a restauração:** Faça fora do horário de pico para evitar perda de dados recentes.
* **Verifique backups:** Mantenha backups recentes (ex.: diários) no PDV.
* **Contate o suporte:** Se a restauração não resolver o problema, evite tentativas repetidas.
  {% endhint %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://ajuda.pdvlegal.com.br/pdv/configuracao-do-pdv/restauracao-de-dados.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
