Skip to content
Merged
Show file tree
Hide file tree
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 Mar 26, 2015
8c12823
Dutch translations
Yenthe666 Mar 26, 2015
e1eb1af
Chinese translations
Yenthe666 Mar 27, 2015
769c85c
Changes chinese translation
Yenthe666 Mar 27, 2015
656800f
Full German translations
Yenthe666 Apr 20, 2015
f65eb61
Typo fix
Yenthe666 May 7, 2015
e321180
Flemish translations
Yenthe666 May 11, 2015
658e680
Open FTP session on the last moment possible
archetipo May 11, 2015
2de9523
Porting module to OCA 8.0
archetipo Jul 14, 2015
2d04019
[FIX] module
archetipo Jul 14, 2015
da0352f
[FIX] bug logger --> _logger call
archetipo Jul 20, 2015
7814ebb
[FIX] Readme.rst
archetipo Jul 21, 2015
6174ea9
[FIX] defaults value
archetipo Jul 21, 2015
915b20d
[FIX] rebased commit
archetipo Jul 21, 2015
fcc185e
[RM] description index.html
archetipo Jul 21, 2015
56f970b
[RF] porting to new api
archetipo Jul 21, 2015
ad3cb50
[FIX] test
archetipo Jul 21, 2015
ef99dd5
[FIX] flake8
archetipo Jul 21, 2015
03af923
[IMP] deps in travis.yml
archetipo Jul 22, 2015
cf0cdf8
[FIX] flake8 and pylint
archetipo Jul 22, 2015
f8cd72e
[FIX] name of file
archetipo Jul 28, 2015
7d107c0
[FIX] autoremove method
archetipo Jul 28, 2015
c2a7abc
[FIX] mail.tempale seems not work in cron task, replaced with direct…
archetipo Jul 28, 2015
dd60360
[FIX] Readme
archetipo Jul 28, 2015
be7663b
[FIX] review remarks
archetipo Sep 2, 2015
67ed05f
[FIX] handled ssl hosts
archetipo Sep 2, 2015
28298ae
[FIX] handled ssl hosts
archetipo Sep 2, 2015
45c7e31
[FIX] fixed, last review remarks
archetipo Nov 2, 2015
b9f0af2
[FIX] travis lint check
archetipo Nov 2, 2015
30d09ff
[FIX] backup only local db , beacause xmlrpc call of dump cause memor…
archetipo Nov 25, 2015
63a38ce
[RM] useless field
archetipo Nov 25, 2015
c265d9b
[FIX] check_dd method
archetipo Nov 30, 2015
65ad1a0
[auto_backup] Refactor.
Mar 9, 2016
d6db873
Merge pull request #2 from grupoesoc/PR-203-autobackup
archetipo Mar 9, 2016
07d2ffd
Update english pot file
Yenthe666 Mar 26, 2015
4171740
Dutch translations
Yenthe666 Mar 26, 2015
c1a53bf
Chinese translations
Yenthe666 Mar 27, 2015
d70e682
Changes chinese translation
Yenthe666 Mar 27, 2015
1a88fd9
Full German translations
Yenthe666 Apr 20, 2015
2223b3b
Typo fix
Yenthe666 May 7, 2015
60d5817
Flemish translations
Yenthe666 May 11, 2015
d7684d8
Open FTP session on the last moment possible
archetipo May 11, 2015
9befe15
Porting module to OCA 8.0
archetipo Jul 14, 2015
a8ae00d
[FIX] module
archetipo Jul 14, 2015
e2fc177
[FIX] bug logger --> _logger call
archetipo Jul 20, 2015
e661c96
[FIX] Readme.rst
archetipo Jul 21, 2015
8b1ec78
[FIX] defaults value
archetipo Jul 21, 2015
e0445e1
[FIX] rebased commit
archetipo Jul 21, 2015
837c180
[RM] description index.html
archetipo Jul 21, 2015
9ab00e9
[RF] porting to new api
archetipo Jul 21, 2015
9fa0b44
[FIX] test
archetipo Jul 21, 2015
d579125
[FIX] flake8
archetipo Jul 21, 2015
3a80cfa
[IMP] deps in travis.yml
archetipo Jul 22, 2015
b9d6243
[FIX] flake8 and pylint
archetipo Jul 22, 2015
7c3bdeb
[FIX] name of file
archetipo Jul 28, 2015
a4f584e
[FIX] autoremove method
archetipo Jul 28, 2015
ea8f18c
[FIX] mail.tempale seems not work in cron task, replaced with direct…
archetipo Jul 28, 2015
6d0450e
[FIX] Readme
archetipo Jul 28, 2015
c8e0133
[FIX] review remarks
archetipo Sep 2, 2015
ba70602
[FIX] handled ssl hosts
archetipo Sep 2, 2015
58dd6f4
[FIX] handled ssl hosts
archetipo Sep 2, 2015
75b7d1b
[FIX] fixed, last review remarks
archetipo Nov 2, 2015
39da704
[FIX] travis lint check
archetipo Nov 2, 2015
ee1ee03
[FIX] backup only local db , beacause xmlrpc call of dump cause memor…
archetipo Nov 25, 2015
a38ab9c
[RM] useless field
archetipo Nov 25, 2015
c55ba6a
[FIX] check_dd method
archetipo Nov 30, 2015
8105ac2
[auto_backup] Refactor.
Mar 9, 2016
6540425
Merge branch 'porting_auto_backup_oca' of github.com:archetipo/server…
archetipo Mar 9, 2016
bc67b96
Fix travis.
Mar 9, 2016
b94bc8e
Reduce headers.
Mar 9, 2016
06aebec
Fix view format.
Mar 9, 2016
4da0b66
Add shortcut to execute backups from the "More" menu.
Mar 10, 2016
978ff47
Avoid duplicated backups.
Mar 10, 2016
edf5006
Make sure you don't backup inside the filestore folder.
Mar 10, 2016
eaba91b
[FIX] This was removing all databases.
Mar 10, 2016
4347758
Merge pull request #3 from grupoesoc/PR-203-autobackup
archetipo Mar 22, 2016
b35ff3a
FIX License type
archetipo Mar 22, 2016
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ env:
- TRANSIFEX="1"
- TESTS="1" ODOO_REPO="odoo/odoo"
- TESTS="1" ODOO_REPO="OCA/OCB"
- UNIT_TEST="1"
- UNIT_TEST="1"

virtualenv:
system_site_packages: true
Expand Down
106 changes: 106 additions & 0 deletions auto_backup/README.rst
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.
7 changes: 7 additions & 0 deletions auto_backup/__init__.py
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
31 changes: 31 additions & 0 deletions auto_backup/__openerp__.py
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",
Copy link
Member

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+

"website": "http://www.vanroey.be/applications/bedrijfsbeheer/odoo",
"category": "Tools",
"depends": ['email_template'],
"demo": [],
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please remove it

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove empty keys please. And add the external_dependencies key.

"data": [
"data/backup_data.yml",
"security/ir.model.access.csv",
"view/db_backup_view.xml",
],
"application": True,
"installable": True,
"external_dependencies": {
"python": ["pysftp"],
},
}
28 changes: 28 additions & 0 deletions auto_backup/data/backup_data.yml
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.
Loading