-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Porting auto backup oca server-tools #203
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
77 commits
Select commit
Hold shift + click to select a range
7160732
Update english pot file
Yenthe666 8c12823
Dutch translations
Yenthe666 e1eb1af
Chinese translations
Yenthe666 769c85c
Changes chinese translation
Yenthe666 656800f
Full German translations
Yenthe666 f65eb61
Typo fix
Yenthe666 e321180
Flemish translations
Yenthe666 658e680
Open FTP session on the last moment possible
archetipo 2de9523
Porting module to OCA 8.0
archetipo 2d04019
[FIX] module
archetipo da0352f
[FIX] bug logger --> _logger call
archetipo 7814ebb
[FIX] Readme.rst
archetipo 6174ea9
[FIX] defaults value
archetipo 915b20d
[FIX] rebased commit
archetipo fcc185e
[RM] description index.html
archetipo 56f970b
[RF] porting to new api
archetipo ad3cb50
[FIX] test
archetipo ef99dd5
[FIX] flake8
archetipo 03af923
[IMP] deps in travis.yml
archetipo cf0cdf8
[FIX] flake8 and pylint
archetipo f8cd72e
[FIX] name of file
archetipo 7d107c0
[FIX] autoremove method
archetipo c2a7abc
[FIX] mail.tempale seems not work in cron task, replaced with direct…
archetipo dd60360
[FIX] Readme
archetipo be7663b
[FIX] review remarks
archetipo 67ed05f
[FIX] handled ssl hosts
archetipo 28298ae
[FIX] handled ssl hosts
archetipo 45c7e31
[FIX] fixed, last review remarks
archetipo b9f0af2
[FIX] travis lint check
archetipo 30d09ff
[FIX] backup only local db , beacause xmlrpc call of dump cause memor…
archetipo 63a38ce
[RM] useless field
archetipo c265d9b
[FIX] check_dd method
archetipo 65ad1a0
[auto_backup] Refactor.
d6db873
Merge pull request #2 from grupoesoc/PR-203-autobackup
archetipo 07d2ffd
Update english pot file
Yenthe666 4171740
Dutch translations
Yenthe666 c1a53bf
Chinese translations
Yenthe666 d70e682
Changes chinese translation
Yenthe666 1a88fd9
Full German translations
Yenthe666 2223b3b
Typo fix
Yenthe666 60d5817
Flemish translations
Yenthe666 d7684d8
Open FTP session on the last moment possible
archetipo 9befe15
Porting module to OCA 8.0
archetipo a8ae00d
[FIX] module
archetipo e2fc177
[FIX] bug logger --> _logger call
archetipo e661c96
[FIX] Readme.rst
archetipo 8b1ec78
[FIX] defaults value
archetipo e0445e1
[FIX] rebased commit
archetipo 837c180
[RM] description index.html
archetipo 9ab00e9
[RF] porting to new api
archetipo 9fa0b44
[FIX] test
archetipo d579125
[FIX] flake8
archetipo 3a80cfa
[IMP] deps in travis.yml
archetipo b9d6243
[FIX] flake8 and pylint
archetipo 7c3bdeb
[FIX] name of file
archetipo a4f584e
[FIX] autoremove method
archetipo ea8f18c
[FIX] mail.tempale seems not work in cron task, replaced with direct…
archetipo 6d0450e
[FIX] Readme
archetipo c8e0133
[FIX] review remarks
archetipo ba70602
[FIX] handled ssl hosts
archetipo 58dd6f4
[FIX] handled ssl hosts
archetipo 75b7d1b
[FIX] fixed, last review remarks
archetipo 39da704
[FIX] travis lint check
archetipo ee1ee03
[FIX] backup only local db , beacause xmlrpc call of dump cause memor…
archetipo a38ab9c
[RM] useless field
archetipo c55ba6a
[FIX] check_dd method
archetipo 8105ac2
[auto_backup] Refactor.
6540425
Merge branch 'porting_auto_backup_oca' of github.com:archetipo/server…
archetipo bc67b96
Fix travis.
b94bc8e
Reduce headers.
06aebec
Fix view format.
4da0b66
Add shortcut to execute backups from the "More" menu.
978ff47
Avoid duplicated backups.
edf5006
Make sure you don't backup inside the filestore folder.
eaba91b
[FIX] This was removing all databases.
4347758
Merge pull request #3 from grupoesoc/PR-203-autobackup
archetipo b35ff3a
FIX License type
archetipo File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,106 @@ | ||
| .. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg | ||
| :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html | ||
| :alt: License: AGPL-3 | ||
|
|
||
| ==================== | ||
| Database Auto-Backup | ||
| ==================== | ||
|
|
||
| A tool for all your back-ups, internal and external! | ||
|
|
||
| Installation | ||
| ============ | ||
|
|
||
| Before installing this module, you need to execute:: | ||
|
|
||
| pip install pysftp | ||
|
|
||
| Configuration | ||
| ============= | ||
|
|
||
| Go to *Settings -> Configuration -> Configure Backup* to | ||
| create your configurations for each database that you needed | ||
| to backups. | ||
|
|
||
| Usage | ||
| ===== | ||
|
|
||
| Keep your Odoo data safe with this module. Take automated back-ups, | ||
| remove them automatically and even write them to an external server | ||
| through an encrypted tunnel. You can even specify how long local backups | ||
| and external backups should be kept, automatically! | ||
|
|
||
| Connect with an FTP Server | ||
| -------------------------- | ||
|
|
||
| Keep your data safe, through an SSH tunnel! | ||
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
|
|
||
| Want to go even further and write your backups to an external server? | ||
| You can with this module! Specify the credentials to the server, specify | ||
| a path and everything will be backed up automatically. This is done | ||
| through an SSH (encrypted) tunnel, thanks to pysftp, so your data is | ||
| safe! | ||
|
|
||
| Test connection | ||
| --------------- | ||
|
|
||
| Checks your credentials in one click | ||
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
|
|
||
| Want to make sure if the connection details are correct and if Odoo can | ||
| automatically write them to the remote server? Simply click on the ‘Test | ||
| SFTP Connection’ button and you will get message telling you if | ||
| everything is OK, or what is wrong! | ||
|
|
||
| E-mail on backup failure | ||
| ------------------------ | ||
|
|
||
| Stay informed of problems, automatically! | ||
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
|
|
||
| Do you want to know if the database backup succeeded or failed? Subscribe to | ||
| the corresponding backup setting notification type. | ||
|
|
||
| Run backups when you want | ||
| ------------------------- | ||
|
|
||
| From the backups configuration list, press *More > Execute backup(s)* to | ||
| manually execute the selected processes. | ||
|
|
||
| .. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas | ||
| :alt: Try me on Runbot | ||
| :target: https://runbot.odoo-community.org/runbot/149/8.0 | ||
|
|
||
| Bug Tracker | ||
| =========== | ||
|
|
||
| Bugs are tracked on `GitHub Issues <https://github.com/OCA/server-tools/issues>`_. | ||
| In case of trouble, please check there if your issue has already been reported. | ||
| If you spotted it first, help us smashing it by providing a detailed and welcomed feedback | ||
| `here <https://github.com/OCA/server-tools/issues/new?body=module:%20auto_backup%0Aversion:%208.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_. | ||
|
|
||
| Credits | ||
| ======= | ||
|
|
||
| Contributors | ||
| ------------ | ||
|
|
||
| * Yenthe Van Ginneken <yenthe.vanginneken@vanroey.be> | ||
| * Alessio Gerace <alessio.gerace@agilebg.com> | ||
| * Jairo Llopis <yajo.sk8@gmail.com> | ||
|
|
||
| Maintainer | ||
| ---------- | ||
|
|
||
| .. image:: https://odoo-community.org/logo.png | ||
| :alt: Odoo Community Association | ||
| :target: https://odoo-community.org | ||
|
|
||
| This module is maintained by the OCA. | ||
|
|
||
| OCA, or the Odoo Community Association, is a nonprofit organization whose | ||
| mission is to support the collaborative development of Odoo features and | ||
| promote its widespread use. | ||
|
|
||
| To contribute to this module, please visit https://odoo-community.org. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| # -*- coding: utf-8 -*- | ||
| # © 2004-2009 Tiny SPRL (<http://tiny.be>). | ||
| # © 2015 Agile Business Group <http://www.agilebg.com> | ||
| # © 2016 Grupo ESOC Ingeniería de Servicios, S.L.U. - Jairo Llopis | ||
| # License GPL-3.0 or later (http://www.gnu.org/licenses/gpl.html). | ||
|
|
||
| from . import models |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,31 @@ | ||
| # -*- coding: utf-8 -*- | ||
| # © 2004-2009 Tiny SPRL (<http://tiny.be>). | ||
| # © 2015 Agile Business Group <http://www.agilebg.com> | ||
| # © 2016 Grupo ESOC Ingeniería de Servicios, S.L.U. - Jairo Llopis | ||
| # License GPL-3.0 or later (http://www.gnu.org/licenses/gpl.html). | ||
|
|
||
| { | ||
| "name": "Database Auto-Backup", | ||
| "summary": "Backups database", | ||
| "version": "8.0.1.0.0", | ||
| "author": ( | ||
| "VanRoey.be - Yenthe Van Ginneken, Agile Business Group," | ||
| " Grupo ESOC Ingeniería de Servicios," | ||
| " Odoo Community Association (OCA)" | ||
| ), | ||
| 'license': "AGPL-3", | ||
| "website": "http://www.vanroey.be/applications/bedrijfsbeheer/odoo", | ||
| "category": "Tools", | ||
| "depends": ['email_template'], | ||
| "demo": [], | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Please remove it
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Remove empty keys please. And add the |
||
| "data": [ | ||
| "data/backup_data.yml", | ||
| "security/ir.model.access.csv", | ||
| "view/db_backup_view.xml", | ||
| ], | ||
| "application": True, | ||
| "installable": True, | ||
| "external_dependencies": { | ||
| "python": ["pysftp"], | ||
| }, | ||
| } | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,28 @@ | ||
| # -*- coding: utf-8 -*- | ||
| # © 2016 Grupo ESOC Ingeniería de Servicios, S.L.U. - Jairo Llopis | ||
| # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). | ||
|
|
||
| # Cron job | ||
| - !record {model: ir.cron, id: ir_cron_backupscheduler0}: | ||
| name: Backup scheduler | ||
| user_id: base.user_root | ||
| interval_number: 1 | ||
| interval_type: days | ||
| numbercall: -1 | ||
| nextcall: !eval | ||
| (datetime.now() + timedelta(days=1)).strftime("%Y-%m-%d 02:00:00") | ||
| model: db.backup | ||
| function: action_backup_all | ||
|
|
||
| # New message subtypes | ||
| - !record {model: mail.message.subtype, id: success}: | ||
| name: Backup successful | ||
| res_model: db.backup | ||
| default: False | ||
| description: Database backup succeeded. | ||
|
|
||
| - !record {model: mail.message.subtype, id: failure}: | ||
| name: Backup failed | ||
| res_model: db.backup | ||
| default: True | ||
| description: Database backup failed. |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The headers in source files are GPL-3+