> 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

Restaure um backup local do PDV quando precisar recuperar vendas, cadastros ou configurações salvas.

{% 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="https://1320237751-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLaIVEmahy7qwD0rmQzED%2Fuploads%2FFjJOF9RjldUtJcundl9F%2Fpdv_restauracao_dados.gif?alt=media&amp;token=dca9606c-c4c6-4b4c-945f-06798b7e58d0" 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

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

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
