Skip to content

Commit

Permalink
implement hourly backups (TA#3829) (#55)
Browse files Browse the repository at this point in the history
Also implement the daily backup in the data so we don't have to set them
up manually
  • Loading branch information
foutoucour authored and majouda committed Jul 29, 2024
1 parent 0a2ecd3 commit 1dfc4eb
Show file tree
Hide file tree
Showing 7 changed files with 48 additions and 11 deletions.
25 changes: 25 additions & 0 deletions numitech/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
NumiTech
========
Module that install technological modules that we want for quality.


Backups
-------
Several backups are setup for all our instances.

![App Switcher](static/description/backups.png?raw=true)

**Daily**
![App Switcher](static/description/backup_daily.png?raw=true)

**Hourly**
![App Switcher](static/description/backup_hourly.png?raw=true)


Contributors
------------
* Numigi (tm) and all its contributors (https://bit.ly/numigiens)

More information
----------------
* Meet us at https://bit.ly/numigi-com
11 changes: 0 additions & 11 deletions numitech/README.rst

This file was deleted.

3 changes: 3 additions & 0 deletions numitech/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,8 @@
'auto_backup',
'sentry',
],
'data': [
'data/db_backup.xml',
],
'installable': True,
}
20 changes: 20 additions & 0 deletions numitech/data/db_backup.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo noupdate="1">

<record id="daily_backup" model="db.backup">
<field name="name">/var/lib/odoo/backups/odoo</field>
<field name="folder">/var/lib/odoo/backups/odoo</field>
<field name="days_to_keep">7</field>
<field name="frequency">daily</field>
<field name="backup_format">zip</field>
</record>

<record id="hourly_backup" model="db.backup">
<field name="name">/var/lib/odoo/backups/hourly</field>
<field name="folder">/var/lib/odoo/backups/hourly</field>
<field name="days_to_keep">1</field>
<field name="frequency">hourly</field>
<field name="backup_format">dump</field>
</record>

</odoo>
Binary file added numitech/static/description/backup_daily.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added numitech/static/description/backup_hourly.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added numitech/static/description/backups.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 1dfc4eb

Please sign in to comment.