Viewing File: /usr/local/cpanel/base/frontend/jupiter/backup/wizard.html.tt

[%
USE Services;
USE ServerRoles;
SET CPANEL.CPVAR.headerimg = "../images/tools.gif";
SET CPANEL.CPVAR.dprefix = "../";
SET under_quota = execute( 'Quota', 'get_quota_info' ).data.under_quota_overall;
SET can_backup_db = CPANEL.feature("mysql") && Services.is_service_provided("mysql");
%]

[% WRAPPER '_assets/master.html.tt'
    app_key = 'backup_wizard'
    include_legacy_stylesheets = 0
    include_legacy_scripts = 1
    include_cjt = 1
    page_stylesheets = ["css2-min/backup.css"]
-%]
<div class="body-content">
    [% IF !CPANEL.feature('backup') %]
        <meta http-equiv="refresh" content="0;url=../index.html" />
    [% ELSE %]
        <div class="section">
            <div id="backup-nav" class="row">
                <div class="col-xs-12">
                    <h2 id="hdrSteps">[% locale.maketext('Steps:') %]</h2>
                    <ol>
                        <li id="tabBackupRestore" class="one"><span class="current">[% locale.maketext("Back Up or Restore") %]</span></li>
                        <li id="tabFullPartial" class="two"><span>[% locale.maketext("Full or Partial Backup") %]</span></li>
                        <li id="tabDownload" class="three"><span>[% locale.maketext("Download") %]</span></li>
                    </ol>
                </div>
            </div>

            <div id="br-wrap" class="row">
                <div id="br-content-main" class="col-xs-12 col-sm-6 col-md-6 col-lg-6">
                    <h4 id="hdrBackup">[% locale.maketext("Back Up") %]</h4>
                    <p>[% locale.maketext("This feature allows you to download a compressed copy of all or part of your website.") %]</p>
                    <p>[% locale.maketext("The system will include the following items in the backup file:") %]</p>
                    <ul>
                        [% IF ServerRoles.is_role_enabled('FileStorage') -%]
                            <li>[% locale.maketext("The home directory.") %]</li>
                        [% END -%]
                        [% IF can_backup_db %]<li>[% locale.maketext("Databases.") %]</li>[% END %]
                        [% IF ServerRoles.is_role_enabled('MailReceive') -%]
                            [% IF CPANEL.feature("forwarders") %]<li>[% locale.maketext("Email forwarder configurations.") %]</li>[% END %]
                            [% IF CPANEL.feature("blockers") %]<li>[% locale.maketext("Email filter configurations.") %]</li>[% END %]
                        [% END -%]
                    </ul>
                    <p><a href="wizard-backup.html" id="wizard-backup" class="btn btn-primary">[% locale.maketext("Back Up") %]</a></p>
                </div>

                <div id="br-content-sec" class="col-xs-12 col-sm-6 col-md-6 col-lg-6">
                    <h4 id="hdrRestore">[% locale.maketext("Restore") %]</h4>
                    [% IF !under_quota %]
                        <div class="alert alert-warning" id="overdiskquota" role="alert">
                            <span class="glyphicon glyphicon-exclamation-sign" aria-hidden="true"></span>
                            <span class="alert-message">
                                <strong class="alert-title">[% locale.maketext('Warning:') %]</strong>
                                <span class="alert-body">
                                    [% locale.maketext("Restore is disabled because you are currently exceeding your disk quota.") %]
                                </span>
                            </span>
                        </div>
                    [% END %]
                    <p>[% locale.maketext("This feature allows you to upload an existing partial backup file in order to restore parts of your website.") %]</p>
                    <p>[% locale.maketext("The system will restore the following items if they exist in the backup file:") %]</p>
                    <ul>
                        [% IF ServerRoles.is_role_enabled('FileStorage') -%]
                            <li>[% locale.maketext("The home directory.") %]</li>
                        [% END -%]
                        [% IF can_backup_db %]<li>[% locale.maketext("Databases.") %]</li>[% END %]
                        [% IF ServerRoles.is_role_enabled('MailReceive') -%]
                            [% IF CPANEL.feature("forwarders") %]<li>[% locale.maketext("Email forwarder configurations.") %]</li>[% END %]
                            [% IF CPANEL.feature("blockers") %]<li>[% locale.maketext("Email filter configurations.") %]</li>[% END %]
                        [% END -%]
                    </ul>
                    <p><a [% IF under_quota %]href="wizard-restore.html"[% ELSE %]disabled[% END %] id="wizard-restore" class="btn btn-primary">[% locale.maketext("Restore") %]</a></p>
                </div>
            </div>
        </div>
    [% END %]
</div>
[% END %]
Back to Directory File Manager