Cloud Backup to S3, Nextcloud and WebDAV: send Odoo database backups to cloud storage
by Aerya IT Solutions https://aerya.net$ 168.74
Odoo 17, 18, 19 and 20, Community and Enterprise · Developed in the European Union by Aerya IT Solutions
Cloud Backup to S3, Nextcloud and WebDAV: send Odoo database backups to cloud storage
Adds the target Cloud storage account to the automatic backup plans: database and filestore backups are uploaded to an account of the Aerya cloud storage connectors, in chunks when they are big, and removed by the retention rule.
Chunked upload for big backups, size checked after the copy
Retention deletes the old files on the account
Runs on Odoo.sh and on-premise, not on Odoo Online (SaaS), where Odoo does not allow modules with Python code. Please buy the version that matches your database.
Screenshots of Odoo 17 Enterprise with the data of a fictitious company; on Odoo 18 to 20 the same screens follow the look of that version. The module works on Community and Enterprise.
on Odoo 19
no warnings
The problem
A backup that sits on the server it protects is not a backup. When the disk fails, the server is lost or a person deletes the wrong folder, the copy goes with it. The safe place is somewhere else: a Nextcloud or ownCloud you run, a WebDAV share on a NAS, an S3 bucket.
A backup is also big. A database plus a filestore easily weighs several gigabytes, and a single upload of that size fails on a slow line. And an upload that ends without error is not proof that the file arrived complete.
What the module does
It adds the target type Cloud storage account to the plans of the Automatic Database and Filestore Backup module. The backup files are uploaded to an account you already set up in the Aerya cloud storage connectors (WebDAV, Nextcloud, ownCloud, S3 and compatible services), into a folder below the account's root folder. Big files go up in chunks, the size on the account is compared with the size of the file, and the plan's retention rule deletes old files from the account like on any other target.
How it works, step by step
- Install. The module needs the backup module and the Cloud Storage Sync Base, with one connector set up (or the base's Server folder provider).
- Prepare the account. In Cloud Storage > Accounts, create the account and test it. A target can only use an account that exists and works.
- Create the target. Backups > Targets > New. Choose the type "Cloud storage account", pick the account and the "Folder in the account" (Backups is the default).
- Test it. "Test the connection" writes a small file, reads it back and deletes it.
- Add it to a plan. In Backups > Plans, add the target to the plan, next to the others.
- Check the runs. After a run, Backups > Runs shows the copy sent to the account, and Stored files lists what the account holds.
A target next to the folder and the SFTP server
Pick the account and the folder
Files land in the folder you chose, below the account's root folder. The folder is created when it is missing.
The cloud account is one you already manage in Cloud Storage. Only the Backup manager group sees the backup targets.

Big files in chunks
A backup of several gigabytes
Files larger than the chunk size of the account are uploaded in chunks through the connector; smaller files go in one request.
After the upload, the size on the account is compared with the size of the file. A different size fails the copy, the half upload is aborted, and the other targets of the plan still get their copy.

Retention and history
Old backups are removed from the account by the retention rule of the plan, the same one that cleans the other targets. A file that is already gone is not an error. The errors of the connector (login, quota, network) are shown on the copy of the run and in the failure e-mail of the backup module.
What it does not do
- It does not make the backups itself: the schedule, the retention and the failure e-mail belong to the backup module.
- It does not add the backup files to the sync queue of the cloud storage base: they are not attachments.
- It does not encrypt the files. A backup holds the whole database: use an account that only your backup system and administrators can read.
- It does not restore a database from the cloud account.
Requirements
| Odoo versions | 17, 18, 19 and 20 |
| Editions | Community and Enterprise |
| Modules of ours | Automatic Database and Filestore Backup; Cloud Storage Sync Base with one connector |
| Where it runs | Servers you run yourself, like the backup module |
| Languages | English, Spanish and Romanian |
Questions
Which cloud services work?
Any account of the Aerya cloud storage connectors: WebDAV, Nextcloud, ownCloud, S3 and compatible services, and the Server folder provider of the base.
What if the upload fails halfway?
The half upload is aborted, the copy is marked failed, and the other targets of the plan still get theirs.
Who can see the backups?
Only the Backup manager group sees the targets. Choose a cloud account that only your backup system and administrators can read.
Does the retention rule delete files in the cloud?
Yes, old copies are removed from the account like on every other target.
Can one plan send to several places?
Yes. Add a cloud target next to a folder or SFTP target.
Explore our other apps
More modules by Aerya IT Solutions for Odoo 19, built to work together.
Questions or a custom quote?
Write to info@aerya.ro for questions about the module, its installation or custom development.
Aerya IT Solutions · Developed in the European Union · aerya.net
| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Odoo Apps Dependencies |
Discuss (mail)
|
| Community Apps Dependencies | Show |
| Lines of code | 4543 |
| Technical Name |
aerya_backup_cloud |
| License | OPL-1 |
| Website | https://aerya.net |
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