From 2de9523807383dc6d2a1c2b504c8eba552c672ef Mon Sep 17 00:00:00 2001 From: Alessio Gerace Date: Tue, 14 Jul 2015 11:22:24 +0200 Subject: [PATCH] Porting module to OCA 8.0 --- auto_backup/README.rst | 99 ++++++++++++ auto_backup/__openerp__.py | 40 +++++ auto_backup/backup_data.xml | 18 +++ auto_backup/bkp_conf_view.xml | 112 +++++++++++++ auto_backup/data/backup_data.xml | 18 +++ auto_backup/i18n/ca.po | 157 +++++++++++++++++++ auto_backup/i18n/fr_BE.po | 141 +++++++++++++++++ auto_backup/{ => model}/backup_scheduler.py | 0 auto_backup/static/description/index.html | 100 ++++++++++++ auto_backup/static/description/no_index.html | 100 ++++++++++++ auto_backup/view/bkp_conf_view.xml | 112 +++++++++++++ 11 files changed, 897 insertions(+) create mode 100644 auto_backup/README.rst create mode 100644 auto_backup/__openerp__.py create mode 100644 auto_backup/backup_data.xml create mode 100644 auto_backup/bkp_conf_view.xml create mode 100644 auto_backup/data/backup_data.xml create mode 100644 auto_backup/i18n/ca.po create mode 100644 auto_backup/i18n/fr_BE.po rename auto_backup/{ => model}/backup_scheduler.py (100%) create mode 100644 auto_backup/static/description/index.html create mode 100644 auto_backup/static/description/no_index.html create mode 100644 auto_backup/view/bkp_conf_view.xml diff --git a/auto_backup/README.rst b/auto_backup/README.rst new file mode 100644 index 000000000..123008f4c --- /dev/null +++ b/auto_backup/README.rst @@ -0,0 +1,99 @@ +.. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg + :alt: License: AGPL-3 + +Automated backups +=========== + +A tool for all your back-ups, internal and external! + +Installation +============ + +Before to install this module, you need to: + +instal pysftp via pip. + +Configuration +============= + +To configure this module, you need to: + +* go to ... + +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 failed? Check the checkbox 'Auto. E-mail on backup fail' and fill in your e-mail. +Every time a backup fails you will get an e-mail in your mailbox with technical details. + + +Known issues / Roadmap +====================== + +* ... + +Bug Tracker +=========== + +Bugs are tracked on `GitHub 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 `_. + + +Credits +======= + +Contributors +------------ + +* Yenthe Van Ginneken +* Alessio Gerace + +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 http://odoo-community.org. \ No newline at end of file diff --git a/auto_backup/__openerp__.py b/auto_backup/__openerp__.py new file mode 100644 index 000000000..a72d57c43 --- /dev/null +++ b/auto_backup/__openerp__.py @@ -0,0 +1,40 @@ +# -*- encoding: utf-8 -*- +############################################################################## +# +# OpenERP, Open Source Management Solution +# Copyright (C) 2004-2009 Tiny SPRL (). All Rights Reserved +# $Id$ +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see . +# +############################################################################## + +{ + "name" : "Database Auto-Backup", + "version" : "1.0", + "author" : "VanRoey.be - Yenthe Van Ginneken, Agile Business Group", + "website" : "http://www.vanroey.be/applications/bedrijfsbeheer/odoo", + "category" : "Tools", + "summary": "Backups data base", + "depends" : ['base'], + "init_xml" : [], + "demo_xml" : [], + "update_xml" : [ + "view/bkp_conf_view.xml", + "data/backup_data.xml" + ], + "active": False, + "installable": True +} +# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: diff --git a/auto_backup/backup_data.xml b/auto_backup/backup_data.xml new file mode 100644 index 000000000..0ab3c1031 --- /dev/null +++ b/auto_backup/backup_data.xml @@ -0,0 +1,18 @@ + + + + + + + + + + + + + + + + + + diff --git a/auto_backup/bkp_conf_view.xml b/auto_backup/bkp_conf_view.xml new file mode 100644 index 000000000..27e56937e --- /dev/null +++ b/auto_backup/bkp_conf_view.xml @@ -0,0 +1,112 @@ + + + + + Configure Backup + db.backup + form + +
+ + + + + + + + + + + + + + + +
Warning: Use SFTP with caution! This writes files to external servers under the path you specify.
+ + + + + + + + + + +