# You must use a tab-size of 4 spaces to edit this file.
---
zenario__administration:
    panels:
        backups:
            priv: _PRIV_BACKUP_SITE
            title: Backups of the Zenario database
            #no_items_message is set in the PHP class file.
            disable_periodic_refresh: true
            columns:
                filename:
                    title: Filename
                    searchable: true
                    always_show: true
                    width: xxlarge
                size:
                    title: Size
                    format: filesize
                    always_show: true
                    align_right: true
            default_sort_column: filename
            item:
                css_class: backup
            collection_buttons:
                create_dropdown:
                    priv: _PRIV_BACKUP_SITE
                    hide_on_filter: true
                    hide_when_children_are_not_visible: true
                    css_class: zenario_create_a_new
                    label: Create a backup of the database...
                create:
                    priv: _PRIV_BACKUP_SITE
                    css_class: zenario_create_a_new
                    hide_on_filter: true
                    parent: create_dropdown
                    label: Create a backup on site
                    admin_box:
                        path: zenario_backup
                        key:
                            server: true
                create_and_download:
                    priv: _PRIV_BACKUP_SITE
                    css_class: zenario_create_a_new
                    hide_on_filter: true
                    parent: create_dropdown
                    label: Create and download a backup
                    admin_box:
                        path: zenario_backup
                upload:
                    priv: _PRIV_BACKUP_SITE
                    label: Upload a backup
                    tooltip: |
                        Upload a backup of the database|
                        <p>This tool allows you to upload a database backup of a Zenario site.</p>
                        
                        <p>(If the file it too large, you may need to upload the file to the backup directory using an FTP/SFTP tool.)</p>
                    upload:
                        accept: '.sql, .gz, .encrypted'
                        request:
                            upload: 1
                settings_dropdown:
                    css_class: organizer_settings_dropdown
                    ord: 999999
                    hide_when_children_are_not_visible: true
                    label: ⚙
                
                settings:
                    priv: _PRIV_VIEW_SITE_SETTING
                    label: Settings for backups
                    parent: settings_dropdown
                    hide_in_select_mode: true
                    admin_box:
                        path: site_settings
                        key:
                            id: dirs
                            
                            
            item_buttons:
                action_dropdown:
                    label: Actions
                    multiple_select: true
                    hide_when_children_are_not_visible: true
                download:
                    parent: action_dropdown
                    priv: _PRIV_BACKUP_SITE
                    label: Download this database backup
                    admin_box:
                        path: zenario_backup
                restore:
                    parent: action_dropdown
                    priv: _PRIV_RESTORE_SITE
                    label: Restore this database backup
                    disabled_if: |
                        item.filename.match(/-data-archive-/)
                    disabled_tooltip: |
                        The restore functionality is not implemented for data archive backups. Please use mysql in terminal.
                    ajax:
                        confirm:
                            message: |
                                <p>This will not affect the <code>docstore/</code> or <code>zenario_custom/</code> directories.
                                    You should back up and restore these separately to preserve your documents,
                                    custom frameworks, custom modules, layouts and skins.</p>
                                
                                <p>If you have very large images, or animations, on your site then you may need to increase your
                                    <a target="_blank" href="http://dev.mysql.com/doc/refman/5.0/en/server-system-variables.html#sysvar_max_allowed_packet">
                                        max_allowed_packet size</a>
                                    before you can restore this database backup. Please see 
                                    <a target="_blank" href="http://dev.mysql.com/doc/refman/5.0/en/packet-too-large.html">
                                        http://dev.mysql.com/doc/refman/5.0/en/packet-too-large.html</a>
                                    for details.</p>
                                
                                <p>If a database backup was taken from a previous version of Zenario,
                                    it will need updates to be applied immediately after being restored.
                                    We recommend that you create a recent database backup before restoring an older one.</p>
                                
                                <p>Are you sure that you wish to restore the database backup "[[filename]]"?</p>
                            html: true
                            message_type: warning
                            button_message: Restore this database backup
                            cancel_button_message: Cancel
                        request:
                            restore: 1
                delete:
                    priv: _PRIV_RESTORE_SITE
                    label: Delete
                    ajax:
                        confirm:
                            message: 'Are you sure you wish to delete the database backup "[[filename]]"?'
                            message_type: warning
                            button_message: Delete this database backup
                            cancel_button_message: Cancel
                        request:
                            delete: 1
