Skip to Content
Odoo Menu
  • Sign in
  • Try it free
  • Apps
    Finance
    • Accounting
    • Invoicing
    • Expenses
    • Spreadsheet (BI)
    • Documents
    • Sign
    Sales
    • CRM
    • Sales
    • POS Shop
    • POS Restaurant
    • Subscriptions
    • Rental
    Websites
    • Website Builder
    • eCommerce
    • Blog
    • Forum
    • Live Chat
    • eLearning
    Supply Chain
    • Inventory
    • Manufacturing
    • PLM
    • Purchase
    • Maintenance
    • Quality
    Human Resources
    • Employees
    • Recruitment
    • Time Off
    • Appraisals
    • Referrals
    • Fleet
    Marketing
    • Social Marketing
    • Email Marketing
    • SMS Marketing
    • Events
    • Marketing Automation
    • Surveys
    Services
    • Project
    • Timesheets
    • Field Service
    • Helpdesk
    • Planning
    • Appointments
    Productivity
    • Discuss
    • Approvals
    • IoT
    • VoIP
    • Knowledge
    • WhatsApp
    Third party apps Odoo Studio Odoo Cloud Platform
  • Industries
    Retail
    • Book Store
    • Clothing Store
    • Furniture Store
    • Grocery Store
    • Hardware Store
    • Toy Store
    Food & Hospitality
    • Bar and Pub
    • Restaurant
    • Fast Food
    • Guest House
    • Beverage Distributor
    • Hotel
    Real Estate
    • Real Estate Agency
    • Architecture Firm
    • Construction
    • Estate Management
    • Gardening
    • Property Owner Association
    Consulting
    • Accounting Firm
    • Odoo Partner
    • Marketing Agency
    • Law firm
    • Talent Acquisition
    • Audit & Certification
    Manufacturing
    • Textile
    • Metal
    • Furnitures
    • Food
    • Brewery
    • Corporate Gifts
    Health & Fitness
    • Sports Club
    • Eyewear Store
    • Fitness Center
    • Wellness Practitioners
    • Pharmacy
    • Hair Salon
    Trades
    • Handyman
    • IT Hardware & Support
    • Solar Energy Systems
    • Shoe Maker
    • Cleaning Services
    • HVAC Services
    Others
    • Nonprofit Organization
    • Environmental Agency
    • Billboard Rental
    • Photography
    • Bike Leasing
    • Software Reseller
    Browse all Industries
  • Community
    Learn
    • Tutorials
    • Documentation
    • Certifications
    • Training
    • Blog
    • Podcast
    Empower Education
    • Education Program
    • Scale Up! Business Game
    • Visit Odoo
    Get the Software
    • Download
    • Compare Editions
    • Releases
    Collaborate
    • Github
    • Forum
    • Events
    • Translations
    • Become a Partner
    • Services for Partners
    • Register your Accounting Firm
    Get Services
    • Find a Partner
    • Find an Accountant
    • Meet an advisor
    • Implementation Services
    • Customer References
    • Support
    • Upgrades
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Get a demo
  • Pricing
  • Help

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

  • CRM
  • e-Commerce
  • Accounting
  • Inventory
  • PoS
  • Project
  • MRP
All apps
You need to be registered to interact with the community.
All Posts People Badges
Tags (View all)
odoo accounting v14 pos v15
About this forum
You need to be registered to interact with the community.
All Posts People Badges
Tags (View all)
odoo accounting v14 pos v15
About this forum
Help

ODOO 14 Community: How can I backup odoo files + postgres data

Subscribe

Get notified when there's activity on this post

This question has been flagged
postgresqlsynologybackupodooDocker
10348 Views
Avatar
Joan

Hello all,


INTRODUCTION

I've installed Postgres and Odoo in our company Synology NAS using docker and I would like to be sure that I can backup it all (database and configurations) to be able to delete it all, install both packages again and then just recover my backup in case of a total disaster / data corruption...


If you want, jump directly to ODOO FILES BACKUP as the database part is clear now.


DATABASE BACKUP (after lots of reading I think I have the right approach)

I have mounted the /var/lib/postgresql/data docker folder in a physical folder in my Synology.  This should allow the native backup program to access and copy that folder every night. 

anyway, it seems that this is not the best practice as the database runtime could update the files while my backup program is working, resulting in a corrupted or non usable backup.

To solve this I will schedule a pgdump command, which will use the expected method to backup the database which will keep the database copy stored in the same /var/lib/postgresql/data exposed folder. 

Then my backups program will be able to reach it and keep the files safe for me to recover them in case of need avoiding strange corruption problems and doing the backup of the database in the best possible way..


To recover the pgdump file I could recover the file from my backups and then use the database manager directly using that recovered file as source.


ODOO FILES BACKUP

Even database data is correctly backup, I still need to backup the files and folders that get modifications in the Odoo installation.
I can imagine that new reports, configurations... are stored in configuration files in specific folders of the ODOO installation.

I could expose the important folders and then my NAS backup program could just backup those, but I don't know which folders should I expose.

 

https://hub.docker.com/ _/odoo recommends exposing 3 folders:


/var/lib/odoo

/etc/odoo

/mnt/extra-addons


My problem is not exposing folders, this is already done.  My problem is knowing if those folders are enough.

Which folders should I expose or, said it in another way, which are the important folders to backup on any ODOO 14 installation in order to be on the safe side.


Any help about this will be very welcome.


Thank you very much in advance for your time and help.

0
Avatar
Discard
Enjoying the discussion? Don't just read, join in!

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

Sign up
Related Posts Replies Views Activity
Odoo 18 Docker installation on Synology via Container Manager Solved
synology Docker
Avatar
1
Sep 25
5676
How to make shop acessible on for registered users Solved
odoo Docker
Avatar
Avatar
2
Sep 23
2307
Can't get the Authorization Code
backup odoo
Avatar
Avatar
1
Sep 23
191
Gdrive Redirect Uri
backup odoo
Avatar
Avatar
1
Sep 23
123
can i add the source code of a module through the web interface?
postgresql backup
Avatar
0
Mar 23
3023
Community
  • Tutorials
  • Documentation
  • Forum
Open Source
  • Download
  • Github
  • Runbot
  • Translations
Services
  • Odoo.sh Hosting
  • Support
  • Upgrade
  • Custom Developments
  • Education
  • Find an Accountant
  • Find a Partner
  • Become a Partner
About us
  • Our company
  • Brand Assets
  • Contact us
  • Jobs
  • Events
  • Podcast
  • Blog
  • Customers
  • Legal • Privacy
  • Security
الْعَرَبيّة 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 is a suite of open source business apps that cover all your company needs: CRM, eCommerce, accounting, inventory, point of sale, project management, etc.

Odoo's unique value proposition is to be at the same time very easy to use and fully integrated.

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