تخطي للذهاب إلى المحتوى
أودو القائمة
  • تسجيل الدخول
  • جرب مجاناً
  • التطبيقات
    المالية
    • المحاسبة
    • فوترة
    • النفقات
    • جدول البيانات (BI)
    • المستندات
    • توقيع إلكتروني
    المبيعات
    • إدارة علاقات العملاء
    • المبيعات
    • نقطة البيع للمتاجر
    • نقطة البيع للمطاعم
    • الاشتراكات
    • تأجير
    المواقع الإلكترونية
    • أداة بناء المواقع الإلكترونية
    • متاجر إلكترونية
    • مدونة
    • المنتدى
    • دردشة مباشرة
    • التعليم الإلكتروني
    سلسلة التوريد
    • المستودعات
    • التصنيع
    • إدارة دورة حياة المنتج
    • المشتريات
    • الصيانة
    • الجودة
    الموارد البشرية
    • موظفون
    • التوظيف
    • إجازة عمل
    • التقييمات
    • الإحالات
    • تطبيق الأسطول
    التسويق
    • التسويق الإجتماعي
    • التسويق عبر البريد الإلكتروني
    • التسويق عبر الرسائل النصية
    • فعاليات
    • أتمتة التسويق
    • الاستطلاعات
    الخدمات
    • المشاريع
    • الجداول الزمنية
    • الخدمة الميدانية
    • مكتب المساعدة
    • التخطيط
    • مواعيد
    اﻹنتاجية
    • مناقشة
    • الموافقات
    • إنترنت الأشياء "IoT"
    • بروتوكول ربط المحادثات الصوتية عبر الإنترنت
    • المعرفة
    • WhatsApp
    التطبيقات الخارجية ستوديو أودو منصة أودو السحابية
  • قطاعات الأعمال
    البيع بالتجزئة
    • متجر كتب
    • متجر ملابس
    • متجر أثاث
    • متجر بقالة
    • متجر معدات
    • متجر ألعاب
    الطعام والضيافة
    • بار وحانة
    • المطعم
    • مطعم للوجبات السريعة
    • نزل للضيوف
    • موزّع مشروبات
    • فندق
    العقارات
    • وكالة عقارات
    • شركة هندسة معمارية
    • البناء
    • إدارة العقارات
    • العناية بالحدائق
    • اتحاد مُلاّك العقارات
    استشارة
    • مؤسسة محاسبية
    • شريك أودو
    • وكالة تسويقية
    • منشأة قانونية
    • استقطاب المواهب
    • التدقيق والتوثيق
    التصنيع
    • الأقمشة
    • معدني
    • الأثاث
    • الطعام
    • مصنع خمور
    • هدايا الشركات
    الصحة واللياقة البدنية
    • نادي رياضي
    • متجر نظارات
    • مركز لياقة بدنية
    • الممارسون الصحيون
    • صيدلية
    • صالون تصفيف الشعر
    التجارة
    • عامل صيانة
    • الأجهزة والمعدات التقنية ودعمها
    • أنظمة الطاقة الشمسية
    • صانع أحذية
    • خدمات التنظيف
    • خدمات التكييف (HVAC)
    غير ذلك
    • منظمة غير ربحية
    • وكالة بيئية
    • تأجير لوحات إعلانية
    • تصوير
    • تأجير دراجات
    • بائع وسيط للبرمجيات
    تصفح كافة قطاعات الأعمال
  • مجتمع أودو
    تعلم
    • دروس
    • التوثيق
    • شهادات
    • التدريب
    • مدونة
    • بودكاست
    قم بتعزيز التعليم
    • برنامج تعليم
    • Scale UP! لعبة الأعمال
    • قم بزيارة أودو
    احصل على البرنامج
    • تحميل
    • قارنْ الإصدارات
    • إطلاق
    تعاون
    • جيت هاب "Github"
    • المنتدى
    • فعاليات
    • الترجمات
    • كنْ شريكاً
    • خدمات الشركاء
    • سجل مكتب المحاسبة الخاص بك
    احصل على الخدمات
    • اعثر على شريك
    • اعثر على محاسب
    • قابل أحد مرشدي الأعمال
    • خدمات التنفيذ
    • مراجع العملاء
    • الدعم
    • الترقيات
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    الحصول على عرض توضيحي
  • الأسعار
  • المساعدة

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

  • إدارة علاقات العملاء
  • e-Commerce
  • المحاسبة
  • المخزون
  • PoS
  • المشروع
  • MRP
All apps
يجب أن تكون مسجلاً حتى تتفاعل مع المجتمع.
كافة المنشورات الأفراد الشارات
علامات التصنيف (عرض الكل)
odoo accounting v14 pos v15
حول هذا المنتدى
يجب أن تكون مسجلاً حتى تتفاعل مع المجتمع.
كافة المنشورات الأفراد الشارات
علامات التصنيف (عرض الكل)
odoo accounting v14 pos v15
حول هذا المنتدى
المساعدة

Backup/Restoring a Large Database using PSQL dump with Filestore?

اشتراك

تسلم الإشعارات عندما يكون هناك نشاط في هذا المنشور

لقد تم الإبلاغ عن هذا السؤال
filestorebackuprestoredbir_attachmentpsql
26 الردود
65456 أدوات العرض
الصورة الرمزية
inian

Hi Guys,

I am using Odoo 11 CE

I tried to backup and restore by database by PSQL dump.

Step1 : Backup my database named rck_test5

sudo pg_dump -U rck10 -h localhost -p 5432 rck_test5 > /odoo/backups/new

Step2: Created new db

createdb -O rck10 rck_test6

Step3: Restore the database

psql -U rck10 -d rck_test6 -f /odoo/backups/new

Everything works fine. But when restored, I am missing all icons and images attached.

I found that these files are stored in ./local/share/Odoo/filestore/dbname when we create or restore database from ui.

When we restore using UI, filestore is zipped and restored properly.

But when we want to restore a database that is more than 10 GB, it is adviced to use psql dump.

I tried setting data_dir path in odoo-server.conf. But it does not generate filestore.

I need to know how to backup and restore filestore using command line. (Reason : I get to see full log of what is happening when we restore a huge database)

Please guide how to

* Backup a filestore

* Restore a filestore

* Update path in ir_attachement.location

to set odoo to read the new filestore location. Please guide me

3
الصورة الرمزية
إهمال
الصورة الرمزية
Hilar Andikkadavath
أفضل إجابة

BACKUP ODOO DATABASES & FILESTORE

Available Odoo Backup DB/Filestore Modes:

  • Local
  • Remote Server
  • Google Drive
  • Dropbox

Module For backup ODOO databases and automating the backup process of ODOO.

  • Multiple Backup Modes
  • Filestore Backup
  • Backup ODOO Databases in a specified path
  • Detailed Message Log
  • Backup Status Information and History
  • User can select the format to dump, either custom archive, plain text SQL or tar archive
  • Archive Backup Process
  • Repeat Missed Backup Process

Features

  • Dump ODOO Database in specified format [Plain SQL / Zip / Tar]
  • Zip filestore in a specified location [You can copy Filestore Backup to the filestore directory]
  • Output a custom archive suitable for input into pg_restore. This is the most flexible format in that it allows the reordering of loading data as well as to object definitions. This format is also compressed by default. Here we use gzip ie, test.gz, We also recommend you select Custom because Using the custom format you can restore single objects from a backup.
  • Output a plain-text SQL script file (the default). The plain text format is useful for very small databases with a minimal number of objects but other than that, it should be avoided.
  • Output a tar archive suitable for input into pg_restore. Using this archive format allows reordering and/or exclusion of database objects at the time the database is restored. It is also possible to limit which data is reloaded at restore time. we use tar with gzip
  • Backup Filestore
  • Multiple backup modes at the same time


About Restore: https://medium.com/@hilarak/odoo-database-backup-automatically-restore-using-psql-7aaf5db89f17 


Module Link: https://apps.odoo.com/apps/modules/13.0/auto_backup_odoo/


Video demonstration: https://youtu.be/7_tjsbOaJSQ

0
الصورة الرمزية
إهمال
الصورة الرمزية
Gagea Alexandru
أفضل إجابة

Hello, did you manage to find a solution for your problem ?

0
الصورة الرمزية
إهمال
inian
الكاتب

No, I could backup/restore completely with file store, only with User interface.

Gagea Alexandru

All of a suddent i can't backup an odoo database.. with no reason and no relevant error, and if i perform backup and restore from pgadmin i dont get the filestore, can't event find the location of the filestore..

inian
الكاتب

can you still connect to your database through pg admin. If so you can restore your database with below commands.

Gagea Alexandru

I go in /var/lib/odoo, to find the filestore, however, i dont have .local/share/Odoo folders...

inian
الكاتب

You cannot view this location in UI navigate through terminal

Gagea Alexandru

i was not in root mode, im in the filestore location, basically i want to restore a database on another server.

Tell me if the bellow steps are wrong:

1. backup database from pgadmin, production server

2. restore database in pgadmin on a development server

3.copy filestore from production server to the dev server.

inian
الكاتب

You are right but we cannot copy the file store from ./local/share/ folder. I already tried that.

inian
الكاتب

For your information, only images and icons are stored in file store.

Gagea Alexandru

i was able to copy the db filestore from that location, into the same location on another server, however, cannot acces the database from UI..

inian
الكاتب

how did you copy the file store. Share command. In order to work database name and file store name should be exactly same.

Gagea Alexandru

1. sudo -su root

2. cd /var/lib/odoo.local/share/Odoo/filestore

3. cp -R dbname /opt/Downloads

( to give write/read/delete permissions on the folder Downloads :

sudo chmod -R ugo+rw /opt/downloads )

4. Copied the filestore from server1(downloads) to server2 (downloads) and on server 2, used the cp command to copy from downloads back to filestore location, and yes it had the same name.

To transfer files from linux server to my desktop i use a program called WinSCP.

Gagea Alexandru

I solved my backup issue. Yesterday, i created 2 tables in the database, directly from pgadmin. This was the issue because backup from UI is made based on some scripts...So.. advice, if you want to create new tables in the database, its best if you create them from Studio. Thank you for your time and answers.

inian
الكاتب

Hi Gagea, in my case file store is stored in ./local/share.. you say you have copied the files form var/lib..

Files are not created for me in that folder

how did you install odoo. I followed following link.

https://www.rosehosting.com/blog/install-odoo-11-on-ubuntu-16-04/

you also say we must create table from studio. Do you mean the UI?

Gagea Alexandru

Yes, the full path of my filestore is :

cd /var/lib/odoo/.local/share/Odoo/filestore , and you must be in root mode in able to see this location ( sudo -su root ).

I installed Odoo 11 from Odoo.com installation docs.

Gagea Alexandru

And when i say studio, yes, its from the UI, available on Odoo Enterprise.

الصورة الرمزية
Sunny Sheth
أفضل إجابة

hi,


first you go into your filestore directory, and existing directory copy and paste with new db name.

in your case,

  • now you first delete created automatically Filestore folder in directory.

    • cd  ./local/share/Odoo/filestore/

    • apply command ==>  sudo rm -R rck_test6

  • after  that copy existing filestore db and paste with new name.

    • sudo cp -R  rck_test5 rck_test6


    after restart your server and check, all icons and images are displayed same as old db.


I hope it will help you.


Thanks



0
الصورة الرمزية
إهمال
inian
الكاتب

Hi Sunny,

Thanks for your response, but I cannot copy or paste into ./local/share/Odoo/filestore/

Remove "rm" works but no other command works.

Sunny Sheth

can you tried with "sudo" command?

inian
الكاتب

Tried that too, I don't get any errors.nothing can be copied from there. Some how odoo can write or copy when we take backup/restore from UI.

Sunny Sheth

not sure, but it maybe comes from "web" module for backup via UI.

inian
الكاتب

My concern is it is ok to backup a small database using web UI. But can same be used for backing up a database that is large.

Hilar Andikkadavath

You can deal large database with this auto-backup module. https://apps.odoo.com/apps/modules/13.0/auto_backup_odoo/

But For filestore, we can do it by copying from the defined filestore location. This will be an extra feature and need to develop.

الصورة الرمزية
Odoo It now
أفضل إجابة

Hello,

Type following command in terminal:

$ sudo nautilus

The system will open a file directory with full access and then you can Backup/Restore a filestore.

Restart the server and you will get back all the files in the database.
 
I hope it will help you.

Thank you.

-1
الصورة الرمزية
إهمال
Ermin Trevisan

You may do that on your private notebook or desktop computer. You do not use any desktop gui programs in a professional environment, sorry.

هل أعجبك النقاش؟ لا تكن مستمعاً فقط. شاركنا!

أنشئ حساباً اليوم لتستمتع بالخصائص الحصرية، وتفاعل مع مجتمعنا الرائع!

تسجيل
المنشورات ذات الصلة الردود أدوات العرض النشاط
How to Recreate Odoo Filestore from a .dump File?
filestore restoredb psql Odoo18.0
الصورة الرمزية
الصورة الرمزية
1
مايو 25
3424
Odoo 10 : backup and restore تم الحل
filestore backup restore restoredb odoo10
الصورة الرمزية
الصورة الرمزية
الصورة الرمزية
5
مارس 24
32591
Restore database problem تم الحل
backup restoredb
الصورة الرمزية
الصورة الرمزية
الصورة الرمزية
2
أغسطس 24
11169
error
backup restoredb
الصورة الرمزية
الصورة الرمزية
1
نوفمبر 22
3555
Backup database not working
backup restoredb
الصورة الرمزية
الصورة الرمزية
الصورة الرمزية
الصورة الرمزية
3
مارس 21
10091
المجتمع
  • دروس
  • التوثيق
  • المنتدى
مصدر مفتوح
  • تحميل
  • جيت هاب "Github"
  • المشغل الآلي رنبوت
  • الترجمات
خدماتنا
  • استضافة أودو إس إتش
  • الدعم
  • الترقية
  • التطويرات المخصصة
  • التعليم
  • اعثر على محاسب
  • اعثر على شريك
  • كنْ شريكاً
معلومات عنا
  • شركتنا
  • أصول العلامة التجارية
  • اتصلْ بنا
  • الوظائف
  • فعاليات
  • بودكاست
  • مدونة
  • عملاء
  • قانوني • الخصوصية
  • الحماية
الْعَرَبيّة 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

أودو هو عبارة عن مجموعة من تطبيقات الأعمال مفتوحة المصدر التي تغطي جميع احتياجات شركتك، مثل: إدارة علاقات العملاء والتجارة الإلكترونية والمحاسبة والمخزون ونقاط البيع وإدارة المشاريع وما إلى ذلك.

ما يجعل من أودو مميزاً هو هدفه بأن يكون سهل الاستخدام للغاية ومتكاملاً تمامًا في الوقت ذاته.

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