Skip ke Konten
Odoo Menu
  • Login
  • Uji coba gratis
  • Aplikasi
    Keuangan
    • Akuntansi
    • Faktur
    • Pengeluaran
    • Spreadsheet (BI)
    • Dokumen
    • Tanda Tangan
    Sales
    • CRM
    • Sales
    • POS Toko
    • POS Restoran
    • Langganan
    • Rental
    Website
    • Website Builder
    • eCommerce
    • Blog
    • Forum
    • Live Chat
    • eLearning
    Rantai Pasokan
    • Inventaris
    • Manufaktur
    • PLM
    • Purchase
    • Maintenance
    • Kualitas
    Sumber Daya Manusia
    • Karyawan
    • Rekrutmen
    • Cuti
    • Appraisal
    • Referensi
    • Armada
    Marketing
    • Social Marketing
    • Email Marketing
    • SMS Marketing
    • Acara
    • Otomatisasi Marketing
    • Survei
    Layanan
    • Project
    • Timesheet
    • Layanan Lapangan
    • Meja Bantuan
    • Planning
    • Appointment
    Produktivitas
    • Discuss
    • Approval
    • IoT
    • VoIP
    • Pengetahuan
    • WhatsApp
    Aplikasi pihak ketiga Odoo Studio Platform Odoo Cloud
  • Industri-Industri
    Retail
    • Toko Buku
    • Toko Baju
    • Toko Furnitur
    • Toko Kelontong
    • Toko Hardware
    • Toko Mainan
    Makanan & Hospitality
    • Bar dan Pub
    • Restoran
    • Fast Food
    • Rumah Tamu
    • Distributor Minuman
    • Hotel
    Real Estate
    • Agensi Real Estate
    • Firma Arsitektur
    • Konstruksi
    • Estate Management
    • Perkebunan
    • Asosiasi Pemilik Properti
    Konsultansi
    • Firma Akuntansi
    • Mitra Odoo
    • Agensi Marketing
    • Firma huku
    • Talent Acquisition
    • Audit & Sertifikasi
    Manufaktur
    • Tekstil
    • Logam
    • Perabotan
    • Makanan
    • Brewery
    • Corporate Gift
    Kesehatan & Fitness
    • Sports Club
    • Toko Kacamata
    • Fitness Center
    • Wellness Practitioners
    • Farmasi
    • Salon Rambut
    Perdagangan
    • Handyman
    • IT Hardware & Support
    • Sistem-Sistem Energi Surya
    • Pembuat Sepatu
    • Cleaning Service
    • Layanan HVAC
    Lainnya
    • Organisasi Nirlaba
    • Agen Lingkungan
    • Rental Billboard
    • Fotografi
    • Penyewaan Sepeda
    • Reseller Software
    Browse semua Industri
  • Komunitas
    Belajar
    • Tutorial-tutorial
    • Dokumentasi
    • Sertifikasi
    • Pelatihan
    • Blog
    • Podcast
    Empower Education
    • Program Edukasi
    • Game Bisnis 'Scale Up!'
    • Kunjungi Odoo
    Dapatkan Softwarenya
    • Download
    • Bandingkan Edisi
    • Daftar Rilis
    Kolaborasi
    • Github
    • Forum
    • Acara
    • Terjemahan
    • Menjadi Partner
    • Layanan untuk Partner
    • Daftarkan perusahaan Akuntansi Anda.
    Dapatkan Layanan
    • Temukan Mitra
    • Temukan Akuntan
    • Temui penasihat
    • Layanan Implementasi
    • Referensi Pelanggan
    • Bantuan
    • Upgrades
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Dapatkan demo
  • Harga
  • Bantuan

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

  • CRM
  • e-Commerce
  • Akuntansi
  • Inventaris
  • PoS
  • Project
  • MRP
All apps
Anda harus terdaftar untuk dapat berinteraksi di komunitas.
Semua Post Orang Lencana-Lencana
Label (Lihat semua)
odoo accounting v14 pos v15
Mengenai forum ini
Anda harus terdaftar untuk dapat berinteraksi di komunitas.
Semua Post Orang Lencana-Lencana
Label (Lihat semua)
odoo accounting v14 pos v15
Mengenai forum ini
Help

How to restore a dump.sql file to new postgresql database ?

Langganan

Dapatkan notifikasi saat terdapat aktivitas pada post ini

Pertanyaan ini telah diberikan tanda
restoredatabasebackupPostgresql9.4
10 Replies
80829 Tampilan
Avatar
Sathwik

Hi I am having a backup of database of odoo as dump.sql.

When I am trying to restore it back to a  new database in postgresql, I am unable to restore it shows "psql:D:/dump/dump.sql:117019: ERROR: invalid input syntax for integer: " /. "CONTEXT: COPY account_account, line 79, column id: " /. "

I am using command as \i file_path/dump.sql

 when I am trying to execute a

Copy tale_name (fields....) from stdin;

1 . . . .data

it shows error 

How can I execute this and how can I restore dump.sql without error ?



0
Avatar
Buang
Mahmou Sekawe

what is the OS you'r using and the OS the database was backup from?

Sathwik
Penulis

I am using Windows OS, and the OS database was backup from was ubuntu

Is there any security issues with difference in OS @Mahmou Sekawe

Avatar
imed
Jawaban Terbai

you can try this process:

First copy your dump.sql into desired server or desktop if you re in localhost

Next create manually a database with createdb dbname;

And after that import your dump.sql definition in your database created via psql dbname <  yourpath/dump.sql

next affect your database to owner odoo

ALTERDATABASE OdooDb OWNER TO odoo

Afterwards give the role odoo in database the SUPER USER rights with

 ALTER USER user_name with SUPER USER;

Finally 

copy the files under filestore generated with database in your filestore database for example under Centos 7 you 'll find it in /var/lib/fielstore/dbname

And after that you can open your db on odoo

Note your addons modules must be synchronized with your actual database 

  



2
Avatar
Buang
Saloua.sahnoune

Thanks a lot man :D

Momanyi Abraham

Dope

Avatar
Malik Sikandar Hayat
Jawaban Terbai

Hi,

In odoo 10 while clicking on Backup and then entering master password getting following error,


Database backup error: Postgres subprocess ('/usr/bin/pg_dump', '--no-owner', '--file=/tmp/tmpxi53It/dump.sql', u'database_db01') error 1

what could be the reason as my hosting is on AWS. thanks

2
Avatar
Buang
Avatar
Nikhil Krishnan
Jawaban Terbai

Hi Sathwik,

look this:

 https://medium.com/@nikhilkrishnan/how-to-restore-your-psql-database-for-odoo-fc7b0bdcfe28

Thanks

2
Avatar
Buang
Avatar
Didier Hernandez M
Jawaban Terbai

​If your had dowloaded the database from Odoo online can execute this command from the terminal line, just change the bold parameters with your owns:

curl -F 'master_pwd=your_db_pwd' -F backup_file=@/path_to_the_directory/file_to_import.zip -F 'copy=true' -F 'name=db_name' http://your_IP_Address:8069/web/database/restore

0
Avatar
Buang
Avatar
Hetashree Chauhan (hch)
Jawaban Terbai

You can restore the database using terminal by following below listed commands.

createdb dbname

go to source file where you locate dump file

pg_restore -c -d db_name filename.dump(for dump file)

0
Avatar
Buang
Avatar
NareshKumar.P
Jawaban Terbai

you can try through front end 

http://localhost/web/database/manager#action=database_manager or Manage database option and select restore then give master pwd and database name and user name and pwd. The database will restore

0
Avatar
Buang
Avatar
Sathwik
Penulis Jawaban Terbai

It is not allowing to restore from the front end. I tried it but it didn't worked.

so trying it from postgresql DB level, when I am trying to execute the dump file query it is showing errors as mentioned above.

I am trying it from psql console using command \i file_name.sql.  It gives syntax error as 

"psql:C:/Users/sevate/Desktop/trainingdb_2017-01-07_09-39-27/dump2.sql:117019: ERROR: invalid input syntax for integer: "/. " CONTEXT: COPY account_account, line 79, column id: " /. "

0
Avatar
Buang
Menikmati diskusi? Jangan hanya membaca, ikuti!

Buat akun sekarang untuk menikmati fitur eksklufi dan agar terlibat dengan komunitas kami!

Daftar
Post Terkait Replies Tampilan Aktivitas
Problem- Restore Database on Odoo 8
restore restoredb databasebackup
Avatar
Avatar
Avatar
3
Jun 16
8339
restore database from terminal
database restore restoredb databasebackup
Avatar
1
Mei 16
9315
Issue Restoring a Database in Odoo 17 CE : Database already exists
community restore databasebackup zipfile OdooV17
Avatar
Avatar
Avatar
2
Apr 25
2229
The following modules are needed by other modules but have not been defined,
restore
Avatar
1
Feb 25
88
Accident how to restore remove from view
restore
Avatar
Avatar
1
Nov 24
2372
Komunitas
  • Tutorial-tutorial
  • Dokumentasi
  • Forum
Open Source
  • Download
  • Github
  • Runbot
  • Terjemahan
Layanan
  • Odoo.sh Hosting
  • Bantuan
  • Peningkatan
  • Custom Development
  • Pendidikan
  • Temukan Akuntan
  • Temukan Mitra
  • Menjadi Partner
Tentang Kami
  • Perusahaan kami
  • Aset Merek
  • Hubungi kami
  • Tugas
  • Acara
  • Podcast
  • Blog
  • Pelanggan
  • Hukum • Privasi
  • Keamanan
الْعَرَبيّة 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 adalah rangkaian aplikasi bisnis open source yang mencakup semua kebutuhan perusahaan Anda: CRM, eCommerce, akuntansi, inventaris, point of sale, manajemen project, dan seterusnya.

Mudah digunakan dan terintegrasi penuh pada saat yang sama adalah value proposition unik Odoo.

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