Skip to Content
Menu
This question has been flagged
2 Replies
4788 Views

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
Discard

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

Author

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

Author

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

Author

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

Best Answer

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
Discard
Best Answer

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
Discard
Related Posts Replies Views Activity
2
Dec 24
2850
1
Mar 25
5548
9
Apr 25
62284
4
Apr 25
10424
1
Mar 25
1994