Ir al contenido
Menú
Se marcó esta pregunta
2 Respuestas
6073 Vistas

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
Descartar

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?

Mejor respuesta

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
Descartar
Mejor respuesta

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
Descartar
Publicaciones relacionadas Respuestas Vistas Actividad
2
dic 24
4207
1
mar 25
6358
1
jul 25
1505
0
jun 25
2946
9
jul 25
64378