{# vim: ts=2:sw=2:et:ft=twig #} {% macro settings(cfg_key, section, conf, backups, bakmgr, lang) %} {% from 'modules/backup_mgr/macros.html' import show_switch, help_popover, browser_widget, selected_total_widget, db_custom_select_widget, error_box %} {% if conf.hour == 0 %} {# midnight #}{% set hour = 12 %}{% set meridiem = 'AM' %} {% elseif conf.hour == 12 %} {# noon #}{% set hour = 12 %}{% set meridiem = 'PM' %} {% elseif conf.hour > 12 %} {# past noon #}{% set hour = conf.hour - 12 %}{% set meridiem = 'PM' %} {% else %} {# before noon #}{% set hour = conf.hour %}{% set meridiem = 'AM' %} {% endif %}
Backups Available
{{ snap.time }} {% if cfg_key == 'homedir' %} Restore {% else %} Restore {% endif %}
{% endfor %}Enable or Disable Backups
{{ show_switch("#{cfg_key}_enabled", conf.enable) }} {% if bakmgr.is_child %} {{ help_popover(lang.ALT_DIR_RESTORE_CHILD) }} {% else %} {{ help_popover(lang.ALT_DIR_RESTORE_MAIN) }} {% endif %}Any {{ section }} backups older than 30 days will be deleted.
Schedule Backups
How often do you want your backups queued? We maintain the {{ bakmgr.retention }} most recent backups, and the oldest copy gets replaced when each scheduled backup performs. Once queued, the backups will be performed as soon as server workload allows. {% if not bakmgr.is_child %} {{ help_popover("The number of retained backups is based on unused space on the server and will be between 2 and 10.") }} {% endif %}
The Backup Interval needs to be 1 Day or longer.
Data Included in Backup
What data do you want included in your backups?