Pular para o conteúdo
Menu
Esta pergunta foi sinalizada
2 Respostas
1750 Visualizações

Hi, 

I have created many test product and added images and other information's like contact info. All these added for test purpose. But I want to reset the database and start like fresh database. Is there any way to reset database?  

Avatar
Cancelar

Before doing these activities, if you take a backup, you can restore it at a later stage.

Melhor resposta

Delete the Existing Database and Create a New One. 

Avatar
Cancelar
Melhor resposta

Hi,

There are a few ways to “reset” your Odoo database so you can start fresh; the right method depends on whether you’re using Odoo.sh, Odoo Online (SaaS), or your own on-premise installation:

Odoo.sh


    1 Go to your Odoo.sh project → select the branch (e.g., staging, dev).

    2 In the Database section, click the ■ (Settings) icon.

    3 Choose 'Download backup'.

    4 You’ll get a .zip file containing a PostgreSQL dump (.dump) and a filestore

    (attachments/images).

    5 Save this file before resetting your database.


Odoo Online (SaaS at odoo.com)


    1 Go to https://www.odoo.com/my/databases.

    2 Locate your database in the list and click 'Manage Database'.

    3 Click 'Download Backup'.

    4 Choose whether to include the filestore.

    5 Save the backup to restore later if needed.


On-Premise / Local Odoo


    1 Open Database Manager in your browser: http://:8069/web/database/manager.

    2 Enter the master password (defined in odoo.conf).

    3 Select the database and click 'Backup'.

    4 You’ll get a .zip file with a .dump file and filestore.

    5 Alternatively, from the command line run: pg_dump mydb > mydb.dump


After downloading the backup, you can safely reset the database and start fresh, while keeping the option to restore your old data.


Hope it helps.



Avatar
Cancelar
Publicações relacionadas Respostas Visualizações Atividade
0
jul. 25
1714
2
nov. 24
7083
2
out. 24
3902
2
ago. 24
2193
3
jul. 24
8598