You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
[9.0][MIG] auto_backup (#526)
* Update english pot file
Added all the new fields and sentences. This will be the template for
translations.
* Dutch translations
Full translation of the module to Dutch
* Chinese translations
Add Chinese translations to the module. Written by talway.
* Changes chinese translation
Changed some translations
* Full German translations
Thanks to Martin Schmid!
* Typo fix
could'nt > couldn't
* Flemish translations
Flemish translations are identical to Dutch.
* Open FTP session on the last moment possible
Used to open fp = open(file_path,'wb') a few lines before it was needed. This shouldn't be too much of a problem but opening and closing it right after eachother keeps the session open for less time and there are less chances on failure.
* Porting module to OCA 8.0
* [FIX] module
* [FIX] bug logger --> _logger call
[FIX] Flake8
[RM] useless files
* [FIX] Readme.rst
* [FIX] defaults value
* [FIX] rebased commit
* [RM] description index.html
* [RF] porting to new api
[FIX] schedule_backup method
[IMP] IT translation
[IMP] tests
* [FIX] test
* [FIX] flake8
* [IMP] deps in travis.yml
[FIX] flake8
* [FIX] flake8 and pylint
* [FIX] name of file
* [FIX] autoremove method
[FIX] Contributors
* [FIX] mail.tempale seems not work in cron task, replaced with direct call of mail.mail
* [FIX] Readme
* [FIX] review remarks
* [FIX] handled ssl hosts
[FIX] Flake8
* [FIX] handled ssl hosts
[FIX] Flake8
* [FIX] fixed, last review remarks
* [FIX] travis lint check
* [FIX] backup only local db , beacause xmlrpc call of dump cause memory leak
* [RM] useless field
* [FIX] check_dd method
[ADD] test case improved
* [auto_backup] Refactor.
- Follow template README.
- Remove HTML README.
- Move models to models folder.
- Model and view file names follow guidelines.
- Unused methods cleanup.
- Remove unneeded `.pot` file.
- Fix permissons.
- Follow PEP8 in names everywhere.
- Set more descriptive field names.
- Disable backups for other databases, for security.
- Remove db name from generated file, for easier cleanup.
- EAFP logic everywhere.
- More descriptive name.
- Data files moved to YAML, with cleaner ir.cron record creation.
- Add permissions for db.backup model.
- Icons.
- Update tests with new format.
- Storage method is a selectable, for easier extensibility.
- Instead of custom mailing, it just has a mail thread where you can subscribe.
- Should fix almost all comments in https://github.com/OCA/server-tools/pull/203.
* Update english pot file
Added all the new fields and sentences. This will be the template for
translations.
* Dutch translations
Full translation of the module to Dutch
* Chinese translations
Add Chinese translations to the module. Written by talway.
* Changes chinese translation
Changed some translations
* Full German translations
Thanks to Martin Schmid!
* Typo fix
could'nt > couldn't
* Flemish translations
Flemish translations are identical to Dutch.
* Open FTP session on the last moment possible
Used to open fp = open(file_path,'wb') a few lines before it was needed. This shouldn't be too much of a problem but opening and closing it right after eachother keeps the session open for less time and there are less chances on failure.
* Porting module to OCA 8.0
* [FIX] module
* [FIX] bug logger --> _logger call
[FIX] Flake8
[RM] useless files
* [FIX] Readme.rst
* [FIX] defaults value
* [FIX] rebased commit
* [RM] description index.html
* [RF] porting to new api
[FIX] schedule_backup method
[IMP] IT translation
[IMP] tests
* [FIX] test
* [FIX] flake8
* [IMP] deps in travis.yml
[FIX] flake8
* [FIX] flake8 and pylint
* [FIX] name of file
* [FIX] autoremove method
[FIX] Contributors
* [FIX] mail.tempale seems not work in cron task, replaced with direct call of mail.mail
* [FIX] Readme
* [FIX] review remarks
* [FIX] handled ssl hosts
[FIX] Flake8
* [FIX] handled ssl hosts
[FIX] Flake8
* [FIX] fixed, last review remarks
* [FIX] travis lint check
* [FIX] backup only local db , beacause xmlrpc call of dump cause memory leak
* [RM] useless field
* [FIX] check_dd method
[ADD] test case improved
* [auto_backup] Refactor.
- Follow template README.
- Remove HTML README.
- Move models to models folder.
- Model and view file names follow guidelines.
- Unused methods cleanup.
- Remove unneeded `.pot` file.
- Fix permissons.
- Follow PEP8 in names everywhere.
- Set more descriptive field names.
- Disable backups for other databases, for security.
- Remove db name from generated file, for easier cleanup.
- EAFP logic everywhere.
- More descriptive name.
- Data files moved to YAML, with cleaner ir.cron record creation.
- Add permissions for db.backup model.
- Icons.
- Update tests with new format.
- Storage method is a selectable, for easier extensibility.
- Instead of custom mailing, it just has a mail thread where you can subscribe.
- Should fix almost all comments in https://github.com/OCA/server-tools/pull/203.
* Reduce headers.
This respects the upstream license choice (GPL/AGPL) but reduces
verbosity.
It would be ideal to have everything under AGPL though.
* Fix view format.
* Add shortcut to execute backups from the "More" menu.
* Avoid duplicated backups.
* Make sure you don't backup inside the filestore folder.
The filestore is saved in the backup, so if you save the backup in the
filestore, you'd end up with a huge backup that includes itself and the
universe may collapse.
* [FIX] This was removing all databases.
* FIX License type
* OCA Transbot updated translations from Transifex
* OCA Transbot updated translations from Transifex
* OCA Transbot updated translations from Transifex
* [FIX] auto_backup: bad reference to field sftp_private_key (#423)
Bump module version to 8.0.1.0.1
* [FIX] auto_backup: Empty dump using sftp backup option (#432)
* [FIX] logger db_backup for pysftp (#419)
* OCA Transbot updated translations from Transifex
* OCA Transbot updated translations from Transifex
* OCA Transbot updated translations from Transifex
* OCA Transbot updated translations from Transifex
* [FIX] remove en.po that was erroneously created by transbot
* [MIG] auto_backup: Migrate to v9
* Add self.ensure_ones
* Add test coverage
* [ADD] auto_backup: Test coverage
* compute_name
* check_folder
* action_sftp_test_connection
* action_backup - sftp
* action_backup_all
* sftp_connection
* filename
8 years ago |
|
<?xml version="1.0"?> <odoo>
<record model="ir.ui.view" id="view_backup_conf_form"> <field name="name">Automated Backups</field> <field name="model">db.backup</field> <field name="type">form</field> <field name="arch" type="xml"> <form> <h1><field name="name"/></h1>
<group string="Basic backup configuration"> <field name="folder"/> <field name="days_to_keep"/> <field name="method"/> </group> <div attrs="{'invisible': [('method', '!=', 'sftp')]}"> <div class="bg-warning text-warning"> <h3>Warning:</h3> Use SFTP with caution! This writes files to external servers under the path you specify. </div> <group string="SFTP Settings"> <field name="sftp_host" placeholder="sftp.example.com"/> <field name="sftp_port"/> <field name="sftp_user" placeholder="john"/> <field name="sftp_password"/> <field name="sftp_private_key" placeholder="/home/odoo/.ssh/id_rsa"/> <button name="action_sftp_test_connection" type="object" string="Test SFTP Connection" icon="gtk-network"/> </group> </div> <separator string="Help" colspan="2"/> <div> 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.ui.view" id="view_backup_conf_tree"> <field name="name">Automated Backups</field> <field name="model">db.backup</field> <field name="type">tree</field> <field name="arch" type="xml"> <tree string="Backups"> <field name='name'/> <field name='folder'/> <field name="sftp_host"/> </tree> </field> </record>
<record model="ir.ui.view" id="view_backup_conf_search"> <field name="name">Automated Backups</field> <field name="model">db.backup</field> <field name="type">search</field> <field name="arch" type="xml"> <search string="Search options"> <field name='name'/> <field name='folder'/> <field name="sftp_host"/> </search> </field> </record>
<act_window name="Automated Backups" id="action_backup_conf_form" res_model="db.backup"/>
<menuitem parent="base.menu_config" action="action_backup_conf_form" id="backup_conf_menu"/>
<!-- Execute backup from "More" menu --> <record id="action_server_backup" model="ir.actions.server"> <field name="name">Execute backup(s)</field> <field name="model_id" ref="model_db_backup"/> <field name="code"> object.action_backup() </field> </record>
<record model="ir.values" id="action_backup"> <field name="name">Execute backup(s)</field> <field name="action_id" ref="action_server_backup" /> <field name="value" eval="'ir.actions.server,%d' % ref('action_server_backup')" /> <field name="key">action</field> <field name="model_id" ref="model_db_backup" /> <field name="model">db.backup</field> <field name="key2">client_action_multi</field> </record>
</odoo>
|