Skip to Content
Odoo Meniu
  • Autentificare
  • Try it free
  • Aplicații
    Finanțe
    • Contabilitate
    • Facturare
    • Cheltuieli
    • Spreadsheet (BI)
    • Documente
    • Semn
    Vânzări
    • CRM
    • Vânzări
    • POS Shop
    • POS Restaurant
    • Abonamente
    • Închiriere
    Site-uri web
    • Constructor de site-uri
    • eCommerce
    • Blog
    • Forum
    • Live Chat
    • eLearning
    Lanț Aprovizionare
    • Inventar
    • Producție
    • PLM
    • Achiziție
    • Maintenance
    • Calitate
    Resurse Umane
    • Angajați
    • Recrutare
    • Time Off
    • Evaluări
    • Referințe
    • Flotă
    Marketing
    • Social Marketing
    • Marketing prin email
    • SMS Marketing
    • Evenimente
    • Automatizare marketing
    • Sondaje
    Servicii
    • Proiect
    • Foi de pontaj
    • Servicii de teren
    • Centru de asistență
    • Planificare
    • Programări
    Productivitate
    • Discuss
    • Aprobări
    • IoT
    • VoIP
    • Knowledge
    • WhatsApp
    Aplicații Terțe Odoo Studio Platforma Odoo Cloud
  • Industrii
    Retail
    • Book Store
    • Magazin de îmbrăcăminte
    • Magazin de Mobilă
    • Magazin alimentar
    • Magazin de materiale de construcții
    • Magazin de jucării
    Food & Hospitality
    • Bar and Pub
    • Restaurant
    • Fast Food
    • Guest House
    • Distribuitor de băuturi
    • Hotel
    Proprietate imobiliara
    • Real Estate Agency
    • Firmă de Arhitectură
    • Construcție
    • Estate Managament
    • Grădinărit
    • Asociația Proprietarilor de Proprietăți
    Consultanta
    • Firma de Contabilitate
    • Partener Odoo
    • Agenție de marketing
    • Law firm
    • Atragere de talente
    • Audit & Certification
    Producție
    • Textil
    • Metal
    • Mobilier
    • Mâncare
    • Brewery
    • Cadouri corporate
    Health & Fitness
    • Club Sportiv
    • Magazin de ochelari
    • Centru de Fitness
    • Wellness Practitioners
    • Farmacie
    • Salon de coafură
    Trades
    • Handyman
    • IT Hardware and Support
    • Asigurare socială de stat
    • Cizmar
    • Servicii de curățenie
    • HVAC Services
    Altele
    • Organizație nonprofit
    • Agenție de Mediu
    • Închiriere panouri publicitare
    • Fotografie
    • Închiriere biciclete
    • Asigurare socială
    Browse all Industries
  • Comunitate
    Învăță
    • Tutorials
    • Documentație
    • Certificări
    • Instruire
    • Blog
    • Podcast
    Empower Education
    • Program Educațional
    • Scale Up! Business Game
    • Visit Odoo
    Obține Software-ul
    • Descărcare
    • Compară Edițiile
    • Lansări
    Colaborați
    • Github
    • Forum
    • Evenimente
    • Translations
    • Devino Partener
    • Services for Partners
    • Înregistrează-ți Firma de Contabilitate
    Obține Servicii
    • Găsește un Partener
    • Găsiți un contabil
    • Meet an advisor
    • Servicii de Implementare
    • Referințe ale clienților
    • Suport
    • Actualizări
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Obține un demo
  • Prețuri
  • Ajutor

Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:

  • CRM
  • e-Commerce
  • Contabilitate
  • Inventar
  • PoS
  • Proiect
  • MRP
All apps
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
All Posts Oameni Insigne
Etichete (View all)
odoo accounting v14 pos v15
Despre acest forum
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
All Posts Oameni Insigne
Etichete (View all)
odoo accounting v14 pos v15
Despre acest forum
Suport

How to restore and backup db, all collaterals, and restore via script to fresh server?

Abonare

Primiți o notificare când există activitate la acestă postare

Această întrebare a fost marcată
filestorebackuprestorebash
2 Răspunsuri
30411 Vizualizări
Imagine profil
Tai Kedzierski

Hello

I am trying to perform a backup-and-restore on a test Odoo installation (currently working with v8), without much success. I want to be able to achieve this workflow:

  1. Take a backup of the entire deployment (single standalone instance)

  2. Install Odoo on a new server / erase Odoo from current server and re-install fresh

  3. Restore the backup file to the new instance using an automation script (Linux, bash)

Question:

How to reliably take a full backup of the database, such that in one operation (or multiple, scriptable via bash), I can restore the database, additional file assets, and installed modules to a new server?


I have tried two tacks, neither of which work/fulfil my requirements

A/ Manage Databases

Using the Manage Databases interface, I create a backup of the instance which gives me a backup file --> OK

Then on the new instance I upload the database via the web interface. This does not restore some information, notably the logo file. I suspect it does not add modules either, and it is not automatable in this manner.

What might I have missed, and how would I achieve this on the command line?

I guess the filestore in /var/lib/odoo/.local/share/Odoo/filestore/odoo_test would be relevant, but I looked for a file that matched the image and did not find it

B/ Raw database dump / restore

Using psql I dumped the odoo_test database I had set up

Then on the new instance (no initial setup had been done - going to the web interface prompts me to install fresh) I use psql to restore the same database.

When visiting the web interface again, it still is not aware of the instance - obviously, I would likely need to configure its existence somewhere

I looked for a file corresponding to my odoo_test database, but could not locate any

    root@bas-test:/usr/lib/python2.7/dist-packages/openerp# grep -irl odoo_test

    # yielded nothing

Thank you for any suggestion, pointers


1
Imagine profil
Abandonează
Imagine profil
Bole
Cel mai bun răspuns

ll pictures and attachments are stored on file system in odoo8 ( and 9)
Default location of files is : odoo_user/~/.local/share/Odoo.
in that folder you will have 3 subfolders :

- apps ( contains downloaded modules) 
- sessions ( no need to move it.. i t will recreate on new server)
- filestore/bd_name - folder containig all pictures , attachments etc for desired database.

when you restore db on new server, folder under ..filestore/new_db_name should be named same as new created database

nd, if you used pg_dump, you need to create database manualy, with correct owner in order to acces it...hope it helps

2
Imagine profil
Abandonează
Imagine profil
Ray Carnes
Cel mai bun răspuns

A database backup created with Database Manager using the zip (includes filestore) option will create a full database of your system including attachments.

Modules are folders of Python code and XML data, so they are never included in the backup.  Which modules are installed are part of the backup.  Any modules you have installed from the first server need to be available on the second server.

Modules that are downloaded via the App link inside Odoo are copied to the .local/share/Odoo/addons/9.0 folder - so don't forget them - they can be in any addons path on the second server. If you script a database backup via PostgreSQL, you need to remember to also copy the filestore folder to the second server with your script.

You can restore either backup type to another system, but:

1. The system needs to have a compatible build of Odoo.  The same version, at the same build or later.  By build I mean the date you downloaded or pulled the code.  You can't reliably restore a backup to a system with a July build from a system that has an August build.

2. The database should always be 'upgraded' via either the command line (-u all option) or by upgrading the base module from the UI.  I prefer doing this from the command line and watching the log file, as it will tell you about any modules that are not available on the new server.

1
Imagine profil
Abandonează
Enjoying the discussion? Don't just read, join in!

Create an account today to enjoy exclusive features and engage with our awesome community!

Înscrie-te
Related Posts Răspunsuri Vizualizări Activitate
How to Restore Odoo Online Database? Rezolvat
backup restore
Imagine profil
Imagine profil
Imagine profil
Imagine profil
3
sept. 25
9497
Backup procedure for Odoo 14 CE Rezolvat
backup restore
Imagine profil
Imagine profil
1
mai 21
4863
Odoo 10 : backup and restore Rezolvat
filestore backup restore restoredb odoo10
Imagine profil
Imagine profil
Imagine profil
5
mar. 24
32591
backup in linux and shift to windows
backup restore
Imagine profil
Imagine profil
1
mar. 24
7193
Can you tell me how we do a complete backup and restore in odoo ?
backup restore
Imagine profil
Imagine profil
Imagine profil
3
aug. 16
5333
Comunitate
  • Tutorials
  • Documentație
  • Forum
Open Source
  • Descărcare
  • Github
  • Runbot
  • Translations
Servicii
  • Hosting Odoo.sh
  • Suport
  • Actualizare
  • Custom Developments
  • Educație
  • Găsiți un contabil
  • Găsește un Partener
  • Devino Partener
Despre Noi
  • Compania noastră
  • Active de marcă
  • Contactați-ne
  • Locuri de muncă
  • Evenimente
  • Podcast
  • Blog
  • Clienți
  • Aspecte juridice • Confidențialitate
  • Securitate
الْعَرَبيّة Català 简体中文 繁體中文 (台灣) Čeština Dansk Nederlands English Suomi Français Deutsch हिंदी Bahasa Indonesia Italiano 日本語 한국어 (KR) Lietuvių kalba Język polski Português (BR) română русский язык Slovenský jazyk slovenščina Español (América Latina) Español ภาษาไทย Türkçe українська Tiếng Việt

Odoo este o suită de aplicații de afaceri open source care acoperă toate nevoile companiei dvs.: CRM, comerț electronic, contabilitate, inventar, punct de vânzare, management de proiect etc.

Propunerea de valoare unică a Odoo este să fie în același timp foarte ușor de utilizat și complet integrat.

Website made with

Odoo Experience on YouTube

1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.

Live support on Youtube
Watch now