archetipo
10 years ago
committed by
Dave Lasley
7 changed files with 378 additions and 542 deletions
-
2auto_backup/README.rst
-
34auto_backup/data/backup_data.xml
-
157auto_backup/i18n/ca.po
-
141auto_backup/i18n/fr_BE.po
-
2auto_backup/model/__init__.py
-
376auto_backup/model/backup_scheduler.py
-
208auto_backup/view/bkp_conf_view.xml
@ -1,18 +1,18 @@ |
|||
<?xml version="1.0" ?> |
|||
<?xml version="1.0"?> |
|||
<openerp> |
|||
<data noupdate="1"> |
|||
<record id="ir_cron_backupscheduler0" model="ir.cron"> |
|||
<field eval=""""schedule_backup"""" name="function"/> |
|||
<field eval=""""work_days"""" name="interval_type"/> |
|||
<field name="user_id" ref="base.user_root"/> |
|||
<field eval=""""Backup scheduler"""" name="name"/> |
|||
<field eval="-1" name="numbercall"/> |
|||
<field eval=""""2010-01-07 11:35:28"""" name="nextcall"/> |
|||
<field eval="5" name="priority"/> |
|||
<field eval="0" name="doall"/> |
|||
<field eval="False" name="active"/> |
|||
<field eval="1" name="interval_number"/> |
|||
<field eval=""""db.backup"""" name="model"/> |
|||
</record> |
|||
</data> |
|||
</openerp> |
|||
<data noupdate="1"> |
|||
<record id="ir_cron_backupscheduler0" model="ir.cron"> |
|||
<field eval=""""schedule_backup"""" name="function"/> |
|||
<field eval=""""work_days"""" name="interval_type"/> |
|||
<field name="user_id" ref="base.user_root"/> |
|||
<field eval=""""Backup scheduler"""" name="name"/> |
|||
<field eval="-1" name="numbercall"/> |
|||
<field eval=""""2015-07-07 11:35:28"""" name="nextcall"/> |
|||
<field eval="5" name="priority"/> |
|||
<field eval="0" name="doall"/> |
|||
<field eval="False" name="active"/> |
|||
<field eval="1" name="interval_number"/> |
|||
<field eval=""""db.backup"""" name="model"/> |
|||
</record> |
|||
</data> |
|||
</openerp> |
@ -1,157 +0,0 @@ |
|||
# Catalan translation for openobject-addons |
|||
# Copyright (c) 2014 Rosetta Contributors and Canonical Ltd 2014 |
|||
# This file is distributed under the same license as the openobject-addons package. |
|||
# FIRST AUTHOR <EMAIL@ADDRESS>, 2014. |
|||
# |
|||
msgid "" |
|||
msgstr "" |
|||
"Project-Id-Version: openobject-addons\n" |
|||
"Report-Msgid-Bugs-To: FULL NAME <EMAIL@ADDRESS>\n" |
|||
"POT-Creation-Date: 2009-11-24 13:49+0000\n" |
|||
"PO-Revision-Date: 2014-10-20 06:41+0000\n" |
|||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" |
|||
"Language-Team: Catalan <ca@li.org>\n" |
|||
"MIME-Version: 1.0\n" |
|||
"Content-Type: text/plain; charset=UTF-8\n" |
|||
"Content-Transfer-Encoding: 8bit\n" |
|||
"X-Launchpad-Export-Date: 2014-10-21 06:30+0000\n" |
|||
"X-Generator: Launchpad (build 17203)\n" |
|||
|
|||
#. module: auto_backup |
|||
#: help:db.backup,name:0 |
|||
msgid "Database you want to schedule backups for" |
|||
msgstr "" |
|||
|
|||
#. module: auto_backup |
|||
#: constraint:ir.model:0 |
|||
msgid "" |
|||
"The Object name must start with x_ and not contain any special character !" |
|||
msgstr "" |
|||
|
|||
#. module: auto_backup |
|||
#: constraint:ir.actions.act_window:0 |
|||
msgid "Invalid model name in the action definition." |
|||
msgstr "" |
|||
|
|||
#. module: auto_backup |
|||
#: model:ir.model,name:auto_backup.model_db_backup |
|||
msgid "db.backup" |
|||
msgstr "" |
|||
|
|||
#. module: auto_backup |
|||
#: view:db.backup:0 |
|||
msgid "" |
|||
"1) Go to Administration / Configuration / Scheduler / Scheduled Actions" |
|||
msgstr "" |
|||
|
|||
#. module: auto_backup |
|||
#: model:ir.actions.act_window,name:auto_backup.action_backup_conf_form |
|||
#: model:ir.ui.menu,name:auto_backup.backup_conf_menu |
|||
msgid "Configure Backup" |
|||
msgstr "" |
|||
|
|||
#. module: auto_backup |
|||
#: view:db.backup:0 |
|||
msgid "Test" |
|||
msgstr "" |
|||
|
|||
#. module: auto_backup |
|||
#: view:db.backup:0 |
|||
msgid "IP Configuration" |
|||
msgstr "" |
|||
|
|||
#. module: auto_backup |
|||
#: help:db.backup,bkp_dir:0 |
|||
msgid "Absolute path for storing the backups" |
|||
msgstr "" |
|||
|
|||
#. module: auto_backup |
|||
#: model:ir.module.module,shortdesc:auto_backup.module_meta_information |
|||
msgid "Database Auto-Backup" |
|||
msgstr "" |
|||
|
|||
#. module: auto_backup |
|||
#: view:db.backup:0 |
|||
msgid "Database Configuration" |
|||
msgstr "" |
|||
|
|||
#. module: auto_backup |
|||
#: view:db.backup:0 |
|||
msgid "4) Set other values as per your preference" |
|||
msgstr "" |
|||
|
|||
#. module: auto_backup |
|||
#: field:db.backup,host:0 |
|||
msgid "Host" |
|||
msgstr "" |
|||
|
|||
#. module: auto_backup |
|||
#: view:db.backup:0 |
|||
msgid "" |
|||
"Automatic backup of all the databases under this can be scheduled as " |
|||
"follows: " |
|||
msgstr "" |
|||
|
|||
#. module: auto_backup |
|||
#: constraint:ir.ui.view:0 |
|||
msgid "Invalid XML for View Architecture!" |
|||
msgstr "" |
|||
|
|||
#. module: auto_backup |
|||
#: field:db.backup,bkp_dir:0 |
|||
msgid "Backup Directory" |
|||
msgstr "" |
|||
|
|||
#. module: auto_backup |
|||
#: field:db.backup,name:0 |
|||
msgid "Database" |
|||
msgstr "" |
|||
|
|||
#. module: auto_backup |
|||
#: view:db.backup:0 |
|||
msgid "2) Schedule new action(create a new record)" |
|||
msgstr "" |
|||
|
|||
#. module: auto_backup |
|||
#: model:ir.module.module,description:auto_backup.module_meta_information |
|||
msgid "" |
|||
"The generic Open ERP Database Auto-Backup system enables the user to make " |
|||
"configurations for the automatic backup of the database.\n" |
|||
"User simply requires to specify host & port under IP Configuration & " |
|||
"database(on specified host running at specified port) and backup " |
|||
"directory(in which all the backups of the specified database will be stored) " |
|||
"under Database Configuration.\n" |
|||
"\n" |
|||
"Automatic backup for all such configured databases under this can then be " |
|||
"scheduled as follows: \n" |
|||
" \n" |
|||
"1) Go to Administration / Configuration / Scheduler / Scheduled Actions\n" |
|||
"2) Schedule new action(create a new record)\n" |
|||
"3) Set 'Object' to 'db.backup' and 'Function' to 'schedule_backup' under " |
|||
"page 'Technical Data'\n" |
|||
"4) Set other values as per your preference" |
|||
msgstr "" |
|||
|
|||
#. module: auto_backup |
|||
#: view:db.backup:0 |
|||
msgid "" |
|||
"3) Set 'Object' to 'db.backup' and 'Function' to 'schedule_backup' under " |
|||
"page 'Technical Data'" |
|||
msgstr "" |
|||
|
|||
#. module: auto_backup |
|||
#: view:db.backup:0 |
|||
msgid "Help" |
|||
msgstr "" |
|||
|
|||
#. module: auto_backup |
|||
#: view:db.backup:0 |
|||
msgid "" |
|||
"This configures the scheduler for automatic backup of the given database " |
|||
"running on given host at given port on regular intervals." |
|||
msgstr "" |
|||
|
|||
#. module: auto_backup |
|||
#: field:db.backup,port:0 |
|||
msgid "Port" |
|||
msgstr "" |
@ -1,141 +0,0 @@ |
|||
# Translation of OpenERP Server. |
|||
# This file contains the translation of the following modules: |
|||
# * auto_backup |
|||
# |
|||
msgid "" |
|||
msgstr "" |
|||
"Project-Id-Version: OpenERP Server 5.0.6\n" |
|||
"Report-Msgid-Bugs-To: support@openerp.com\n" |
|||
"POT-Creation-Date: 2009-11-24 13:49:51+0000\n" |
|||
"PO-Revision-Date: 2009-11-24 13:49:51+0000\n" |
|||
"Last-Translator: <>\n" |
|||
"Language-Team: \n" |
|||
"MIME-Version: 1.0\n" |
|||
"Content-Type: text/plain; charset=UTF-8\n" |
|||
"Content-Transfer-Encoding: \n" |
|||
"Plural-Forms: \n" |
|||
|
|||
#. module: auto_backup |
|||
#: help:db.backup,name:0 |
|||
msgid "Database you want to schedule backups for" |
|||
msgstr "" |
|||
|
|||
#. module: auto_backup |
|||
#: constraint:ir.model:0 |
|||
msgid "The Object name must start with x_ and not contain any special character !" |
|||
msgstr "" |
|||
|
|||
#. module: auto_backup |
|||
#: constraint:ir.actions.act_window:0 |
|||
msgid "Invalid model name in the action definition." |
|||
msgstr "" |
|||
|
|||
#. module: auto_backup |
|||
#: model:ir.model,name:auto_backup.model_db_backup |
|||
msgid "db.backup" |
|||
msgstr "" |
|||
|
|||
#. module: auto_backup |
|||
#: view:db.backup:0 |
|||
msgid "1) Go to Administration / Configuration / Scheduler / Scheduled Actions" |
|||
msgstr "" |
|||
|
|||
#. module: auto_backup |
|||
#: model:ir.actions.act_window,name:auto_backup.action_backup_conf_form |
|||
#: model:ir.ui.menu,name:auto_backup.backup_conf_menu |
|||
msgid "Configure Backup" |
|||
msgstr "" |
|||
|
|||
#. module: auto_backup |
|||
#: view:db.backup:0 |
|||
msgid "Test" |
|||
msgstr "" |
|||
|
|||
#. module: auto_backup |
|||
#: view:db.backup:0 |
|||
msgid "IP Configuration" |
|||
msgstr "" |
|||
|
|||
#. module: auto_backup |
|||
#: help:db.backup,bkp_dir:0 |
|||
msgid "Absolute path for storing the backups" |
|||
msgstr "" |
|||
|
|||
#. module: auto_backup |
|||
#: model:ir.module.module,shortdesc:auto_backup.module_meta_information |
|||
msgid "Database Auto-Backup" |
|||
msgstr "" |
|||
|
|||
#. module: auto_backup |
|||
#: view:db.backup:0 |
|||
msgid "Database Configuration" |
|||
msgstr "" |
|||
|
|||
#. module: auto_backup |
|||
#: view:db.backup:0 |
|||
msgid "4) Set other values as per your preference" |
|||
msgstr "" |
|||
|
|||
#. module: auto_backup |
|||
#: field:db.backup,host:0 |
|||
msgid "Host" |
|||
msgstr "" |
|||
|
|||
#. module: auto_backup |
|||
#: view:db.backup:0 |
|||
msgid "Automatic backup of all the databases under this can be scheduled as follows: " |
|||
msgstr "" |
|||
|
|||
#. module: auto_backup |
|||
#: constraint:ir.ui.view:0 |
|||
msgid "Invalid XML for View Architecture!" |
|||
msgstr "" |
|||
|
|||
#. module: auto_backup |
|||
#: field:db.backup,bkp_dir:0 |
|||
msgid "Backup Directory" |
|||
msgstr "" |
|||
|
|||
#. module: auto_backup |
|||
#: field:db.backup,name:0 |
|||
msgid "Database" |
|||
msgstr "" |
|||
|
|||
#. module: auto_backup |
|||
#: view:db.backup:0 |
|||
msgid "2) Schedule new action(create a new record)" |
|||
msgstr "" |
|||
|
|||
#. module: auto_backup |
|||
#: model:ir.module.module,description:auto_backup.module_meta_information |
|||
msgid "The generic Open ERP Database Auto-Backup system enables the user to make configurations for the automatic backup of the database.\n" |
|||
"User simply requires to specify host & port under IP Configuration & database(on specified host running at specified port) and backup directory(in which all the backups of the specified database will be stored) under Database Configuration.\n" |
|||
"\n" |
|||
"Automatic backup for all such configured databases under this can then be scheduled as follows: \n" |
|||
" \n" |
|||
"1) Go to Administration / Configuration / Scheduler / Scheduled Actions\n" |
|||
"2) Schedule new action(create a new record)\n" |
|||
"3) Set 'Object' to 'db.backup' and 'Function' to 'schedule_backup' under page 'Technical Data'\n" |
|||
"4) Set other values as per your preference" |
|||
msgstr "" |
|||
|
|||
#. module: auto_backup |
|||
#: view:db.backup:0 |
|||
msgid "3) Set 'Object' to 'db.backup' and 'Function' to 'schedule_backup' under page 'Technical Data'" |
|||
msgstr "" |
|||
|
|||
#. module: auto_backup |
|||
#: view:db.backup:0 |
|||
msgid "Help" |
|||
msgstr "" |
|||
|
|||
#. module: auto_backup |
|||
#: view:db.backup:0 |
|||
msgid "This configures the scheduler for automatic backup of the given database running on given host at given port on regular intervals." |
|||
msgstr "" |
|||
|
|||
#. module: auto_backup |
|||
#: field:db.backup,port:0 |
|||
msgid "Port" |
|||
msgstr "" |
|||
|
@ -1,112 +1,106 @@ |
|||
<?xml version="1.0"?> |
|||
<openerp> |
|||
<data> |
|||
<record model="ir.ui.view" id="view_backup_conf_form"> |
|||
<field name="name">Configure Backup</field> |
|||
<field name="model">db.backup</field> |
|||
<field name="type">form</field> |
|||
<field name="arch" type="xml"> |
|||
<form string="Test"> |
|||
<group col="4" colspan="4"> |
|||
<separator col="2" string="Local backup configuration"/> |
|||
</group> |
|||
<group> |
|||
<field name="host" colspan="2"/> |
|||
<field name="name" /> |
|||
<field name="port" /> |
|||
<field name="bkp_dir" /> |
|||
<field name="autoremove" /> |
|||
<field name="daystokeep" attrs="{'invisible': [('autoremove','=',False)]}"/> |
|||
<data> |
|||
|
|||
</group> |
|||
<group col="4" colspan="4"> |
|||
<separator col="2" string="SFTP"/> |
|||
</group> |
|||
<div style="width:50%;border-radius:10px;margin: 10px 0px;padding:15px 10px 15px 10px; |
|||
background-repeat: no-repeat;background-position: 10px center;color: #9F6000;background-color: #FEEFB3;" attrs="{'invisible': [('sftpwrite','=',False)]}"><b>Warning:</b> Use SFTP with caution! This writes files to external servers under the path you specify.</div> |
|||
<group> |
|||
<field name="sftpwrite"/> |
|||
<field name="sftpip" |
|||
attrs="{'invisible':[('sftpwrite', '==', False)],'required':[('sftpwrite', '==', True)]}"/> |
|||
<field name="sftpport" |
|||
attrs="{'invisible':[('sftpwrite', '==', False)],'required':[('sftpwrite', '==', True)]}"/> |
|||
<field name="sftpusername" |
|||
attrs="{'invisible':[('sftpwrite', '==', False)],'required':[('sftpwrite', '==', True)]}"/> |
|||
<field name="sftppassword" |
|||
attrs="{'invisible':[('sftpwrite', '==', False)],'required':[('sftpwrite', '==', True)]}" password="True" /> |
|||
<field name="sftppath" |
|||
attrs="{'invisible':[('sftpwrite', '==', False)],'required':[('sftpwrite', '==', True)]}" placeholder="For example: /odoo/backups/"/> |
|||
<field name="daystokeepsftp" |
|||
attrs="{'invisible':[('sftpwrite', '==', False)],'required':[('sftpwrite', '==', True)]}"/> |
|||
<field name="sendmailsftpfail" attrs="{'invisible': [('sftpwrite','=',False)]}"/> |
|||
<field name="emailtonotify" attrs="{'invisible':['|',('sendmailsftpfail', '==', False), |
|||
('sftpwrite', '==', False)],'required':[('sendmailsftpfail', '==', True)]}"/> |
|||
<button name="test_sftp_connection" type="object" |
|||
attrs="{'invisible': [('sftpwrite','=',False)]}" string="Test SFTP Connection" icon="gtk-network"/> |
|||
</group> |
|||
<separator string="Help" colspan="2" /> |
|||
<div> |
|||
This configures the scheduler for automatic backup of the given database running on given host at given port on regular intervals. |
|||
<br /> |
|||
Automatic backups of the database can be scheduled as follows: |
|||
<ol> |
|||
<li> |
|||
Go to Settings / Technical / Automation / Scheduled Actions. |
|||
</li> |
|||
<li> |
|||
Search the action named 'Backup scheduler'. |
|||
</li> |
|||
<li> |
|||
Set the scheduler to active and fill in how often you want backups generated. |
|||
</li> |
|||
</ol> |
|||
<p style="font-size:18px;"> |
|||
Need more help? <a href="mailto:erp@vanroey.be">Contact us!</a> |
|||
</p> |
|||
</div> |
|||
</form> |
|||
</field> |
|||
</record> |
|||
|
|||
<record model="ir.ui.view" id="view_backup_conf_tree"> |
|||
<field name="name">Configure Backup</field> |
|||
<field name="model">db.backup</field> |
|||
<field name="type">tree</field> |
|||
<field name="arch" type="xml"> |
|||
<tree string="Backups"> |
|||
<field name='host'/> |
|||
<field name='port'/> |
|||
<field name='name'/> |
|||
<field name='bkp_dir'/> |
|||
<field name="autoremove" /> |
|||
<field name="sftpip"/> |
|||
</tree> |
|||
</field> |
|||
</record> |
|||
|
|||
<record model="ir.ui.view" id="view_backup_conf_search"> |
|||
<field name="name">Configure Backup</field> |
|||
<field name="model">db.backup</field> |
|||
<field name="type">search</field> |
|||
<field name="arch" type="xml"> |
|||
<search string="Search options"> |
|||
<field name='host'/> |
|||
<field name='port'/> |
|||
<field name='name'/> |
|||
<field name='bkp_dir'/> |
|||
<field name="autoremove" /> |
|||
<field name="sftpip"/> |
|||
</search> |
|||
</field> |
|||
</record> |
|||
<record model="ir.ui.view" id="view_backup_conf_form"> |
|||
<field name="name">Configure Backup</field> |
|||
<field name="model">db.backup</field> |
|||
<field name="type">form</field> |
|||
<field name="arch" type="xml"> |
|||
<form string="Test"> |
|||
<group col="4" colspan="4"> |
|||
<separator col="2" string="Local backup configuration"/> |
|||
</group> |
|||
<group> |
|||
<field name="host" colspan="2"/> |
|||
<field name="name"/> |
|||
<field name="port"/> |
|||
<field name="bkp_dir"/> |
|||
<field name="autoremove"/> |
|||
<field name="daystokeep" attrs="{'invisible': [('autoremove','=',False)]}"/> |
|||
</group> |
|||
<group col="4" colspan="4"> |
|||
<separator col="2" string="SFTP"/> |
|||
</group> |
|||
<div |
|||
style="width:50%;border-radius:10px; |
|||
margin: 10px 0px; |
|||
padding:15px 10px 15px 10px; |
|||
background-repeat: |
|||
no-repeat;background-position: 10px center; |
|||
color: #9F6000;background-color: #FEEFB3;" |
|||
attrs="{'invisible': [('sftpwrite','=',False)]}"> |
|||
<b>Warning:</b> |
|||
Use SFTP with caution! This writes files to external servers under the path you specify. |
|||
</div> |
|||
<group> |
|||
<field name="sftpwrite"/> |
|||
<field name="sftpip" attrs="{'invisible':[('sftpwrite', '==', False)],'required':[('sftpwrite', '==', True)]}"/> |
|||
<field name="sftpport" attrs="{'invisible':[('sftpwrite', '==', False)],'required':[('sftpwrite', '==', True)]}"/> |
|||
<field name="sftpusername" attrs="{'invisible':[('sftpwrite', '==', False)],'required':[('sftpwrite', '==', True)]}"/> |
|||
<field name="sftppassword" attrs="{'invisible':[('sftpwrite', '==', False)],'required':[('sftpwrite', '==', True)]}" password="True"/> |
|||
<field name="sftppath" attrs="{'invisible':[('sftpwrite', '==', False)],'required':[('sftpwrite', '==', True)]}" placeholder="For example: /odoo/backups/"/> |
|||
<field name="daystokeepsftp" attrs="{'invisible':[('sftpwrite', '==', False)],'required':[('sftpwrite', '==', True)]}"/> |
|||
<field name="sendmailsftpfail" attrs="{'invisible': [('sftpwrite','=',False)]}"/> |
|||
<field name="emailtonotify" attrs="{'invisible':['|',('sendmailsftpfail', '==', False), |
|||
('sftpwrite', '==', False)],'required':[('sendmailsftpfail', '==', True)]}"/> |
|||
<button name="test_sftp_connection" type="object" attrs="{'invisible': [('sftpwrite','=',False)]}" string="Test SFTP Connection" icon="gtk-network"/> |
|||
</group> |
|||
<separator string="Help" colspan="2"/> |
|||
<div> |
|||
This configures the scheduler for automatic backup of the given database running on given host at given port on regular intervals. |
|||
<br/> |
|||
Automatic backups of the database can be scheduled as follows: |
|||
<ol> |
|||
<li>Go to Settings / Technical / Automation / Scheduled Actions.</li> |
|||
<li>Search the action named 'Backup scheduler'.</li> |
|||
<li>Set the scheduler to active and fill in how often you want backups generated.</li> |
|||
</ol> |
|||
</div> |
|||
</form> |
|||
</field> |
|||
</record> |
|||
|
|||
<record model="ir.actions.act_window" id="action_backup_conf_form"> |
|||
<field name="name">Configure Backup</field> |
|||
<field name="res_model">db.backup</field> |
|||
<field name="view_type">form</field> |
|||
<field name='view_mode'>tree,form</field> |
|||
<field name='view_id' ref='view_backup_conf_tree'/> |
|||
</record> |
|||
<menuitem parent="base.menu_config" action="action_backup_conf_form" id="backup_conf_menu"/> |
|||
</data> |
|||
<record model="ir.ui.view" id="view_backup_conf_tree"> |
|||
<field name="name">Configure Backup</field> |
|||
<field name="model">db.backup</field> |
|||
<field name="type">tree</field> |
|||
<field name="arch" type="xml"> |
|||
<tree string="Backups"> |
|||
<field name='host'/> |
|||
<field name='port'/> |
|||
<field name='name'/> |
|||
<field name='bkp_dir'/> |
|||
<field name="autoremove"/> |
|||
<field name="sftpip"/> |
|||
</tree> |
|||
</field> |
|||
</record> |
|||
|
|||
<record model="ir.ui.view" id="view_backup_conf_search"> |
|||
<field name="name">Configure Backup</field> |
|||
<field name="model">db.backup</field> |
|||
<field name="type">search</field> |
|||
<field name="arch" type="xml"> |
|||
<search string="Search options"> |
|||
<field name='host'/> |
|||
<field name='port'/> |
|||
<field name='name'/> |
|||
<field name='bkp_dir'/> |
|||
<field name="autoremove"/> |
|||
<field name="sftpip"/> |
|||
</search> |
|||
</field> |
|||
</record> |
|||
|
|||
<record model="ir.actions.act_window" id="action_backup_conf_form"> |
|||
<field name="name">Configure Backup</field> |
|||
<field name="res_model">db.backup</field> |
|||
<field name="view_type">form</field> |
|||
<field name='view_mode'>tree,form</field> |
|||
<field name='view_id' ref='view_backup_conf_tree'/> |
|||
</record> |
|||
<menuitem parent="base.menu_config" action="action_backup_conf_form" id="backup_conf_menu"/> |
|||
|
|||
</data> |
|||
</openerp> |
Write
Preview
Loading…
Cancel
Save
Reference in new issue