Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
2 Odpowiedzi
6273 Widoki

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

Awatar
Odrzuć

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

Autor

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

Autor

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

Autor

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

Najlepsza odpowiedź

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.

Awatar
Odrzuć
Najlepsza odpowiedź

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.

Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
2
gru 24
4428
1
mar 25
6459
1
lip 25
1665
0
cze 25
3084
9
lip 25
64683