Backup ODOO [Local, Remote, Drive, Dropbox, Amazon S3]
by Hilar AK https://automaticbackup.odoo.com/$ 31.51
Availability |
Odoo Online
Odoo.sh
On Premise
|
Odoo Apps Dependencies |
Discuss (mail)
|
Lines of code | 1929 |
Technical Name |
auto_backup_odoo |
License | OPL-1 |
Website | https://www.linkedin.com/in/hilar-ak/ |
Versions | 8.0 9.0 10.0 11.0 12.0 13.0 14.0 15.0 16.0 17.0 18.0 |
BACKUP
ODOO DATABASES & FILESTORE
Available Odoo Backup DB/Filestore
Modes:
- Local
- Remote Server
- Google Drive
- Dropbox
- Amazon S3
Module For backup ODOO databases and
automating the backup process of ODOO.
- Multiple Backup Modes
- Filestore Backup
- Backup ODOO Databases in specified path
- Detailed Message Log
- Backup Status Information and History
- User can select the format to dump, either custom archive, plain text SQL or tar archive
- Archive Backup Process
- Repeat Missed Backup Process
- Backup to Amazon S3
Features
- Dump ODOO Database in specified format
- Zip filestore in a specified location
- Output a custom archive suitable for input into pg_restore. This is the most flexible format in that it allows the reordering of loading data as well as to object definitions. This format is also compressed by default. Here we user gzip ie, test.gz, We also recommend you to select Custom, because Using the custom format you can restore single objects from a backup.
- Output a plain-text SQL script file (the default). The plain text format is useful for very small databases with a minimal number of objects but other than that, it should be avoided.
- Output a tar archive suitable for input into pg_restore. Using this archive format allows reordering and/or exclusion of database objects at the time the database is restored. It is also possible to limit which data is reloaded at restore time. we use tar with gzip
- Backup Filestore
- Multiple backup modes at sametime
- ODOO Backup to Amazon S3
- ODOO Backup to Google Drive
- ODOO Backup tp Dropbox
- ODOO Backup to remote server
Tech
Odoo Auto Backup Module uses
- PYTHON - Models
- XML - Views
- HTML - UI
- Twitter Bootstrap - UI
- backbone.js - Views
- jQuery
- PSQL - DB
External
Dependencies
- PYSFTP
pip install pysftp
- Dropbox
pip install dropbox
- Progress Meter
pip install tqdm
- Boto3
pip install boto3
- Botocore
pip install botocore
Installation
Install the odoo13 and Auto Backup
module.
After installation you can configure backup under general settings. If you are using the google
drive mode,
then msust enable the google integration under general settings and update the google drive
refresh
token.
CHANGELOGS
Date: 07/12/2020
- Performance Improvement
- Session Upload Trace For Dropbox Files > 150 mb
- Full Metadata Track In Message Logs
- Fix Dropbox Tar files upload
- Progress Meter In Logs
Date: 22/11/2020
- Amazon S3 Database Backup
- Amazon S3 Filestore Backup
Todos
- Backup Dashboard
Author
Hilar AK
Git
Repository
Hilar AK
Configurations
Cron Job To Enable Automatic Backup
New Record
Records
Backup Modes
Local
Remote
Google Drive
Dropbox
Amazon S3
Installation Guide: Python Packages with pip and Virtual Environments
Installing Python Packages with pip
Python packages can be easily installed using pip, the package installer for Python. Follow the steps below to install packages using pip:
- Open your command-line interface (e.g., Terminal, Command Prompt).
- Check if pip is installed by running the following command: bash
#!/bin/bash $ pip --version
If pip is not installed, you can install it by following the official documentation athttps://pip.pypa.io/en/stable/installing/.
To install a package, use the following command:
$ pip install package\_name
Replace package_name with the name of the package you want to install.
Example: To install the pysftp, dropbox, tqdm, simplejson package, run:
$ pip install pysftp dropbox tqdm simplejson
You can install multiple packages by listing them with spaces:
$ pip install package1 package2 package3
To install a specific version of a package, use the following command:
$ pip install package\_name==version\_number
Replace version_number with the desired version of the package.
Example: To install version 2.2.0 of the numpy package, run:
$ pip install numpy==2.2.0
- If you don’t specify a version, pip will install the latest version available.
Installing Packages within a Virtual Environment
Using a virtual environment is a recommended practice to manage Python packages for specific projects. Follow the steps below to install packages within a virtual environment:
- Create a new virtual environment by running the following command:
$ python -m venv env\_name
Replace env_name with the desired name for your virtual environment.
Activate the virtual environment:
- On Windows:
$ .\env\_name\Scripts\activate
On macOS and Linux:
$ source env_name/bin/activate
Once the virtual environment is activated, use pip to install packages as described in the previous section. The packages will be installed within the virtual environment and won't interfere with other Python installations.
To deactivate the virtual environment, simply run the following command:
$ deactivate
- This will return you to your regular command-line environment.
Using virtual environments helps maintain clean and isolated environments for different projects, ensuring package dependencies are managed effectively.
Odoo Proprietary License v1.0 This software and associated files (the "Software") may only be used (executed, modified, executed after modifications) if you have purchased a valid license from the authors, typically via Odoo Apps, or if you have received a written agreement from the authors of the Software (see the COPYRIGHT file). You may develop Odoo modules that use the Software as a library (typically by depending on it, importing it and using its resources), but without copying any source code or material from the Software. You may distribute those modules under the license of your choice, provided that this license is compatible with the terms of the Odoo Proprietary License (For example: LGPL, MIT, or proprietary licenses similar to this one). It is forbidden to publish, distribute, sublicense, or sell copies of the Software or modified copies of the Software. The above copyright notice and this permission notice must be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Please log in to comment on this module
Report comment
Any abuse of this reporting system will be penalizedExcelente modulo.
Backup remote DB nit working
############### Backup ODOO DB Logs #################: Reading Database.......................[]
When I run it, it says database_list is empty. I want to check where the problem is, what should I do?
Re: Backup remote DB nit working
Your Odoo configuration file is not done properly. Please add db_user and db_password.
Thanks for the support
Excellent module and excellent support very professional patched 100%
Re: Thanks for the support
Warmly
Hi
Hilar help me to install dependencies and it really work.
@Aymen: you can go to add on folder, and type the command: pip install -r requirement.txt; and then upgrade/install the app.
This one require to go into the server; not only by web interface.
Thanks a lot again Hilar
Regards,
Re: Warmly
I appreciate your support. You are always welcome
bad after-sale service
i bought module, and install all dependencies, and still got error, they didn't help me to fix the error.
not recommend it
Re: bad after-sale service
There is no error coming from the module and the customer doesn't know to set up dependencies that are server-side.
large databases
Greetings, is this module compatible with databases larger than 5 GB, and multiple instances?
S3 compatible storage?
I see support for Amazon S3 but what about S3 compatible storages like Wasabi, Digital Ocean Spaces, Minio, etc...?
Not everybody use Amazon. Can you improve the S3 part so it's not locked to Amazon only?
All of the other vendors mentioned above are 1:1 compatible 100% with the Amazon S3 API.
You only need to give fields or odoo.conf params to entering a different S3 URL and region
Re: S3 compatible storage?
Sure, we will consider it as enhancements and will update in the next version
Hi Hilar AK,
We bought this module for odoo v15, and now we get error 401 when we try to backup on Google Drive. Could you check it and update new version for us ?
Another question is how to configure ############### Backup ODOO DB Logs #################: Reading Database.......................[]
Thank you so much
Re:
For databases reading make sure db_user and db_password parameters are set properly in odoo conf.
for google drive backup please enable drive configurations in odoo settings and try.
For more help please ping me hilarak@gmail.com
Hi
We bought this module for odoo v15
firstly on local serveur the backup run successfuly but it separate dump and file store. can we have option to have only one zip with all as odoo backup manager ?
Secondely it does'nt work on google drive any idea ?
Re:
For google drive, make sure the drive folder path and the keys are properly configure.
You have zip and filestore separately. This is how my module works and this is specified in the documentation. This is how we handle large database in gbs
Support multipart upload for S3
Does this module support multipart upload to Amazon S3 in cases where Zip file is larger than 5GB (DBs and Filestore). Amazon does not accept files larger than 5gb.
Re: Support multipart upload for S3
yes. For S3 we can only do multipart uploads in case if the file size exceeds the certain limits as per the S3 Documentation.
I bought it ,but not working need support
I am using S3 filestore as a backup locaion
- DB not backup not woking ( even folder not created )
- I am using S3 as the filestorte but your app is prefixed the filestore localion . need document how to backup extenal filestore backup
thanks in advance
Re:
It depends on the Odoo Configuration. Please make sure the db_user nad db_password are set correctly.
Odoo.sh
Does this module works with Odoo.sh?
Re: Odoo.sh
Odoo sh no need backup solution where it has backup management which daily backup in two different continents
Odoo SH
Hi, can we use this app with Odoo SH?
Thanks!
Re: Odoo SH
Unfortunately odoo sh is not supported. In odoo sh we can’t get db user access.
Does not work properly!!
Bought this over 30 days ago and it only downloads the file store.
The Dump.sql and manifest.json is missing .
Reached out to Hilar and they sent an updated version which still has the same problem.
It would be great if this app did with it suppose to do.
Re: Does not work properly!!
I did support to install and all. If filestore is backup, then you have issues in Odoo deployment. That means in your odoo conf file, db_user and db_password must be defined. I gave a lot of sessions as a support for this 27$ module and I can give more sessions if it's a bug or issue with my module. Please make sure you have done odoo deployment correctly. Thanks for your comments.