342 lines
No EOL
9.9 KiB
HTML
342 lines
No EOL
9.9 KiB
HTML
<!-- title: Dropbox Backup -->
|
|
|
|
|
|
|
|
|
|
|
|
<div class="dev-header">
|
|
|
|
<a class="btn btn-default btn-sm" disabled style="margin-bottom: 10px;">
|
|
Version 6.x.x</a>
|
|
|
|
|
|
<a class="btn btn-default btn-sm" href="https://github.com/frappe/frappe/tree/develop/frappe/integrations/doctype/dropbox_backup"
|
|
target="_blank" style="margin-left: 10px; margin-bottom: 10px;"><i class="octicon octicon-mark-github"></i> Source</a>
|
|
|
|
</div>
|
|
|
|
<span class="label label-info">Single</span>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<h3>Fields</h3>
|
|
|
|
<table class="table table-bordered">
|
|
<thead>
|
|
<tr>
|
|
<th style="width: 5%">Sr</th>
|
|
<th style="width: 25%">Fieldname</th>
|
|
<th style="width: 20%">Type</th>
|
|
<th style="width: 25%">Label</th>
|
|
<th style="width: 25%">Options</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
|
|
<tr >
|
|
<td>1</td>
|
|
<td ><code>send_backups_to_dropbox</code></td>
|
|
<td >
|
|
Check</td>
|
|
<td >
|
|
Send Backups to Dropbox
|
|
|
|
</td>
|
|
<td></td>
|
|
</tr>
|
|
|
|
<tr >
|
|
<td>2</td>
|
|
<td ><code>upload_backups_to_dropbox</code></td>
|
|
<td >
|
|
Select</td>
|
|
<td >
|
|
Upload Frequency
|
|
|
|
</td>
|
|
<td>
|
|
<pre>Daily
|
|
Weekly</pre>
|
|
</td>
|
|
</tr>
|
|
|
|
<tr >
|
|
<td>3</td>
|
|
<td ><code>send_notifications_to</code></td>
|
|
<td >
|
|
Data</td>
|
|
<td >
|
|
Send Notifications To
|
|
|
|
</td>
|
|
<td></td>
|
|
</tr>
|
|
|
|
<tr >
|
|
<td>4</td>
|
|
<td ><code>dropbox_access_key</code></td>
|
|
<td >
|
|
Data</td>
|
|
<td class="text-muted" title="Hidden">
|
|
Dropbox Access Key
|
|
|
|
</td>
|
|
<td></td>
|
|
</tr>
|
|
|
|
<tr >
|
|
<td>5</td>
|
|
<td ><code>dropbox_access_secret</code></td>
|
|
<td >
|
|
Data</td>
|
|
<td class="text-muted" title="Hidden">
|
|
Dropbox Access Secret
|
|
|
|
</td>
|
|
<td></td>
|
|
</tr>
|
|
|
|
<tr >
|
|
<td>6</td>
|
|
<td ><code>dropbox_access_allowed</code></td>
|
|
<td >
|
|
Data</td>
|
|
<td class="text-muted" title="Hidden">
|
|
Dropbox Access Allowed
|
|
|
|
</td>
|
|
<td></td>
|
|
</tr>
|
|
|
|
<tr >
|
|
<td>7</td>
|
|
<td ><code>allow_dropbox_access</code></td>
|
|
<td >
|
|
Button</td>
|
|
<td >
|
|
Allow Dropbox Access
|
|
|
|
</td>
|
|
<td></td>
|
|
</tr>
|
|
|
|
</tbody>
|
|
</table>
|
|
|
|
|
|
<hr>
|
|
<h3>Controller</h3>
|
|
<h4>frappe.integrations.doctype.dropbox_backup.dropbox_backup</h4>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<h3 style="font-weight: normal;">Class <b>DropboxBackup</b></h3>
|
|
|
|
<p style="padding-left: 30px;"><i>Inherits from frappe.model.document.Document</i></h4>
|
|
|
|
<div class="docs-attr-desc"><p></p>
|
|
</div>
|
|
<div style="padding-left: 30px;">
|
|
|
|
</div>
|
|
<hr>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<p class="docs-attr-name">
|
|
<a name="frappe.integrations.doctype.dropbox_backup.dropbox_backup.backup_to_dropbox" href="#frappe.integrations.doctype.dropbox_backup.dropbox_backup.backup_to_dropbox" class="text-muted small">
|
|
<i class="icon-link small" style="color: #ccc;"></i></a>
|
|
frappe.integrations.doctype.dropbox_backup.dropbox_backup.<b>backup_to_dropbox</b>
|
|
<i class="text-muted">()</i>
|
|
</p>
|
|
<div class="docs-attr-desc"><p><span class="text-muted">No docs</span></p>
|
|
</div>
|
|
<br>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<p><span class="label label-info">Public API</span>
|
|
<br><code>/api/method/frappe.integrations.doctype.dropbox_backup.dropbox_backup.dropbox_callback</code>
|
|
</p>
|
|
<p class="docs-attr-name">
|
|
<a name="frappe.integrations.doctype.dropbox_backup.dropbox_backup.dropbox_callback" href="#frappe.integrations.doctype.dropbox_backup.dropbox_backup.dropbox_callback" class="text-muted small">
|
|
<i class="icon-link small" style="color: #ccc;"></i></a>
|
|
frappe.integrations.doctype.dropbox_backup.dropbox_backup.<b>dropbox_callback</b>
|
|
<i class="text-muted">(oauth_token=None, not_approved=False)</i>
|
|
</p>
|
|
<div class="docs-attr-desc"><p><span class="text-muted">No docs</span></p>
|
|
</div>
|
|
<br>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<p><span class="label label-info">Public API</span>
|
|
<br><code>/api/method/frappe.integrations.doctype.dropbox_backup.dropbox_backup.get_dropbox_authorize_url</code>
|
|
</p>
|
|
<p class="docs-attr-name">
|
|
<a name="frappe.integrations.doctype.dropbox_backup.dropbox_backup.get_dropbox_authorize_url" href="#frappe.integrations.doctype.dropbox_backup.dropbox_backup.get_dropbox_authorize_url" class="text-muted small">
|
|
<i class="icon-link small" style="color: #ccc;"></i></a>
|
|
frappe.integrations.doctype.dropbox_backup.dropbox_backup.<b>get_dropbox_authorize_url</b>
|
|
<i class="text-muted">()</i>
|
|
</p>
|
|
<div class="docs-attr-desc"><p><span class="text-muted">No docs</span></p>
|
|
</div>
|
|
<br>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<p class="docs-attr-name">
|
|
<a name="frappe.integrations.doctype.dropbox_backup.dropbox_backup.get_dropbox_session" href="#frappe.integrations.doctype.dropbox_backup.dropbox_backup.get_dropbox_session" class="text-muted small">
|
|
<i class="icon-link small" style="color: #ccc;"></i></a>
|
|
frappe.integrations.doctype.dropbox_backup.dropbox_backup.<b>get_dropbox_session</b>
|
|
<i class="text-muted">()</i>
|
|
</p>
|
|
<div class="docs-attr-desc"><p><span class="text-muted">No docs</span></p>
|
|
</div>
|
|
<br>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<p class="docs-attr-name">
|
|
<a name="frappe.integrations.doctype.dropbox_backup.dropbox_backup.send_email" href="#frappe.integrations.doctype.dropbox_backup.dropbox_backup.send_email" class="text-muted small">
|
|
<i class="icon-link small" style="color: #ccc;"></i></a>
|
|
frappe.integrations.doctype.dropbox_backup.dropbox_backup.<b>send_email</b>
|
|
<i class="text-muted">(success, service_name, error_status=None)</i>
|
|
</p>
|
|
<div class="docs-attr-desc"><p><span class="text-muted">No docs</span></p>
|
|
</div>
|
|
<br>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<p class="docs-attr-name">
|
|
<a name="frappe.integrations.doctype.dropbox_backup.dropbox_backup.take_backups_daily" href="#frappe.integrations.doctype.dropbox_backup.dropbox_backup.take_backups_daily" class="text-muted small">
|
|
<i class="icon-link small" style="color: #ccc;"></i></a>
|
|
frappe.integrations.doctype.dropbox_backup.dropbox_backup.<b>take_backups_daily</b>
|
|
<i class="text-muted">()</i>
|
|
</p>
|
|
<div class="docs-attr-desc"><p><span class="text-muted">No docs</span></p>
|
|
</div>
|
|
<br>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<p><span class="label label-info">Public API</span>
|
|
<br><code>/api/method/frappe.integrations.doctype.dropbox_backup.dropbox_backup.take_backups_dropbox</code>
|
|
</p>
|
|
<p class="docs-attr-name">
|
|
<a name="frappe.integrations.doctype.dropbox_backup.dropbox_backup.take_backups_dropbox" href="#frappe.integrations.doctype.dropbox_backup.dropbox_backup.take_backups_dropbox" class="text-muted small">
|
|
<i class="icon-link small" style="color: #ccc;"></i></a>
|
|
frappe.integrations.doctype.dropbox_backup.dropbox_backup.<b>take_backups_dropbox</b>
|
|
<i class="text-muted">()</i>
|
|
</p>
|
|
<div class="docs-attr-desc"><p><span class="text-muted">No docs</span></p>
|
|
</div>
|
|
<br>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<p class="docs-attr-name">
|
|
<a name="frappe.integrations.doctype.dropbox_backup.dropbox_backup.take_backups_if" href="#frappe.integrations.doctype.dropbox_backup.dropbox_backup.take_backups_if" class="text-muted small">
|
|
<i class="icon-link small" style="color: #ccc;"></i></a>
|
|
frappe.integrations.doctype.dropbox_backup.dropbox_backup.<b>take_backups_if</b>
|
|
<i class="text-muted">(freq)</i>
|
|
</p>
|
|
<div class="docs-attr-desc"><p><span class="text-muted">No docs</span></p>
|
|
</div>
|
|
<br>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<p class="docs-attr-name">
|
|
<a name="frappe.integrations.doctype.dropbox_backup.dropbox_backup.take_backups_weekly" href="#frappe.integrations.doctype.dropbox_backup.dropbox_backup.take_backups_weekly" class="text-muted small">
|
|
<i class="icon-link small" style="color: #ccc;"></i></a>
|
|
frappe.integrations.doctype.dropbox_backup.dropbox_backup.<b>take_backups_weekly</b>
|
|
<i class="text-muted">()</i>
|
|
</p>
|
|
<div class="docs-attr-desc"><p><span class="text-muted">No docs</span></p>
|
|
</div>
|
|
<br>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<p class="docs-attr-name">
|
|
<a name="frappe.integrations.doctype.dropbox_backup.dropbox_backup.upload_file_to_dropbox" href="#frappe.integrations.doctype.dropbox_backup.dropbox_backup.upload_file_to_dropbox" class="text-muted small">
|
|
<i class="icon-link small" style="color: #ccc;"></i></a>
|
|
frappe.integrations.doctype.dropbox_backup.dropbox_backup.<b>upload_file_to_dropbox</b>
|
|
<i class="text-muted">(filename, folder, dropbox_client)</i>
|
|
</p>
|
|
<div class="docs-attr-desc"><p><span class="text-muted">No docs</span></p>
|
|
</div>
|
|
<br>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<p class="docs-attr-name">
|
|
<a name="frappe.integrations.doctype.dropbox_backup.dropbox_backup.upload_from_folder" href="#frappe.integrations.doctype.dropbox_backup.dropbox_backup.upload_from_folder" class="text-muted small">
|
|
<i class="icon-link small" style="color: #ccc;"></i></a>
|
|
frappe.integrations.doctype.dropbox_backup.dropbox_backup.<b>upload_from_folder</b>
|
|
<i class="text-muted">(path, dropbox_folder, dropbox_client, did_not_upload, error_log)</i>
|
|
</p>
|
|
<div class="docs-attr-desc"><p><span class="text-muted">No docs</span></p>
|
|
</div>
|
|
<br>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!-- autodoc -->
|
|
<!-- jinja -->
|
|
<!-- static --> |