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.

94 lines
3.5 KiB

  1. <?xml version="1.0"?>
  2. <openerp>
  3. <data>
  4. <record model="ir.ui.view" id="view_backup_conf_form">
  5. <field name="name">Automated Backups</field>
  6. <field name="model">db.backup</field>
  7. <field name="type">form</field>
  8. <field name="arch" type="xml">
  9. <form>
  10. <h1><field name="name"/></h1>
  11. <group string="Local backup configuration">
  12. <field name="folder"/>
  13. <field name="days_to_keep"/>
  14. <field name="method"/>
  15. </group>
  16. <group
  17. string="SFTP Settings"
  18. attrs="{
  19. 'invisible': [
  20. ('method', '!=', 'sftp'),
  21. ],
  22. }">
  23. <div class="bg-warning text-warning">
  24. <h3>Warning:</h3>
  25. Use SFTP with caution! This writes files to external servers under the path you specify.
  26. </div>
  27. <field name="sftp_host" placeholder="sftp.example.com"/>
  28. <field name="sftp_port"/>
  29. <field name="sftp_user" placeholder="john"/>
  30. <field name="sftp_password"/>
  31. <field
  32. name="sftp_private_key"
  33. placeholder="/home/odoo/.ssh/id_rsa"/>
  34. <button
  35. name="action_sftp_test_connection"
  36. type="object"
  37. string="Test SFTP Connection"
  38. icon="gtk-network"/>
  39. </group>
  40. <separator string="Help" colspan="2"/>
  41. <div>
  42. This configures the scheduler for automatic backup of the given database running on given host at given port on regular intervals.
  43. <br/>
  44. Automatic backups of the database can be scheduled as follows:
  45. <ol>
  46. <li>Go to Settings / Technical / Automation / Scheduled Actions.</li>
  47. <li>Search the action named 'Backup scheduler'.</li>
  48. <li>Set the scheduler to active and fill in how often you want backups generated.</li>
  49. </ol>
  50. </div>
  51. </form>
  52. </field>
  53. </record>
  54. <record model="ir.ui.view" id="view_backup_conf_tree">
  55. <field name="name">Automated Backups</field>
  56. <field name="model">db.backup</field>
  57. <field name="type">tree</field>
  58. <field name="arch" type="xml">
  59. <tree string="Backups">
  60. <field name='name'/>
  61. <field name='folder'/>
  62. <field name="sftp_host"/>
  63. </tree>
  64. </field>
  65. </record>
  66. <record model="ir.ui.view" id="view_backup_conf_search">
  67. <field name="name">Automated Backups</field>
  68. <field name="model">db.backup</field>
  69. <field name="type">search</field>
  70. <field name="arch" type="xml">
  71. <search string="Search options">
  72. <field name='name'/>
  73. <field name='folder'/>
  74. <field name="sftp_host"/>
  75. </search>
  76. </field>
  77. </record>
  78. <act_window
  79. name="Automated Backups"
  80. id="action_backup_conf_form"
  81. res_model="db.backup"/>
  82. <menuitem
  83. parent="base.menu_config"
  84. action="action_backup_conf_form"
  85. id="backup_conf_menu"/>
  86. </data>
  87. </openerp>