Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
2 Trả lời
6267 Lượt xem

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

Ảnh đại diện
Huỷ bỏ

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

Tác giả

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

Tác giả

@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.

Tác giả

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

Câu trả lời hay nhất

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.

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

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.

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
2
thg 12 24
4423
1
thg 3 25
6458
1
thg 7 25
1664
0
thg 6 25
3080
9
thg 7 25
64680