2020-08-08 06:26:43 +00:00
< table class = "overview" id = "ajax-backup-table" >
< tr class = "overviewHead" >
< td class = "padding10 first-collumn" > Servers< / td >
< td class = "padding10" > Remote server< / td >
< td class = "padding10" > Remote folder< / td >
< td class = "padding10" > Backup type< / td >
< td class = "padding10" > Period time< / td >
< td class = "padding10" > Credentials< / td >
< td class = "padding10" > Description< / td >
2021-07-07 07:30:09 +00:00
< td style = "margin-left: 5px;" > < / td >
2020-08-08 06:26:43 +00:00
< td > < / td >
< / tr >
{% for b in backups %}
{% for s in servers %}
2021-08-02 08:19:22 +00:00
{% if b.server in s.2 %}
< tr id = "backup-table-{{b.id}}" >
2020-01-11 21:16:27 +00:00
< td class = "padding10 first-collumn" >
2021-08-02 08:19:22 +00:00
{% set id = 'backup-server-' + b.id|string() %}
{{ copy_to_clipboard(id=id, value=b.server) }}
2020-01-11 21:16:27 +00:00
< / td >
< td >
2021-08-02 08:19:22 +00:00
{{ input('backup-rserver-'+b.id|string(), value=b.rhost, size='14') }}
2020-01-11 21:16:27 +00:00
< / td >
< td >
2021-08-02 08:19:22 +00:00
{{ input('backup-rpath-'+b.id|string(), value=b.rpath) }}
2020-01-11 21:16:27 +00:00
< / td >
< td >
{% set values = {'backup':'backup','synchronization':'synchronization'} %}
2021-08-02 08:19:22 +00:00
{{ select('backup-type-'+b.id|string(), values=values, selected=b.backup_type, required='required', class='force_close') }}
2020-01-11 21:16:27 +00:00
< / td >
< td >
2020-08-08 06:26:43 +00:00
{% set values = {'hourly':'hourly','daily':'daily','weekly':'weekly', 'monthly':'monthly'} %}
2021-08-02 08:19:22 +00:00
{{ select('backup-time-'+b.id|string(), values=values, selected=b.time, required='required', class='force_close') }}
2020-01-11 21:16:27 +00:00
< / td >
< td >
2021-08-02 08:19:22 +00:00
< select id = "backup-credentials-{{b.id}}" required >
2020-01-11 21:16:27 +00:00
< option disabled selected > Choose credentials< / option >
{% for ssh in sshs %}
2021-08-02 08:19:22 +00:00
{% if ssh.enable == 1 %}
{% if ssh.id == b.cred %}
< option value = "{{ssh.id}}" selected = "selected" > {{ssh.name}}< / option >
2020-01-11 21:16:27 +00:00
{% else %}
2021-08-02 08:19:22 +00:00
< option value = "{{ssh.id}}" > {{ssh.name}}< / option >
2020-01-11 21:16:27 +00:00
{% endif %}
{% endif %}
{% endfor %}
< / select >
< / td >
< td >
2021-08-02 08:19:22 +00:00
{% if b.description is not none %}
{{ input('backup-description-'+b.id|string(), value=b.description) }}
2020-01-11 21:16:27 +00:00
{% else %}
2021-08-02 08:19:22 +00:00
{{ input('backup-description-'+b.id|string()) }}
2020-01-11 21:16:27 +00:00
{% endif %}
< / td >
< td >
2021-08-02 08:19:22 +00:00
< a class = "add" onclick = "cloneBackup({{b.id}})" id = "clone-backup{{b.id}}" title = "Clone {{b.server}}" style = "cursor: pointer;" > < / a >
2020-01-11 21:16:27 +00:00
< / td >
< td >
2021-08-02 08:19:22 +00:00
< a class = "delete" onclick = "confirmDeleteBackup({{b.id}})" title = "Delete backup {{b.server}}" style = "cursor: pointer;" > < / a >
2020-08-08 06:26:43 +00:00
< / td >
< / tr >
{% endif %}
{% endfor %}
{% endfor %}
< / table >
2021-07-07 07:30:09 +00:00
< br / > < span class = "add-button" title = "Add a new backup job" id = "add-backup-button" > + Add backup< / span >
2020-08-08 06:26:43 +00:00
< br / > < br / >
< div id = "ajax-backup" > < / div >
2021-08-31 08:31:55 +00:00
< div class = "add-note alert addName alert-info" style = "width: inherit; margin-right: 15px;" >
2021-07-21 04:57:58 +00:00
You can read the description of all parameters < a href = "https://roxy-wi.org/description.py?description=backup" title = "Backup description" target = "_blank" > here< / a >
2020-08-08 06:26:43 +00:00
< / div >