Skip ke Konten
Menu
Pertanyaan ini telah diberikan tanda
2 Replies
6285 Tampilan

I'm looking for  a bash script or module to take database backup automatically to a ftp location from odoo.sh V 16.

I Tried yenthe backup module but its not working in odoo.sh v 16

Avatar
Buang

Can you describe what exactly is not working ? Installation... Backups...
Error messages are always helpful to sort out things...

Cheers
Nils

Hi

In odoo sh , automatic database backups are availablerefer the following link

https://www.cybrosys.com/odoo/odoo-books/odoo-16-development/odoo-sh/backups-instances/

Hope it helps

Penulis

@Cybrosys Techno Solutions Pvt.Ltd, not about odoo's automated backup, need to automate database backup to a ftp location or drive.

Penulis

@Nils Coenen
ftp is connected successfully , but backup is not creating

│2023-06-26 13:00:36,395 4 INFO ? paramiko.transport: Connected (version 2.0, client OpenSSH_8.2p1) │
│2023-06-26 13:00:36,736 4 INFO ? paramiko.transport: Authentication (password) successful! │
│2023-06-26 13:00:37,591 4 INFO paramiko.transport.sftp: [chan 0] Opened sftp connection (server version 3) │
│2023-06-26 13:00:37,591 4 INFO paramiko.transport.sftp: [chan 0] sftp session closed. │
│2023-06-26 13:00:37,593 4 WARNING odoo.http: Connection Test Succeeded! │
│Everything seems properly set up for FTP back-ups!

And dump is creating in sh, but can see anything in the FTP and no error also in the log.

I would try to connect to the sftp location with a client (Filezilla or similar) and check out if i can transfers files without any problem. Maybe this will give some more infos..

Check section 4.5 of the readme in yenthe´s auto_backup module.
Not compatible with SH.

Penulis

Nils Coenen is there any other open to automate DB backup to ftp in sh?

Jawaban Terbai

Hey muhammed,

i havent tried it so far but it should be possible to access the backups via SSH.

You can access the odoo backup in the "backup.daily" direction through the shell. Combined with SSH it should be possible to automate the backup via ssh connection using a script. In order to do that, it should be necessary to connect your github account via ssh with public key. So if you dont have ssh key already, you need to generate it and import it to your github account.

As mentioned. I havent tried it up to now. But i think this should work.

Avatar
Buang
Jawaban Terbai

I have tried solutions with Selenium, puppeter and then with a bash script, but the latter stopped working, it no longer lets me connect to ssh.

Avatar
Buang
Post Terkait Replies Tampilan Aktivitas
2
Des 24
4446
1
Mar 25
6462
1
Jul 25
1671
0
Jun 25
3092
9
Jul 25
64690