# Como fazer Backup do Banco de Dados e Coletar Logs no Raspberry?

### Passo a Passo para fazer Backup do Banco de dados <a href="#passoapasso" id="passoapasso"></a>

{% stepper %}
{% step %}

#### Acessar o phpMyAdmin <a href="#id-1acessarophpmyadmin" id="id-1acessarophpmyadmin"></a>

* No navegador, digite\
  `http://<IP_DO_RASPBERRY>/phpmyadmin`\
  Exemplo: `http://192.168.1.100/phpmyadmin`
* Faça login.

<figure><img src="https://1320237751-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLaIVEmahy7qwD0rmQzED%2Fuploads%2FwZd5nLkXvX8onlTArRpG%2Fimage_rasp.avif?alt=media&#x26;token=306ed0e4-bdfb-4b1e-b507-df83257994f5" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}

#### Exportar o Banco de Dados <a href="#id-2exportarobancodedados" id="id-2exportarobancodedados"></a>

* No menu à esquerda, clique na base **WALINUX** (última da lista).
* Com **WALINUX** selecionado, clique na aba **EXPORTAR** (topo da tela).
* Deixe a opção **Rápido – exibir somente as opções mínimas**.
* Formato **SQL** (padrão) ➜ **Executar**
* O arquivo `.sql` será baixado para o seu computador — salve em local seguro.

<figure><img src="https://1320237751-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLaIVEmahy7qwD0rmQzED%2Fuploads%2FemIZnSTBrH1ln8cUDJLf%2Fimage_rasp2.avif?alt=media&#x26;token=90f034d3-eeef-4d88-828f-9450026e9c14" alt=""><figcaption></figcaption></figure>
{% endstep %}
{% endstepper %}

### Passo a Passo para coletar Logs do Raspberry <a href="#passoapasso" id="passoapasso"></a>

{% stepper %}
{% step %}
No navegador, acesse\
`http://<IP_DO_RASPBERRY>/WSPHP/log/`\
Exemplo: `http://192.168.1.100/WSPHP/log/`
{% endstep %}

{% step %}
A página exibirá os arquivos de log (`.log` ou `.txt`).
{% endstep %}

{% step %}
Clique com o botão direito no arquivo desejado ➜ **Salvar link como…** para baixar.
{% endstep %}
{% endstepper %}


---

# Agent Instructions: 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/equipamentos/raspberry-o-que-preciso-saber/como-fazer-backup-do-banco-de-dados-e-coletar-logs-no-raspberry.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.
