Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
88 commits
Select commit Hold shift + click to select a range
4e31d62
Update english pot file
Yenthe666 Mar 26, 2015
5ecc9d4
Dutch translations
Yenthe666 Mar 26, 2015
8317cb0
Chinese translations
Yenthe666 Mar 27, 2015
4dc62da
Changes chinese translation
Yenthe666 Mar 27, 2015
1e44fb4
Full German translations
Yenthe666 Apr 20, 2015
3577bdc
Typo fix
Yenthe666 May 7, 2015
6d4b34e
Flemish translations
Yenthe666 May 11, 2015
9255774
Open FTP session on the last moment possible
archetipo May 11, 2015
5dfc524
Porting module to OCA 8.0
archetipo Jul 14, 2015
da98bcb
[FIX] module
archetipo Jul 14, 2015
d345a71
[FIX] bug logger --> _logger call
archetipo Jul 20, 2015
680ca85
[FIX] Readme.rst
archetipo Jul 21, 2015
c6ac088
[FIX] defaults value
archetipo Jul 21, 2015
93804fa
[FIX] rebased commit
archetipo Jul 21, 2015
2ac9136
[RM] description index.html
archetipo Jul 21, 2015
1f76872
[RF] porting to new api
archetipo Jul 21, 2015
0d9dd41
[FIX] test
archetipo Jul 21, 2015
9839fb6
[FIX] flake8
archetipo Jul 21, 2015
94df002
[IMP] deps in travis.yml
archetipo Jul 22, 2015
b9e9fec
[FIX] flake8 and pylint
archetipo Jul 22, 2015
d70ee0a
[FIX] name of file
archetipo Jul 28, 2015
788439d
[FIX] autoremove method
archetipo Jul 28, 2015
749e236
[FIX] mail.tempale seems not work in cron task, replaced with direct…
archetipo Jul 28, 2015
09c2c77
[FIX] Readme
archetipo Jul 28, 2015
bfa2b96
[FIX] review remarks
archetipo Sep 2, 2015
fd65859
[FIX] handled ssl hosts
archetipo Sep 2, 2015
0e27870
[FIX] handled ssl hosts
archetipo Sep 2, 2015
8da47b1
[FIX] fixed, last review remarks
archetipo Nov 2, 2015
e67a490
[FIX] travis lint check
archetipo Nov 2, 2015
ef75129
[FIX] backup only local db , beacause xmlrpc call of dump cause memor…
archetipo Nov 25, 2015
98c9662
[RM] useless field
archetipo Nov 25, 2015
75a6937
[FIX] check_dd method
archetipo Nov 30, 2015
7a0aa8e
[auto_backup] Refactor.
Mar 9, 2016
f7efa3c
Update english pot file
Yenthe666 Mar 26, 2015
d5c3b44
Dutch translations
Yenthe666 Mar 26, 2015
4a5ce89
Chinese translations
Yenthe666 Mar 27, 2015
18d6154
Changes chinese translation
Yenthe666 Mar 27, 2015
c068871
Full German translations
Yenthe666 Apr 20, 2015
a22429d
Typo fix
Yenthe666 May 7, 2015
b676a2d
Flemish translations
Yenthe666 May 11, 2015
60f9ebc
Open FTP session on the last moment possible
archetipo May 11, 2015
96c3fea
Porting module to OCA 8.0
archetipo Jul 14, 2015
b08cc78
[FIX] module
archetipo Jul 14, 2015
44ee1be
[FIX] bug logger --> _logger call
archetipo Jul 20, 2015
7d87f27
[FIX] Readme.rst
archetipo Jul 21, 2015
f7a1b95
[FIX] defaults value
archetipo Jul 21, 2015
58fcdf1
[FIX] rebased commit
archetipo Jul 21, 2015
9008dd2
[RM] description index.html
archetipo Jul 21, 2015
8c92cc8
[RF] porting to new api
archetipo Jul 21, 2015
a90e2a1
[FIX] test
archetipo Jul 21, 2015
6e5b4b1
[FIX] flake8
archetipo Jul 21, 2015
62cde21
[IMP] deps in travis.yml
archetipo Jul 22, 2015
d635cc3
[FIX] flake8 and pylint
archetipo Jul 22, 2015
72fd550
[FIX] name of file
archetipo Jul 28, 2015
b70bb98
[FIX] autoremove method
archetipo Jul 28, 2015
74b6f77
[FIX] mail.tempale seems not work in cron task, replaced with direct…
archetipo Jul 28, 2015
fa06594
[FIX] Readme
archetipo Jul 28, 2015
2439bdf
[FIX] review remarks
archetipo Sep 2, 2015
14f05d5
[FIX] handled ssl hosts
archetipo Sep 2, 2015
e4199d0
[FIX] handled ssl hosts
archetipo Sep 2, 2015
f14e80a
[FIX] fixed, last review remarks
archetipo Nov 2, 2015
f6df00d
[FIX] travis lint check
archetipo Nov 2, 2015
4da20e6
[FIX] backup only local db , beacause xmlrpc call of dump cause memor…
archetipo Nov 25, 2015
15ba457
[RM] useless field
archetipo Nov 25, 2015
d3781e9
[FIX] check_dd method
archetipo Nov 30, 2015
5510924
[auto_backup] Refactor.
Mar 9, 2016
e3eef86
Merge branch 'porting_auto_backup_oca' of github.com:archetipo/server…
archetipo Mar 9, 2016
13d3b87
Reduce headers.
Mar 9, 2016
91d959a
Fix view format.
Mar 9, 2016
b96b663
Add shortcut to execute backups from the "More" menu.
Mar 10, 2016
fef126e
Avoid duplicated backups.
Mar 10, 2016
b52d0de
Make sure you don't backup inside the filestore folder.
Mar 10, 2016
4773b87
[FIX] This was removing all databases.
Mar 10, 2016
8a8a6f6
FIX License type
archetipo Mar 22, 2016
46892bc
OCA Transbot updated translations from Transifex
oca-transbot Apr 17, 2016
118db13
OCA Transbot updated translations from Transifex
oca-transbot May 8, 2016
0ce5cab
OCA Transbot updated translations from Transifex
oca-transbot May 15, 2016
c275916
[FIX] auto_backup: bad reference to field sftp_private_key (#423)
jabibi May 18, 2016
10d9356
[FIX] auto_backup: Empty dump using sftp backup option (#432)
jabibi May 25, 2016
59fadd6
[FIX] logger db_backup for pysftp (#419)
bealdav May 26, 2016
639f2ff
OCA Transbot updated translations from Transifex
oca-transbot May 29, 2016
bb31c29
OCA Transbot updated translations from Transifex
oca-transbot Jun 12, 2016
9dcf82b
OCA Transbot updated translations from Transifex
oca-transbot Jul 3, 2016
6d28ffa
OCA Transbot updated translations from Transifex
oca-transbot Jul 31, 2016
ca9b447
[FIX] remove en.po that was erroneously created by transbot
sbidoul Aug 15, 2016
20da1fa
Merge branch '8.0-extract' into release/9.0/auto_backup
lasley Aug 23, 2016
f150424
[MIG] auto_backup: Migrate to v9
lasley Aug 23, 2016
f6b77ce
[ADD] auto_backup: Test coverage
lasley Aug 26, 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
108 changes: 108 additions & 0 deletions auto_backup/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,108 @@
.. 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/9.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.

Credits
=======

Contributors
------------

* Yenthe Van Ginneken <[email protected]>
* Alessio Gerace <[email protected]>
* Jairo Llopis <[email protected]>
* Dave Lasley <[email protected]>

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": "9.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": ['mail'],
"data": [
"data/ir_cron.xml",
"data/mail_message_subtype.xml",
"security/ir.model.access.csv",
"view/db_backup_view.xml",
],
"application": True,
"installable": True,
"external_dependencies": {
"python": ["pysftp"],
},
}
18 changes: 18 additions & 0 deletions auto_backup/data/ir_cron.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<?xml version="1.0" encoding="UTF-8"?>

<odoo noupdate="1">

<record id="ir_cron_backup_scheduler_0" model="ir.cron">
<field name="name">Backup Scheduler</field>
<field name="user_id" ref="base.user_root" />
<field name="interval_number">1</field>
<field name="interval_type">days</field>
<field name="numbercall">-1</field>
<field name="nextcall"
eval="(datetime.now() + timedelta(days=1)).strftime('%Y-%m-%d 02:00:00')"
/>
<field name="model">db.backup</field>
<field name="function">action_backup_all</field>
</record>

</odoo>
19 changes: 19 additions & 0 deletions auto_backup/data/mail_message_subtype.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<?xml version="1.0" encoding="UTF-8"?>

<odoo noupdate="1">

<record id="mail_message_subtype_success" model="mail.message.subtype">
<field name="name">Backup Successful</field>
<field name="description">Database backup succeeded.</field>
<field name="res_model">db.backup</field>
<field name="default" eval="False" />
</record>

<record id="mail_message_subtype_failure" model="mail.message.subtype">
<field name="name">Backup Failed</field>
<field name="description">Database backup failed.</field>
<field name="res_model">db.backup</field>
<field name="default" eval="True" />
</record>

</odoo>
Loading