Browse Source

Dec 12 : [UPDT] Updated 'auto_database_backup'

pull/254/merge
AjmalCybro 1 year ago
parent
commit
8a8fda4932
  1. 33
      auto_database_backup/README.rst
  2. 9
      auto_database_backup/__init__.py
  3. 40
      auto_database_backup/__manifest__.py
  4. 9
      auto_database_backup/controllers/__init__.py
  5. 32
      auto_database_backup/controllers/auto_database_backup.py
  6. 16
      auto_database_backup/data/ir_cron_data.xml
  7. 50
      auto_database_backup/data/mail_data.xml
  8. 4
      auto_database_backup/doc/RELEASE_NOTES.md
  9. 7
      auto_database_backup/models/__init__.py
  10. 866
      auto_database_backup/models/db_backup_configure.py
  11. 4
      auto_database_backup/security/ir.model.access.csv
  12. BIN
      auto_database_backup/static/description/assets/icons/f-alarm.png
  13. BIN
      auto_database_backup/static/description/assets/icons/f-backup.png
  14. BIN
      auto_database_backup/static/description/assets/icons/f-dropbox.png
  15. BIN
      auto_database_backup/static/description/assets/icons/f-google-drive.png
  16. BIN
      auto_database_backup/static/description/assets/icons/f-remove-database.png
  17. BIN
      auto_database_backup/static/description/assets/icons/f-sftp.png
  18. BIN
      auto_database_backup/static/description/assets/icons/onedrive.png
  19. BIN
      auto_database_backup/static/description/assets/misc/categories.png
  20. BIN
      auto_database_backup/static/description/assets/misc/check-box.png
  21. BIN
      auto_database_backup/static/description/assets/misc/compass.png
  22. BIN
      auto_database_backup/static/description/assets/misc/corporate.png
  23. BIN
      auto_database_backup/static/description/assets/misc/customer-support.png
  24. BIN
      auto_database_backup/static/description/assets/misc/cybrosys-logo.png
  25. BIN
      auto_database_backup/static/description/assets/misc/features.png
  26. BIN
      auto_database_backup/static/description/assets/misc/logo.png
  27. BIN
      auto_database_backup/static/description/assets/misc/pictures.png
  28. BIN
      auto_database_backup/static/description/assets/misc/pie-chart.png
  29. BIN
      auto_database_backup/static/description/assets/misc/right-arrow.png
  30. BIN
      auto_database_backup/static/description/assets/misc/star.png
  31. BIN
      auto_database_backup/static/description/assets/misc/support.png
  32. BIN
      auto_database_backup/static/description/assets/misc/whatsapp.png
  33. BIN
      auto_database_backup/static/description/assets/modules/1.png
  34. BIN
      auto_database_backup/static/description/assets/modules/2.png
  35. BIN
      auto_database_backup/static/description/assets/modules/3.png
  36. BIN
      auto_database_backup/static/description/assets/modules/4.png
  37. BIN
      auto_database_backup/static/description/assets/modules/5.png
  38. BIN
      auto_database_backup/static/description/assets/modules/6.png
  39. BIN
      auto_database_backup/static/description/assets/modules/approval_image.png
  40. BIN
      auto_database_backup/static/description/assets/modules/dynamic_image.png
  41. BIN
      auto_database_backup/static/description/assets/modules/list_view_image.png
  42. BIN
      auto_database_backup/static/description/assets/modules/multiple_ref_image.png
  43. BIN
      auto_database_backup/static/description/assets/modules/print_image.png
  44. BIN
      auto_database_backup/static/description/assets/modules/product_return_image.png
  45. BIN
      auto_database_backup/static/description/assets/screenshots/add.png
  46. BIN
      auto_database_backup/static/description/assets/screenshots/amazon_s3_7.png
  47. BIN
      auto_database_backup/static/description/assets/screenshots/amazon_s3_8.png
  48. BIN
      auto_database_backup/static/description/assets/screenshots/amazon_s3_pci1.png
  49. BIN
      auto_database_backup/static/description/assets/screenshots/amazon_s3_pic 2.png
  50. BIN
      auto_database_backup/static/description/assets/screenshots/amazons3_4.png
  51. BIN
      auto_database_backup/static/description/assets/screenshots/amazons3_5.png
  52. BIN
      auto_database_backup/static/description/assets/screenshots/amazons3_6.png
  53. BIN
      auto_database_backup/static/description/assets/screenshots/amazons3_7.png
  54. BIN
      auto_database_backup/static/description/assets/screenshots/amazons3_access.png
  55. BIN
      auto_database_backup/static/description/assets/screenshots/amazons3_pick 3.png
  56. BIN
      auto_database_backup/static/description/assets/screenshots/amazons3_signup.png
  57. BIN
      auto_database_backup/static/description/assets/screenshots/backup1.png
  58. BIN
      auto_database_backup/static/description/assets/screenshots/backup10.png
  59. BIN
      auto_database_backup/static/description/assets/screenshots/backup11.png
  60. BIN
      auto_database_backup/static/description/assets/screenshots/backup12.png
  61. BIN
      auto_database_backup/static/description/assets/screenshots/backup13.png
  62. BIN
      auto_database_backup/static/description/assets/screenshots/backup14.png
  63. BIN
      auto_database_backup/static/description/assets/screenshots/backup15.png
  64. BIN
      auto_database_backup/static/description/assets/screenshots/backup16.png
  65. BIN
      auto_database_backup/static/description/assets/screenshots/backup17.png
  66. BIN
      auto_database_backup/static/description/assets/screenshots/backup18.png
  67. BIN
      auto_database_backup/static/description/assets/screenshots/backup2.png
  68. BIN
      auto_database_backup/static/description/assets/screenshots/backup3.png
  69. BIN
      auto_database_backup/static/description/assets/screenshots/backup4.png
  70. BIN
      auto_database_backup/static/description/assets/screenshots/backup5.png
  71. BIN
      auto_database_backup/static/description/assets/screenshots/backup6.png
  72. BIN
      auto_database_backup/static/description/assets/screenshots/backup7.png
  73. BIN
      auto_database_backup/static/description/assets/screenshots/backup8.png
  74. BIN
      auto_database_backup/static/description/assets/screenshots/backup9.png
  75. BIN
      auto_database_backup/static/description/assets/screenshots/drive5.png
  76. BIN
      auto_database_backup/static/description/assets/screenshots/drive6.png
  77. BIN
      auto_database_backup/static/description/assets/screenshots/drive7.png
  78. BIN
      auto_database_backup/static/description/assets/screenshots/drive8.png
  79. BIN
      auto_database_backup/static/description/assets/screenshots/drive9.png
  80. BIN
      auto_database_backup/static/description/assets/screenshots/drop1.png
  81. BIN
      auto_database_backup/static/description/assets/screenshots/drop2.png
  82. BIN
      auto_database_backup/static/description/assets/screenshots/drop3.png
  83. BIN
      auto_database_backup/static/description/assets/screenshots/drop4.png
  84. BIN
      auto_database_backup/static/description/assets/screenshots/dropbox1.png
  85. BIN
      auto_database_backup/static/description/assets/screenshots/dropbox2.png
  86. BIN
      auto_database_backup/static/description/assets/screenshots/dropbox3.png
  87. BIN
      auto_database_backup/static/description/assets/screenshots/dropbox4.png
  88. BIN
      auto_database_backup/static/description/assets/screenshots/enter15.png
  89. BIN
      auto_database_backup/static/description/assets/screenshots/enter17.png
  90. BIN
      auto_database_backup/static/description/assets/screenshots/enter_1.png
  91. BIN
      auto_database_backup/static/description/assets/screenshots/enter_10.png
  92. BIN
      auto_database_backup/static/description/assets/screenshots/enter_11.png
  93. BIN
      auto_database_backup/static/description/assets/screenshots/enter_12.png
  94. BIN
      auto_database_backup/static/description/assets/screenshots/enter_13.png
  95. BIN
      auto_database_backup/static/description/assets/screenshots/enter_2.png
  96. BIN
      auto_database_backup/static/description/assets/screenshots/enter_22.png
  97. BIN
      auto_database_backup/static/description/assets/screenshots/enter_3.png
  98. BIN
      auto_database_backup/static/description/assets/screenshots/enter_4.png
  99. BIN
      auto_database_backup/static/description/assets/screenshots/enter_5.png
  100. BIN
      auto_database_backup/static/description/assets/screenshots/enter_6.png

33
auto_database_backup/README.rst

@ -1,30 +1,35 @@
Automatic Database Backup To Local Server, Remote Server, Google Drive And Dropbox .. image:: https://img.shields.io/badge/licence-LGPL--3-green.svg
================================================================================== :target: https://www.gnu.org/licenses/lgpl-3.0-standalone.html
:alt: License: LGPL-3
Automatic Database Backup To Local Server, Remote Server, Google Drive, Dropbox, Nextcloud and Amazon S3
========================================================================================================
* Generate Database Backups and store to multiple locations * Generate Database Backups and store to multiple locations
Installation Configuration
============ ============
- www.odoo.com/documentation/15.0/setup/install.html - www.odoo.com/documentation/15.0/setup/install.html
- Install our custom addon - Install our custom addon
License Company
------- -------
General Public License, Version 3 (LGPL v3). * `Cybrosys Techno Solutions <https://cybrosys.com/>`__
(https://www.odoo.com/documentation/user/15.0/legal/licenses/licenses.html)
Company License
------- -------
* 'Cybrosys Techno Solutions <https://cybrosys.com/>`__ General Public License, Version 3 (LGPL v3).
(https://www.gnu.org/licenses/lgpl-3.0-standalone.html)
Credits Credits
------- -------
* Developer: * Developer:
(v15) Midilaj @ Cybrosys (v15) Midilaj, Contact: odoo@cybrosys.com
(V15 Amazon S3,NextCloud-Features) Anfas Faisal K , Contact: odoo@cybrosys.com
Contacts Contacts
-------- --------
* Mail Contact : odoo@cybrosys.com * Mail Contact : odoo@cybrosys.com
* Website : https://cybrosys.com
Bug Tracker Bug Tracker
----------- -----------
@ -32,6 +37,9 @@ Bugs are tracked on GitHub Issues. In case of trouble, please check there if you
Maintainer Maintainer
========== ==========
.. image:: https://cybrosys.com/images/logo.png
:target: https://cybrosys.com
This module is maintained by Cybrosys Technologies. This module is maintained by Cybrosys Technologies.
For support and more information, please visit https://www.cybrosys.com For support and more information, please visit https://www.cybrosys.com
@ -39,4 +47,3 @@ For support and more information, please visit https://www.cybrosys.com
Further information Further information
=================== ===================
HTML Description: `<static/description/index.html>`__ HTML Description: `<static/description/index.html>`__

9
auto_database_backup/__init__.py

@ -1,9 +1,9 @@
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
############################################################################# ###############################################################################
# #
# Cybrosys Technologies Pvt. Ltd. # Cybrosys Technologies Pvt. Ltd.
# #
# Copyright (C) 2022-TODAY Cybrosys Technologies(<https://www.cybrosys.com>) # Copyright (C) 2023-TODAY Cybrosys Technologies(<https://www.cybrosys.com>)
# Author: Cybrosys Techno Solutions(<https://www.cybrosys.com>) # Author: Cybrosys Techno Solutions(<https://www.cybrosys.com>)
# #
# You can modify it under the terms of the GNU LESSER # You can modify it under the terms of the GNU LESSER
@ -17,7 +17,8 @@
# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE # You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE
# (LGPL v3) along with this program. # (LGPL v3) along with this program.
# If not, see <http://www.gnu.org/licenses/>. # If not, see <http://www.gnu.org/licenses/>.
#
###############################################################################
from . import controllers
from . import models from . import models
from . import wizard from . import wizard
from . import controllers

40
auto_database_backup/__manifest__.py

@ -1,9 +1,9 @@
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
############################################################################# ###############################################################################
# #
# Cybrosys Technologies Pvt. Ltd. # Cybrosys Technologies Pvt. Ltd.
# #
# Copyright (C) 2022-TODAY Cybrosys Technologies(<https://www.cybrosys.com>) # Copyright (C) 2023-TODAY Cybrosys Technologies(<https://www.cybrosys.com>)
# Author: Cybrosys Techno Solutions(<https://www.cybrosys.com>) # Author: Cybrosys Techno Solutions(<https://www.cybrosys.com>)
# #
# You can modify it under the terms of the GNU LESSER # You can modify it under the terms of the GNU LESSER
@ -18,29 +18,39 @@
# (LGPL v3) along with this program. # (LGPL v3) along with this program.
# If not, see <http://www.gnu.org/licenses/>. # If not, see <http://www.gnu.org/licenses/>.
# #
############################################################################# ###############################################################################
{ {
'name': "Automatic Database Backup To Local Server, Remote Server, Google Drive And Dropbox", 'name': "Automatic Database Backup To Local Server, Remote Server, Google "
'version': '15.0.3.1.2', "Drive, Dropbox, Onedrive, Nextcloud and Amazon S3",
'summary': """Generate automatic backup of databases and store to local, google drive, dropbox, onedrive or remote server""", 'version': '15.0.4.1.2',
'description': """This module has been developed for creating database backups automatically 'category': 'Discuss,Extra Tools',
and store it to the different locations.""", 'summary': """Generate automatic backup of databases and store to local,
google drive, dropbox, nextcloud, amazon S3, onedrive or
remote server""",
'description': """This module helps to generate backups of your databases
automatically on regular interval of times. The generated backups can be
stored into local storage, ftp server, sftp server, dropbox, Google Drive,
Onedrive Nextcloud and Amazon S3. User can enable auto remove option to
automatically delete old backups. User can enable email notification to
be notified about the success and failure of the backup generation and
storage.""",
'author': "Cybrosys Techno Solutions", 'author': "Cybrosys Techno Solutions",
'website': "https://www.cybrosys.com",
'company': 'Cybrosys Techno Solutions', 'company': 'Cybrosys Techno Solutions',
'maintainer': 'Cybrosys Techno Solutions', 'maintainer': 'Cybrosys Techno Solutions',
'category': 'Tools', 'website': "https://www.cybrosys.com",
'depends': ['base', 'mail'], 'depends': ['base', 'mail'],
'data': [ 'data': [
'security/ir.model.access.csv', 'security/ir.model.access.csv',
'data/data.xml', 'data/ir_cron_data.xml',
'data/mail_data.xml',
'views/db_backup_configure_views.xml', 'views/db_backup_configure_views.xml',
'wizard/dropbox_authcode_wizard_views.xml', 'wizard/dropbox_auth_code_views.xml',
], ],
'external_dependencies': {'python': ['dropbox']}, 'external_dependencies': {
'license': 'LGPL-3', 'python': ['dropbox', 'pyncclient', 'boto3', 'nextcloud-api-wrapper','paramiko'],
},
'images': ['static/description/banner.gif'], 'images': ['static/description/banner.gif'],
'license': 'LGPL-3',
'installable': True, 'installable': True,
'auto_install': False, 'auto_install': False,
'application': False, 'application': False,

9
auto_database_backup/controllers/__init__.py

@ -1,9 +1,9 @@
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
############################################################################# ###############################################################################
# #
# Cybrosys Technologies Pvt. Ltd. # Cybrosys Technologies Pvt. Ltd.
# #
# Copyright (C) 2022-TODAY Cybrosys Technologies(<https://www.cybrosys.com>) # Copyright (C) 2023-TODAY Cybrosys Technologies(<https://www.cybrosys.com>)
# Author: Cybrosys Techno Solutions(<https://www.cybrosys.com>) # Author: Cybrosys Techno Solutions(<https://www.cybrosys.com>)
# #
# You can modify it under the terms of the GNU LESSER # You can modify it under the terms of the GNU LESSER
@ -17,5 +17,6 @@
# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE # You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE
# (LGPL v3) along with this program. # (LGPL v3) along with this program.
# If not, see <http://www.gnu.org/licenses/>. # If not, see <http://www.gnu.org/licenses/>.
#
from . import main ###############################################################################
from . import auto_database_backup

32
auto_database_backup/controllers/main.py → auto_database_backup/controllers/auto_database_backup.py

@ -1,9 +1,9 @@
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
############################################################################# ###############################################################################
# #
# Cybrosys Technologies Pvt. Ltd. # Cybrosys Technologies Pvt. Ltd.
# #
# Copyright (C) 2022-TODAY Cybrosys Technologies(<https://www.cybrosys.com>) # Copyright (C) 2023-TODAY Cybrosys Technologies(<https://www.cybrosys.com>)
# Author: Cybrosys Techno Solutions(<https://www.cybrosys.com>) # Author: Cybrosys Techno Solutions(<https://www.cybrosys.com>)
# #
# You can modify it under the terms of the GNU LESSER # You can modify it under the terms of the GNU LESSER
@ -17,27 +17,37 @@
# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE # You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE
# (LGPL v3) along with this program. # (LGPL v3) along with this program.
# If not, see <http://www.gnu.org/licenses/>. # If not, see <http://www.gnu.org/licenses/>.
#
###############################################################################
import json import json
from odoo import http from odoo import http
from odoo.http import request from odoo.http import request
class OnedriveAuth(http.Controller): class OnedriveAuth(http.Controller):
"""Controller for handling OneDrive and google authentication
Methods:
oauth2callback: Callback route for OneDrive authentication
gdrive_oauth2callback: Callback route for Google Drive authentication
"""
@http.route('/onedrive/authentication', type='http', auth="public") @http.route('/onedrive/authentication', type='http', auth="public")
def oauth2callback(self, **kw): def oauth2callback(self, **kw):
"""Callback route for OneDrive authentication"""
state = json.loads(kw['state']) state = json.loads(kw['state'])
backup_config = request.env['db.backup.configure'].sudo().browse(state.get('backup_config_id')) backup_config = request.env['db.backup.configure'].sudo().browse(
state.get('backup_config_id'))
backup_config.get_onedrive_tokens(kw.get('code')) backup_config.get_onedrive_tokens(kw.get('code'))
url_return = state.get('url_return') backup_config.hide_active = True
return request.redirect(url_return) backup_config.active = True
return request.redirect(state.get('url_return'))
@http.route('/google_drive/authentication', type='http', auth="public") @http.route('/google_drive/authentication', type='http', auth="public")
def gdrive_oauth2callback(self, **kw): def gdrive_oauth2callback(self, **kw):
"""Callback route for Google Drive authentication"""
state = json.loads(kw['state']) state = json.loads(kw['state'])
backup_config = request.env['db.backup.configure'].sudo().browse(state.get('backup_config_id')) backup_config = request.env['db.backup.configure'].sudo().browse(
state.get('backup_config_id'))
backup_config.get_gdrive_tokens(kw.get('code')) backup_config.get_gdrive_tokens(kw.get('code'))
url_return = state.get('url_return') backup_config.hide_active = True
return request.redirect(url_return) backup_config.active = True
return request.redirect(state.get('url_return'))

16
auto_database_backup/data/ir_cron_data.xml

@ -0,0 +1,16 @@
<?xml version="1.0" encoding="UTF-8" ?>
<odoo>
<data noupdate="1">
<!-- Schedule action for generating automatic database backup-->
<record id="ir_cron_auto_db_backup" model="ir.cron">
<field name="name">Backup : Automatic Database Backup</field>
<field name="model_id" ref="model_db_backup_configure"/>
<field name="state">code</field>
<field name="code">model._schedule_auto_backup()</field>
<field name="interval_number">1</field>
<field name="interval_type">days</field>
<field name="numbercall">-1</field>
<field name="active">True</field>
</record>
</data>
</odoo>

50
auto_database_backup/data/data.xml → auto_database_backup/data/mail_data.xml

@ -1,23 +1,6 @@
<?xml version="1.0" encoding="utf-8" ?> <?xml version="1.0" encoding="utf-8" ?>
<odoo> <odoo>
<data noupdate="1"> <data noupdate="1">
<!-- Schedule action for generating automatic database backup-->
<record id="ir_cron_auto_db_backup" model="ir.cron">
<field name="name">Backup : Automatic Database Backup</field>
<field name="model_id" ref="model_db_backup_configure"/>
<field name="state">code</field>
<field name="code">model._schedule_auto_backup()</field>
<field name="interval_number">1</field>
<field name="interval_type">days</field>
<field name="numbercall">-1</field>
<field name="active">True</field>
</record>
</data>
<data>
<!-- Database backup operation Successful email template--> <!-- Database backup operation Successful email template-->
<record id="mail_template_data_db_backup_successful" model="mail.template"> <record id="mail_template_data_db_backup_successful" model="mail.template">
<field name="name">Database Backup: Notification Successful</field> <field name="name">Database Backup: Notification Successful</field>
@ -54,7 +37,12 @@
<t t-elif="object.backup_destination == 'onedrive'"> <t t-elif="object.backup_destination == 'onedrive'">
<i>Onedrive</i> <i>Onedrive</i>
</t> </t>
. <t t-elif="object.backup_destination == 'amazon_s3'">
<i>Amazon S3</i>
</t>
<t t-elif="object.backup_destination == 'next_cloud'">
<i>NextCloud</i>
</t>
<br/> <br/>
<br/> <br/>
Database Name: Database Name:
@ -79,6 +67,12 @@
<t t-elif="object.backup_destination == 'onedrive'"> <t t-elif="object.backup_destination == 'onedrive'">
Onedrive Onedrive
</t> </t>
<t t-elif="object.backup_destination == 'amazon_s3'">
Amazon S3
</t>
<t t-elif="object.backup_destination == 'next_cloud'">
NextCloud
</t>
<t t-if="object.backup_destination in ('local', 'ftp', 'sftp', 'dropbox')"> <t t-if="object.backup_destination in ('local', 'ftp', 'sftp', 'dropbox')">
<br/> <br/>
Backup Path: Backup Path:
@ -94,6 +88,12 @@
<t t-elif="object.backup_destination == 'dropbox'"> <t t-elif="object.backup_destination == 'dropbox'">
<t t-out="object.dropbox_folder"/> <t t-out="object.dropbox_folder"/>
</t> </t>
<t t-elif="object.backup_destination == 'amazon_s3'">
<t t-out="object.aws_folder_name"/>
</t>
<t t-elif="object.backup_destination == 'next_cloud'">
<t t-out="object.nextcloud_folder_key"/>
</t>
</t> </t>
<br/> <br/>
Backup Type: Backup Type:
@ -106,7 +106,6 @@
</div> </div>
</field> </field>
</record> </record>
<!-- Database backup operation failed email templated--> <!-- Database backup operation failed email templated-->
<record id="mail_template_data_db_backup_failed" model="mail.template"> <record id="mail_template_data_db_backup_failed" model="mail.template">
<field name="name">Database Backup: Notification Failed</field> <field name="name">Database Backup: Notification Failed</field>
@ -148,6 +147,12 @@
<t t-elif="object.backup_destination == 'onedrive'"> <t t-elif="object.backup_destination == 'onedrive'">
Onedrive Onedrive
</t> </t>
<t t-elif="object.backup_destination == 'amazon_s3'">
Amazon S3
</t>
<t t-elif="object.backup_destination == 'next_cloud'">
NextCloud
</t>
<t t-if="object.backup_destination in ('local', 'ftp', 'sftp', 'dropbox')"> <t t-if="object.backup_destination in ('local', 'ftp', 'sftp', 'dropbox')">
<br/> <br/>
Backup Path: Backup Path:
@ -163,6 +168,12 @@
<t t-elif="object.backup_destination == 'dropbox'"> <t t-elif="object.backup_destination == 'dropbox'">
<t t-out="object.dropbox_folder"/> <t t-out="object.dropbox_folder"/>
</t> </t>
<t t-elif="object.backup_destination == 'amazon_s3'">
<t t-out="object.aws_folder_name"/>
</t>
<t t-elif="object.backup_destination == 'next_cloud'">
<t t-out="object.nextcloud_folder_key"/>
</t>
</t> </t>
<br/> <br/>
Backup Type: <t t-out="object.backup_format"/> Backup Type: <t t-out="object.backup_format"/>
@ -177,5 +188,4 @@
</field> </field>
</record> </record>
</data> </data>
</odoo> </odoo>

4
auto_database_backup/doc/RELEASE_NOTES.md

@ -20,3 +20,7 @@
#### ADD #### ADD
- Google Drive authentication updated. - Google Drive authentication updated.
#### 16.10.2023
#### Version 15.0.4.1.2
#### ADD
- Nextcloud and Amazon S3 integration added. Backup can be stored into Nextcloud and Amazon S3.

7
auto_database_backup/models/__init__.py

@ -1,9 +1,9 @@
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
############################################################################# ###############################################################################
# #
# Cybrosys Technologies Pvt. Ltd. # Cybrosys Technologies Pvt. Ltd.
# #
# Copyright (C) 2022-TODAY Cybrosys Technologies(<https://www.cybrosys.com>) # Copyright (C) 2023-TODAY Cybrosys Technologies(<https://www.cybrosys.com>)
# Author: Cybrosys Techno Solutions(<https://www.cybrosys.com>) # Author: Cybrosys Techno Solutions(<https://www.cybrosys.com>)
# #
# You can modify it under the terms of the GNU LESSER # You can modify it under the terms of the GNU LESSER
@ -17,5 +17,6 @@
# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE # You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE
# (LGPL v3) along with this program. # (LGPL v3) along with this program.
# If not, see <http://www.gnu.org/licenses/>. # If not, see <http://www.gnu.org/licenses/>.
#
###############################################################################
from . import db_backup_configure from . import db_backup_configure

866
auto_database_backup/models/db_backup_configure.py

File diff suppressed because it is too large

4
auto_database_backup/security/ir.model.access.csv

@ -1,3 +1,3 @@
id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink
access_db_backup_configure,access.db.backup.configure,model_db_backup_configure,base.group_user,1,1,1,1 access_db_backup_configure_user,access.db.backup.configure.user,model_db_backup_configure,base.group_user,1,1,1,1
access_dropbox_auth_wizard,access.dropbox.auth.wizard,model_dropbox_auth_wizard,base.group_user,1,1,1,1 access_dropbox_auth_code_user,access.dropbox.auth.code.user,model_dropbox_auth_code,base.group_user,1,1,1,1

1 id name model_id:id group_id:id perm_read perm_write perm_create perm_unlink
2 access_db_backup_configure access_db_backup_configure_user access.db.backup.configure access.db.backup.configure.user model_db_backup_configure base.group_user 1 1 1 1
3 access_dropbox_auth_wizard access_dropbox_auth_code_user access.dropbox.auth.wizard access.dropbox.auth.code.user model_dropbox_auth_wizard model_dropbox_auth_code base.group_user 1 1 1 1

BIN
auto_database_backup/static/description/assets/icons/f-alarm.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.5 KiB

BIN
auto_database_backup/static/description/assets/icons/f-backup.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.6 KiB

BIN
auto_database_backup/static/description/assets/icons/f-dropbox.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.7 KiB

BIN
auto_database_backup/static/description/assets/icons/f-google-drive.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.1 KiB

BIN
auto_database_backup/static/description/assets/icons/f-remove-database.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.6 KiB

BIN
auto_database_backup/static/description/assets/icons/f-sftp.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.0 KiB

BIN
auto_database_backup/static/description/assets/icons/onedrive.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 9.3 KiB

BIN
auto_database_backup/static/description/assets/misc/categories.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

BIN
auto_database_backup/static/description/assets/misc/check-box.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

BIN
auto_database_backup/static/description/assets/misc/compass.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

BIN
auto_database_backup/static/description/assets/misc/corporate.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

BIN
auto_database_backup/static/description/assets/misc/customer-support.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 KiB

BIN
auto_database_backup/static/description/assets/misc/cybrosys-logo.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.4 KiB

BIN
auto_database_backup/static/description/assets/misc/features.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 589 B

BIN
auto_database_backup/static/description/assets/misc/logo.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.4 KiB

BIN
auto_database_backup/static/description/assets/misc/pictures.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

BIN
auto_database_backup/static/description/assets/misc/pie-chart.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.3 KiB

BIN
auto_database_backup/static/description/assets/misc/right-arrow.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 967 B

BIN
auto_database_backup/static/description/assets/misc/star.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

BIN
auto_database_backup/static/description/assets/misc/support.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.8 KiB

BIN
auto_database_backup/static/description/assets/misc/whatsapp.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.0 KiB

BIN
auto_database_backup/static/description/assets/modules/1.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 60 KiB

After

Width:  |  Height:  |  Size: 33 KiB

BIN
auto_database_backup/static/description/assets/modules/2.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 58 KiB

After

Width:  |  Height:  |  Size: 33 KiB

BIN
auto_database_backup/static/description/assets/modules/3.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 60 KiB

After

Width:  |  Height:  |  Size: 32 KiB

BIN
auto_database_backup/static/description/assets/modules/4.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 57 KiB

After

Width:  |  Height:  |  Size: 33 KiB

BIN
auto_database_backup/static/description/assets/modules/5.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 57 KiB

After

Width:  |  Height:  |  Size: 65 KiB

BIN
auto_database_backup/static/description/assets/modules/6.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 59 KiB

After

Width:  |  Height:  |  Size: 65 KiB

BIN
auto_database_backup/static/description/assets/modules/approval_image.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 51 KiB

BIN
auto_database_backup/static/description/assets/modules/dynamic_image.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 58 KiB

BIN
auto_database_backup/static/description/assets/modules/list_view_image.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 58 KiB

BIN
auto_database_backup/static/description/assets/modules/multiple_ref_image.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 59 KiB

BIN
auto_database_backup/static/description/assets/modules/print_image.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 59 KiB

BIN
auto_database_backup/static/description/assets/modules/product_return_image.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 58 KiB

BIN
auto_database_backup/static/description/assets/screenshots/add.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 149 KiB

BIN
auto_database_backup/static/description/assets/screenshots/amazon_s3_7.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 73 KiB

BIN
auto_database_backup/static/description/assets/screenshots/amazon_s3_8.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 88 KiB

BIN
auto_database_backup/static/description/assets/screenshots/amazon_s3_pci1.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 150 KiB

BIN
auto_database_backup/static/description/assets/screenshots/amazon_s3_pic 2.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 39 KiB

BIN
auto_database_backup/static/description/assets/screenshots/amazons3_4.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 127 KiB

BIN
auto_database_backup/static/description/assets/screenshots/amazons3_5.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 44 KiB

BIN
auto_database_backup/static/description/assets/screenshots/amazons3_6.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 89 KiB

BIN
auto_database_backup/static/description/assets/screenshots/amazons3_7.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 83 KiB

BIN
auto_database_backup/static/description/assets/screenshots/amazons3_access.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 107 KiB

BIN
auto_database_backup/static/description/assets/screenshots/amazons3_pick 3.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 171 KiB

BIN
auto_database_backup/static/description/assets/screenshots/amazons3_signup.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 190 KiB

BIN
auto_database_backup/static/description/assets/screenshots/backup1.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 126 KiB

After

Width:  |  Height:  |  Size: 129 KiB

BIN
auto_database_backup/static/description/assets/screenshots/backup10.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 52 KiB

After

Width:  |  Height:  |  Size: 43 KiB

BIN
auto_database_backup/static/description/assets/screenshots/backup11.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 56 KiB

After

Width:  |  Height:  |  Size: 63 KiB

BIN
auto_database_backup/static/description/assets/screenshots/backup12.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 56 KiB

After

Width:  |  Height:  |  Size: 40 KiB

BIN
auto_database_backup/static/description/assets/screenshots/backup13.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 120 KiB

After

Width:  |  Height:  |  Size: 35 KiB

BIN
auto_database_backup/static/description/assets/screenshots/backup14.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 65 KiB

After

Width:  |  Height:  |  Size: 38 KiB

BIN
auto_database_backup/static/description/assets/screenshots/backup15.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 128 KiB

BIN
auto_database_backup/static/description/assets/screenshots/backup16.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 51 KiB

BIN
auto_database_backup/static/description/assets/screenshots/backup17.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 56 KiB

BIN
auto_database_backup/static/description/assets/screenshots/backup18.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 56 KiB

BIN
auto_database_backup/static/description/assets/screenshots/backup2.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 39 KiB

After

Width:  |  Height:  |  Size: 33 KiB

BIN
auto_database_backup/static/description/assets/screenshots/backup3.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 49 KiB

After

Width:  |  Height:  |  Size: 40 KiB

BIN
auto_database_backup/static/description/assets/screenshots/backup4.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 53 KiB

After

Width:  |  Height:  |  Size: 37 KiB

BIN
auto_database_backup/static/description/assets/screenshots/backup5.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 60 KiB

After

Width:  |  Height:  |  Size: 49 KiB

BIN
auto_database_backup/static/description/assets/screenshots/backup6.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 46 KiB

After

Width:  |  Height:  |  Size: 49 KiB

BIN
auto_database_backup/static/description/assets/screenshots/backup7.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 50 KiB

After

Width:  |  Height:  |  Size: 65 KiB

BIN
auto_database_backup/static/description/assets/screenshots/backup8.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 75 KiB

After

Width:  |  Height:  |  Size: 50 KiB

BIN
auto_database_backup/static/description/assets/screenshots/backup9.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 44 KiB

After

Width:  |  Height:  |  Size: 39 KiB

BIN
auto_database_backup/static/description/assets/screenshots/drive5.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 95 KiB

After

Width:  |  Height:  |  Size: 106 KiB

BIN
auto_database_backup/static/description/assets/screenshots/drive6.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 123 KiB

BIN
auto_database_backup/static/description/assets/screenshots/drive7.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 123 KiB

BIN
auto_database_backup/static/description/assets/screenshots/drive8.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 65 KiB

BIN
auto_database_backup/static/description/assets/screenshots/drive9.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 126 KiB

BIN
auto_database_backup/static/description/assets/screenshots/drop1.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 28 KiB

BIN
auto_database_backup/static/description/assets/screenshots/drop2.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 78 KiB

BIN
auto_database_backup/static/description/assets/screenshots/drop3.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 87 KiB

BIN
auto_database_backup/static/description/assets/screenshots/drop4.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 118 KiB

BIN
auto_database_backup/static/description/assets/screenshots/dropbox1.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 101 KiB

BIN
auto_database_backup/static/description/assets/screenshots/dropbox2.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 102 KiB

BIN
auto_database_backup/static/description/assets/screenshots/dropbox3.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 116 KiB

BIN
auto_database_backup/static/description/assets/screenshots/dropbox4.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 100 KiB

BIN
auto_database_backup/static/description/assets/screenshots/enter15.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 41 KiB

BIN
auto_database_backup/static/description/assets/screenshots/enter17.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 40 KiB

BIN
auto_database_backup/static/description/assets/screenshots/enter_1.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 108 KiB

BIN
auto_database_backup/static/description/assets/screenshots/enter_10.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 52 KiB

BIN
auto_database_backup/static/description/assets/screenshots/enter_11.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 40 KiB

BIN
auto_database_backup/static/description/assets/screenshots/enter_12.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 40 KiB

BIN
auto_database_backup/static/description/assets/screenshots/enter_13.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 40 KiB

BIN
auto_database_backup/static/description/assets/screenshots/enter_2.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 23 KiB

BIN
auto_database_backup/static/description/assets/screenshots/enter_22.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 40 KiB

BIN
auto_database_backup/static/description/assets/screenshots/enter_3.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 30 KiB

BIN
auto_database_backup/static/description/assets/screenshots/enter_4.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 60 KiB

BIN
auto_database_backup/static/description/assets/screenshots/enter_5.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 55 KiB

BIN
auto_database_backup/static/description/assets/screenshots/enter_6.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 28 KiB

Some files were not shown because too many files changed in this diff

Loading…
Cancel
Save