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

how to configure Odoo 8.0 for automatic backup including filestore

Subscribe

Get notified when there's activity on this post

This question has been flagged
backup
10 Replies
10268 Views
Avatar
Garth Mathers

I need some advice on how to configure Odoo 8.0 for automatic backup.

From what I’m reading online, it appears that this version of Odoo now needs both a pg_dump backup and a filestore backup (and the Manage Databases option in the log in dialog automatically puts both in a .dump file).

How can I automate this and schedule it to happen once or twice a day? The script examples I’m seeing online appear to only deal with the pg_dump part of the backup – not the filestore portion.

Another possibility I have noticed would be to implement this change http://anybox.fr/blog/postgresql-large-object-storage-for-odoo so that the large objects just get stored in the pg database and I can then just use the pg_dump scripts method without worrying about a separate filestore.

0
Avatar
Discard
Garth Mathers
Author

Thank you for your answer. Sorry i don't have enough karma yet to mark it as answered.....

Pascal Tremblay

If you are un Ubuntu, I can put all my script here for you. Just ask it. Have a good day.

Pascal Tremblay

If you are on Ubuntu, I can put all my script here for you. Just ask it. Have a good day.

Garth Mathers
Author

Please do, Pascal - i would really appreciate it. I'm surprise that Odoo doesn't have automatic backup builtin consider how important it is....

Pascal Tremblay

I will publish my scripts in an other post. Did you try http://24.226.196.31:8069/web/database/manager ??? You can backup there. But it is not automatic.

Pascal Tremblay

https://www.odoo.com/forum/help-1/question/how-to-script-database-backup-on-ubuntu-70165

Avatar
George Mengelberg
Best Answer

You can use Barman (http://www.pgbarman.org/) to provide continuous backup with PITR capability.  For filestore you could use rsync.

I would not recommed putting binary objects in the database.  It makes backups much larger, recover to take longer, and negatively affect DB performance.

1
Avatar
Discard
Benjamin

Hi George, i am new to servers in general and how much more so to odoo. when you say filestore use rsync, how do i do that? where are the files located? where is the database located? I have a freenas on my network that i want to use to backup the databse and filestore!

George Mengelberg

Hi Benjamin, Check your configuration file (https://goo.gl/s2iBvS) to see if the 'data_dir' directive is set. If so, this will be the root of where your files are stored. Otherwise, on linux it will be in your home directory under '.local'. There is a directory for each database and within each will be a 'filestore' directory The attachments are stored there. For the database, you can run 'pg_config' or 'pg_conftool show all' to get a good picture of your PostgreSQL installation. Here are some links for you: Barman: http://www.pgbarman.org/ Duply (uses rsync): https://goo.gl/gO3VLi Filestore info: https://goo.gl/2ydDm4

Avatar
Benjamin
Best Answer

thank you for your help on this.

can i please ask you for a favor, i now have my folder with the filestores in them.  what is the rsync code to rsync them to a local freenas on my network at 192.168.1.17/mnt/freenas/odoo.

also is there a way to use barman on freenas?  or whats the test way to backup postgres sql to freenas on my network?

also i need some custom work done in odoo, do you offer such services?  if yes can you please give me your email so we can chat more there.

  thank you again for everything.    

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
Database backup error: Postgres subprocess ('/usr/bin/pg_dump', '--no-owner', '--file=/tmp/tmpAa0O5Q/dump.sql', u'ahlain_db01') error 1 Solved
backup
Avatar
Avatar
Avatar
Avatar
Avatar
9
Jul 25
67783
how to backup ? Solved
backup
Avatar
Avatar
Avatar
Avatar
Avatar
9
Jul 24
104512
Backup Odoo 12 database using Ubuntu command line
backup
Avatar
Avatar
1
Jul 22
5939
how to backup a saas database and restore on a local server Solved
backup
Avatar
Avatar
Avatar
Avatar
Avatar
12
Jun 24
23294
i can't delete
backup
Avatar
0
Apr 22
50
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