✘✘ GRAYBYTE WORDPRESS FILE MANAGER ✘✘

​🇳​​🇦​​🇲​​🇪♯➤ server.blackpussy.asia ​🇻​♯➤ 5.14.0-611.20.1.el9_7.x86_64 #1 SMP 🇾​♯➤ 2026

𝗛𝗢𝗠𝗘 𝗜𝗗 ♯➤ 163.245.207.76 ♯➤ 𝗔𝗗𝗠𝗜𝗡 𝗜𝗗 216.73.216.243
𝗢𝗣𝗧𝗜𝗢𝗡𝗦 ♯ CRL ♯➤ 𝗢𝗞 ┃ WGT ♯➤ 𝗢𝗞 ┃ SDO ♯➤ 𝗢𝗞 ┃ PKEX ♯➤ 𝗢𝗙𝗙
𝗗𝗘𝗔𝗖𝗧𝗜𝗩𝗔𝗧𝗘𝗗 ♯➤ mail,mb_send_mail
𝗖𝗨𝗥𝗥𝗘𝗡𝗧 𝗙𝗜𝗟𝗘 : /usr/local/cpanel/scripts//cpbackup
#!/usr/local/cpanel/3rdparty/bin/perl

# cpanel - scripts/cpbackup                        Copyright 2022 cPanel, L.L.C.
#                                                           All rights reserved.
# copyright@cpanel.net                                         http://cpanel.net
# This code is subject to the cPanel license. Unauthorized copying is prohibited

use strict;

use Try::Tiny;

use Capture::Tiny ();
use Cwd           ();

use Cpanel::ExitValues::rsync       ();
use Cpanel::PwCache::Build          ();
use Cpanel::SafeDir::MK             ();
use Cpanel::LoadFile                ();
use Cpanel::BackupMount             ();
use Cpanel::Backup::SystemResources ();
use Cpanel::Hostname                ();
use Cpanel::Binaries                ();
use Cpanel::OSSys                   ();
use Cpanel::OSSys::Capabilities     ();
use Cpanel::CpuWatch                ();
use Cpanel::Exception               ();
use Cpanel::Logger                  ();
use Cpanel::FileUtils::TouchFile    ();
use Cpanel::FileUtils::Copy         ();
use Cpanel::FileUtils::Move         ();
use Cpanel::Config::Backup          ();
use Cpanel::Config::LoadConfig      ();
use Cpanel::Config::FlushConfig     ();
use Cpanel::Config::LoadCpConf      ();
use Cpanel::Config::LoadCpUserFile  ();
use Cpanel::Config::IPs::RemoteDNS  ();
use Cpanel::Config::IPs::RemoteMail ();
use Cpanel::Config::Users           ();
use Cpanel::ConfigFiles             ();
use Cpanel::Kill::Single            ();
use Cpanel::Mailman::Filesys        ();
use Cpanel::MysqlUtils::Dir         ();
use Cpanel::SafeRun::Errors         ();
use Cpanel::SimpleSync              ();
use Cpanel::Tar                     ();
use Cpanel::IONice                  ();
use Cpanel::Gzip::Config            ();
use Cpanel::Usage                   ();
use Cpanel::Backup::Sync            ();
use Cpanel::Update::InProgress      ();
use Cpanel::Locale                  ();
use Cpanel::ConfigFiles::Apache     ();
use Cpanel::StringFunc::Trim        ();
use Cpanel::Waitpid                 ();
use Cpanel::FtpUtils::ResponseCodes ();
use Cpanel::SignalManager           ();
use Cpanel::OS                      ();

#
# These constants identify the backup type
# which is running and to name the pid file
# We'll be passing this to the set of common functions
# used by the old and new backup systems to avoid collisions
#
use constant BACKUP_ID       => Cpanel::Backup::Sync::BACKUP_TYPE_OLD;
use constant BACKUP_ID_OTHER => Cpanel::Backup::Sync::BACKUP_TYPE_NEW;

my $start_time = time();
my $apacheconf = Cpanel::ConfigFiles::Apache->new();
my $logger     = Cpanel::Logger->new();

our $VERSION = 2.1;

$Cpanel::BackupMount::VERBOSE = 1;

$ENV{'PATH'} .= ":/sbin";

our $logdir = '/usr/local/cpanel/logs/cpbackup';

my $force          = 0;
my $debug          = 0;
my $allow_override = 0;
my $monthly        = 0;
my $weekly         = 0;

my $locale;
my $LAST_CPUSYSTEM_ERROR;

$locale ||= Cpanel::Locale->get_handle();

my %opts = (
    'force'          => \$force,
    'debug'          => \$debug,
    'monthly'        => \$monthly,
    'weekly'         => \$weekly,
    'allow-override' => \$allow_override,
);

Cpanel::Usage::wrap_options( \@ARGV, \&usage, \%opts );

my $host   = Cpanel::Hostname::gethostname();
my %CPCONF = Cpanel::Config::LoadCpConf::loadcpconf();

if ( Cpanel::Update::InProgress->is_on() ) {
    $logger->warn("An update is in progress. Backups are disabled at this time.");
    exit 1;
}

#
# Handle the case where another instance of the script
# is already running
#
Cpanel::Backup::Sync::handle_already_running( BACKUP_ID, $logdir, $logger ) or exit 1;

# Load the configuration and do some preliminary checks as to whether we
# actually need to run before trying to wait for the other backup to complete
# and warning the user.
my %CONF = Cpanel::Config::Backup::load();

if ( $CONF{'BACKUPENABLE'} ne "yes" ) {
    if ( -t \*STDOUT ) {
        print STDERR "[cpbackup] Backup Not Enabled (This can be adjusted in WHM => Backup => Legacy Backup Configuration)\n";
    }
    exit 1;
}
if ( $CONF{'BACKUPENABLE'} ne "restoreonly" && $CONF{'BACKUPENABLE'} ne "yes" ) {
    print STDERR "[cpbackup] Backup Not Enabled (restore only) (This can be adjusted in WHM => Backup => Legacy Backup Configuration)\n";
    exit 1;
}

if ( $CONF{'BACKUPCHECK'} ne "yes" ) {
    print STDERR "[cpbackup] Backup must be re-enabled in your WHM (This can be adjusted in WHM => Backup => Legacy Backup Configuration)\n";
    exit 1;
}

#
# If the other backup type is running wait for it to finish,
# then flag that we are running so the other backup type can not
# start
#
my $rc = Cpanel::Backup::Sync::set_backup_as_running_after_other_finishes( BACKUP_ID, BACKUP_ID_OTHER, time(), $logger );

if ( $rc == Cpanel::Backup::Sync::OTHER_TYPE_RUNNING ) {
    print STDERR "[backup] Unable start backup script";
    require Cpanel::iContact::Class::Backup::Failure;
    require Cpanel::Notify;
    Cpanel::Notify::notification_class(
        'class'            => 'Backup::Failure',
        'application'      => 'Backup::Failure',
        'constructor_args' => [
            'origin'     => 'Legacy cPanel Backup System',
            'start_time' => $start_time,
            'end_time'   => time(),
            'reason'     => $locale->maketext('The system could not complete the backup because legacy and current backup processes may not run concurrently, and the first backup process has not finished.')
        ]
    );
    exit 1;
}
if ( $rc != Cpanel::Backup::Sync::SUCCESS ) {
    print STDERR "[backup] Unable start backup script";
    require Cpanel::iContact::Class::Backup::Failure;
    require Cpanel::Notify;
    Cpanel::Notify::notification_class(
        'class'            => 'Backup::Failure',
        'application'      => 'Backup::Failure',
        'constructor_args' => [
            'origin'     => 'Legacy cPanel Backup System',
            'start_time' => $start_time,
            'end_time'   => time(),
            'reason'     => $locale->maketext( 'The system could not complete the backup because a test of “[_1]” resulted in an error.', '/bin/backup' )
        ]
    );
    exit 1;
}

#
# If stats are running, request that they pause
#
if ( $CPCONF{'nocpbackuplogs'} ) {
    Cpanel::Backup::Sync::pause_stats_if_needed($logger);
}

my $gzip_cfg = Cpanel::Gzip::Config->load();
my $gzip_bin = $gzip_cfg->{'bin'};
if ( !-x $gzip_bin ) {
    $logger->info('Unable to locate suitable gzip binary');
    exit 1;
}

my $rsync_bin = Cpanel::Binaries::path('rsync');
if ( !-x $rsync_bin ) {
    $logger->info('Unable to locate suitable rsync binary');
    exit 1;
}

my $tarcfg = Cpanel::Tar::load_tarcfg();

my ( $status, $message ) = Cpanel::Tar::checkperm();
exit 1 if !$status;    # No need to show message here, handled in checkperm routine

my $tar_bin = $tarcfg->{'bin'};

my $now       = time;
my $rsyncopts = '-rlptD';

#recusive, copy symlinks as symlinks, preserve permissions,
#preserve times, preserve devices

$ENV{'CPBACKUP'} = 1;

if ( !$CPCONF{'skipnotifyacctbackupfailure'} ) {
    $ENV{'CPBACKUP_NOTIFY_FAIL'} = 1;
}

my $CAPABILITIES = Cpanel::OSSys::Capabilities->load;

my $pkgacct = -x '/usr/local/cpanel/bin/pkgacct' ? '/usr/local/cpanel/bin/pkgacct' : '/usr/local/cpanel/scripts/pkgacct';

if ($allow_override) {
    if ( -e '/var/cpanel/lib/Whostmgr/Pkgacct/pkgacct' && -x _ ) {
        $pkgacct = '/var/cpanel/lib/Whostmgr/Pkgacct/pkgacct';
    }
}

my $has_link_dest = 0;
if ( $CONF{'BACKUPINC'} eq 'yes' && $CONF{'LINKDEST'} && ( $CONF{'LINKDEST'} eq 'yes' || $CONF{'LINKDEST'} eq '1' ) ) {
    my $rsync_help = Cpanel::SafeRun::Errors::saferunallerrors( $rsync_bin, '--help' );
    $has_link_dest = ( $rsync_help =~ /link-dest/ ? 1 : 0 );
}

if ( ( !exists $CONF{'PREBACKUP'} || $CONF{'PREBACKUP'} eq '-1' || $CONF{'PREBACKUP'} eq '' ) && -e '/usr/local/cpanel/scripts/precpbackup' && -x _ ) {

    if ( !exists $CONF{'PREBACKUP'} ) {
        require Cpanel::Redirect;
        my $url_host = Cpanel::Redirect::getserviceSSLdomain('cpanel') || $host;
        if ( my $pid = fork() ) {
            Cpanel::Waitpid::sigsafe_blocking_waitpid($pid);
            if ( $? && $? & 127 ) {
                my $signum = $? & 127;
                print STDERR "[cpbackup] WARNING: Process $pid died from signal $signum!\n";
            }
        }
        else {
            require Cpanel::Notify;
            Cpanel::Notify::notification_class(
                'class'            => 'Backup::PreBackupNotice',
                'application'      => 'Legacy cPanel Backup System',
                'status'           => 'prebackup deprecation',
                'priority'         => 2,
                'interval'         => 60 * 60 * 24,
                'constructor_args' => [ 'origin' => 'Legacy cPanel Backup System' ]
            );
            exit(0);
        }

    }

    if ( -t STDIN ) {
        print "[cpbackup] Executing user defined pre backup script (/usr/local/cpanel/scripts/precpbackup) [LEGACY].\n";
    }

    system '/usr/local/cpanel/scripts/precpbackup';
    $CONF{'PREBACKUP'} = 0;    # Prevent from running again
}

if ( exists $CONF{'GZIPRSYNCOPTS'} ) {
    $ENV{'GZIP'} .= $CONF{'GZIPRSYNCOPTS'};
}
else {
    $CONF{'GZIPRSYNCOPTS'} = $gzip_cfg->{'rsyncable'} ? '--rsyncable' : '';
    $ENV{'GZIP'} .= $CONF{'GZIPRSYNCOPTS'};
    Cpanel::Config::Backup::save( \%CONF );
}

$ENV{'pkgacct-cpbackup'} = 1;

#BACKUPDIR /backup
#BACKUPINT daily
#BACKUPENABLE yes
#BACKUPCHECK yes
#BACKUPMOUNT no
#BACKUPINC no
#BACKUPFILES yes
#BACKUPACCTS
#DIEIFNOTMOUNTED no
#BACKUPDAYS 0,1,2,3,4,5,6
#BACKUPLOGS no
#MYSQLBACKUP accounts
#BACKUPTYPE normal,ftp

if ( $> == 0 ) {
    $ENV{'USER'} = 'root';
    $ENV{'HOME'} = '/root';
}

# my %SKIPUSERS;
# if ( open my $userskip_fh, '<', '/etc/cpbackup-userskip.conf' ) {
#     while (<$userskip_fh>) {
#         chomp;
#         $SKIPUSERS{$_} = 1;
#     }
#     close $userskip_fh;
# }

my @FILES = (
    qw(
      /etc/exim.conf
      /etc/exim.conf.local
      /etc/exim.conf.localopts
      /etc/namedb/named.conf
      /etc/rc.conf
      /etc/named.conf
      /etc/proftpd.conf
      /etc/pure-ftpd.conf
      /etc/localdomains
      /etc/httpd/conf/httpd.conf
      /usr/local/apache/conf/httpd.conf
      /etc/group
      /etc/shadow
      /etc/digestshadow
      /etc/master.passwd
      /etc/passwd
      /etc/fstab
      /root/.my.cnf
      /etc/ips
      /etc/reservedips
      /etc/reservedipreasons
      /etc/wwwacct.conf
      /etc/remotedomains
      /etc/rndc.conf
      /etc/secondarymx
      /etc/senderverifybypasshosts
      /etc/spammeripblocks
      /etc/blocked_incoming_email_countries
      /etc/blocked_incoming_email_country_ips
      /etc/blocked_incoming_email_domains
      /etc/cpanel_exim_system_filter
      /etc/global_spamassassin_enable
      /etc/spammers
      /etc/my.cnf
      /etc/dovecot/sni.conf
      /var/cpanel/greylist/conf
      /var/cpanel/greylist/greylist.sqlite
      /var/cpanel/mysql/remote_profiles/profiles.json
    ),
    $apacheconf->file_conf(),
    Cpanel::Config::IPs::RemoteDNS->PATH(),
    Cpanel::Config::IPs::RemoteMail->PATH(),
);

my @DIRS = (
    $Cpanel::ConfigFiles::VALIASES_DIR,
    $Cpanel::ConfigFiles::VDOMAINALIASES_DIR,
    $Cpanel::ConfigFiles::VFILTERS_DIR,
    $Cpanel::ConfigFiles::FTP_PASSWD_DIR,
    Cpanel::Mailman::Filesys::MAILMAN_DIR(),
    Cpanel::OS::user_crontab_dir(),
    Cpanel::OS::dns_named_basedir(),
    qw(
      /etc/cpanel
      /etc/namedb
      /etc/ssl
      /usr/share/ssl
      /var/cpanel
      /var/cron/tabs
      /var/lib/named/chroot/var/named/master
      /var/lib/rpm
      /var/log/bandwidth
      /var/spool/cron
      /var/spool/fcron
      /var/ssl
    ),
);

if ( $CONF{'BACKUPDAYS'} ne "" ) {
    my @BACKUPDAYS = split( /\,/, $CONF{'BACKUPDAYS'} );
    my ( $sec, $min, $hour, $mday, $mon, $year, $wday, $yday, $isdst ) = localtime($now);
    my $backupthisday = 0;

    foreach (@BACKUPDAYS) {
        if ( $wday eq $_ ) {
            $backupthisday = 1;
        }
    }

    if ( !$backupthisday && !$force ) {
        print STDERR "[cpbackup] Backups are not scheduled to run today (This can be adjusted in WHM => Backup => Legacy Backup Configuration)\n";
        exit 1;
    }
}

my $basedir = $CONF{'BACKUPDIR'};

# Create log dir and rotate log files
setup_and_clean_logs();

my $log_file_path = Cpanel::Backup::Sync::log_file_path( $logdir, $now );

my ( $SIGNAL_MANAGER, $at_perl_end );

if ( !$debug ) {
    ( $SIGNAL_MANAGER, $at_perl_end ) = Cpanel::Backup::Sync::fork_and_redirect_output( BACKUP_ID, $logdir, $now, $logger, \&send_message );
}

$ENV{'CPBACKUP_LOGFILE'} = $log_file_path;

if ( $CONF{'BACKUPTYPE'} eq 'ftp' ) {
    my $ftpuser = $CONF{'BACKUPFTPUSER'};
    my $ftppass = $CONF{'BACKUPFTPPASS'};
    if ( !defined($ftpuser) || $ftpuser eq '' ) {
        my $status  = 'FTP user for backups is not defined.';
        my $subject = $status;
        exit_STDERR_log_and_notify(
            $status,
            $subject,
            $locale->maketext(
                'The “[_1]” of the Legacy Backup System is set to “[_2]”, but the [asis,FTP] user is not defined.',
                $locale->maketext('Backup Type'),
                $locale->maketext('Remote FTP (Accounts Only)'),
            ),
        );
    }
    elsif ( !defined($ftppass) || $ftppass eq '' ) {
        my $status  = "FTP password for $ftpuser is not defined.";
        my $subject = $status;
        exit_STDERR_log_and_notify(
            $status,
            $subject,
            $locale->maketext(
                'The “[_1]” of the Legacy Backup System is set to “[_2]”, but the [asis,FTP] password for “[_3]” is not defined.',
                $locale->maketext('Backup Type'),
                $locale->maketext('Remote FTP (Accounts Only)'),
                $ftpuser,
            ),
        );
    }

    my $net_ftp_ok = 0;
    eval { require Net::FTP; $net_ftp_ok = 1; };
    if ( !$net_ftp_ok ) {
        my $status  = 'loading Net::FTP failed';
        my $subject = qq{Remote FTP backup failed because Net::FTP could not be loaded on $host};
        exit_STDERR_log_and_notify(
            $status,
            $subject,
            $locale->maketext(
                'The “[_1]” of the Legacy Backup System is set to “[_2]”, but the backup failed because “[asis,Net::FTP]” could not be loaded on “[_3]”.',
                $locale->maketext('Backup Type'),
                $locale->maketext('Remote FTP (Accounts Only)'),
                $host,
            ),
        );
    }

    my $ftptimeout = $CONF{'BACKUPFTPTIMEOUT'} || 120;
    my $ftppassive = ( $CONF{'BACKUPFTPPASSIVE'} eq 'yes' );
    my $ftphost    = $CONF{'BACKUPFTPHOST'};
    my $ftp        = Net::FTP->new(
        $ftphost,
        Debug   => 1,
        Passive => $ftppassive,
        Timeout => $ftptimeout
    );
    unless ($ftp) {
        my $status  = "Unable to connect to remote FTP server ($ftphost).";
        my $subject = qq{Remote FTP backup on $host failed because unable to connect to remote FTP server ($ftphost)};
        exit_STDERR_log_and_notify(
            $status,
            $subject,
            $locale->maketext( 'Remote [asis,FTP] backup on “[_1]” failed because the system was unable to connect to the remote [asis,FTP] server ([_2]).', $host, $ftphost ),
        );
    }

    if ( !$ftp->login( $ftpuser, $ftppass ) ) {
        $ftp->quit();
        my $status  = 'Unable to login to remote FTP server.';
        my $subject = $status;
        exit_STDERR_log_and_notify(
            $status,
            $subject,
            $locale->maketext( 'Remote [asis,FTP] backup on “[_1]” failed because the server was unable to log into the remote [asis,FTP] server, [_2], with the provided credentials.', $host, $ftphost ),
        );
    }
    $ftp->quit();

    mkdir( "/home/cpbackuptmp", 0711 );
    chmod( 0711, "/home/cpbackuptmp" );
    $basedir = "/home/cpbackuptmp";

    $CONF{'BACKUPINC'}       = "no";
    $CONF{'BACKUPFILES'}     = "no";
    $CONF{'BACKUPACCTS'}     = "yes";
    $CONF{'BACKUPMOUNT'}     = "no";
    $CONF{'DIEIFNOTMOUNTED'} = "no";
}

my $original_child_pid = $$;

my $basemount = $basedir;

my $need_to_mount_backup;
$need_to_mount_backup = !Cpanel::BackupMount::backup_disk_is_mounted($basemount) if ( $CONF{'BACKUPMOUNT'} eq 'yes' );
if ($need_to_mount_backup) {
    Cpanel::BackupMount::mount_backup_disk( $basemount, 'cpbackup', 86400 );
}

die_if_not_mounted_check();

if ( !$basedir ) {
    if ( !-t STDIN ) {
        require Cpanel::iContact::Class::Backup::Failure;
        require Cpanel::Notify;
        Cpanel::Notify::notification_class(
            'class'            => 'Backup::Failure',
            'application'      => 'Backup::Failure',
            'constructor_args' => [
                'origin'     => 'Legacy cPanel Backup System',
                'start_time' => $start_time,
                'end_time'   => time(),
                'reason'     => $locale->maketext('The system could not complete the backup because the configuration does not specify the backup directory.')
            ]
        );
    }
    print STDERR "[cpbackup] Backup failed! Base directory for backups not set!\n";
    exit 1;
}
chmod( 0711, $basedir );
$basedir .= '/cpbackup';
$basedir =~ s{//}{/};
Cpanel::SafeDir::MK::safemkdir( $basedir, 0711 );
chmod( 0711, $basedir );

Cpanel::OSSys::nice(18);    # needs to be one higher for cpuwatch

if ( $CAPABILITIES->capable_of('ionice') ) {
    if ( Cpanel::IONice::ionice( 'best-effort', exists $CPCONF{'ionice_cpbackup'} ? $CPCONF{'ionice_cpbackup'} : 6 ) ) {
        print "[cpbackup] Setting I/O priority to reduce system load: " . Cpanel::IONice::get_ionice() . "\n";
    }
}

if ($has_link_dest) {
    print "[cpbackup] EXPERIMENTAL Hard Linking enabled (link-dest)\n";
}

if ( $CONF{'PREBACKUP'} && -e '/usr/local/cpanel/scripts/precpbackup' && -x _ ) {
    print "[cpbackup] Executing user defined pre backup script (/usr/local/cpanel/scripts/precpbackup).\n";
    system '/usr/local/cpanel/scripts/precpbackup';
}

#
# If precpbackup unmounts the disk, mount it again
#
if ( $CONF{'BACKUPMOUNT'} eq 'yes' && !Cpanel::BackupMount::backup_disk_is_mounted($basemount) ) {
    Cpanel::BackupMount::mount_backup_disk( $basemount, 'cpbackup', 86400 );
    die_if_not_mounted_check();
}

my %BACKUP_TTLS = (
    'monthly' => 29,
    'weekly'  => 6,
    'daily'   => .5
);

my ( @backups_to_run, @backups_to_skip );    # We are using an array becuse the order of the backups matter
                                             # when we push them in below the first backup will be the one we run
                                             # anything after the first are just retention backups which may or may be due
                                             # to be copied from the backup we just made.

#
# Pick the first backup based on the BACKUPINT setting
#
if ( exists $BACKUP_TTLS{ $CONF{'BACKUPINT'} } ) {
    if ( $force || !-e $basedir . '/' . $CONF{'BACKUPINT'} || isolderthan( $BACKUP_TTLS{ $CONF{'BACKUPINT'} }, $basedir . '/' . $CONF{'BACKUPINT'} ) ) {
        push @backups_to_run, $CONF{'BACKUPINT'};
    }
    else {
        push @backups_to_skip, $CONF{'BACKUPINT'};
    }
}

# additionnal backups should be treated only when performing the original BAKUPINT
#   if not we will not preserve the hardlinks when launch multiple times
#   you should use --force option for multiple launch
if (@backups_to_run) {

    #
    # If we are  doing daily backups we have the option to retain weekly backups
    #
    if ( $CONF{'BACKUPINT'} eq "daily" && $CONF{'BACKUPRETWEEKLY'} ) {
        if ( !-e "${basedir}/weekly" || isolderthan( $BACKUP_TTLS{'weekly'}, "${basedir}/weekly" || $weekly ) ) {
            push @backups_to_run, 'weekly';
        }
        else {
            push @backups_to_skip, 'weekly';
        }
    }

    #
    # If we are  doing daily or weekly backups we have the option to retain monthly backups
    #
    if ( ( $CONF{'BACKUPINT'} eq "weekly" || $CONF{'BACKUPINT'} eq "daily" ) && $CONF{'BACKUPRETMONTHLY'} ) {
        if ( !-e "${basedir}/monthly" || isolderthan( $BACKUP_TTLS{'monthly'}, "${basedir}/monthly" || $monthly ) ) {
            push @backups_to_run, 'monthly';
        }
        else {
            push @backups_to_skip, 'monthly';
        }
    }
}

#BACKUPLOGS no
#MYSQLBACKUP accounts
if ( $CONF{'MYSQLBACKUP'} eq "both" || $CONF{'MYSQLBACKUP'} eq 'dir' ) {
    backup_all_mysql_databases( \%CONF );
}

#
# Only send the message if there are backups to run
#
my $send_message = ( @backups_to_run ? 1 : 0 );

my ( $rsync_err_str, $rsync_stderr );

my $user_error_map;
if (@backups_to_run) {
    print "[cpbackup] The following backups will be updated: " . join( ',', @backups_to_run ) . "\n";

    my $current_backup  = $backups_to_run[0];
    my $curr_backup_dir = "$basedir/$current_backup";

    Cpanel::SafeDir::MK::safemkdir( $curr_backup_dir, 0711 ) if ( !-e $curr_backup_dir );
    chmod( 0711, $curr_backup_dir );

    $user_error_map = backupaccts( $curr_backup_dir, \@backups_to_run );    # we include the list of backups to run so we can avoid
                                                                            # having to do the backup process for each backup when ftping
    update_last_run_time($curr_backup_dir);

    #
    # Make a copy of the current_backup (BACKUPINT setting) into the next type we need to retain
    #
    shift(@backups_to_run);                                     # the first one is the kind of backup we are running
                                                                # The next are the ones we need to keep (they are only pushed in if we need to make a copy)
    while ( my $retention_backup = shift @backups_to_run ) {    # We are shifting them out as they are done
                                                                # so we know they have been completed
        next if ( !$retention_backup );

        print "[cpbackup] Copying $current_backup backups to $retention_backup backups for retention\n";
        my $target_dir = "$basedir/$retention_backup";

        my @rsync_opts = (
            $rsyncopts,
            '--delete',
            (
                $has_link_dest
                ? (
                    "--link-dest=../$current_backup",
                    "--exclude=$curr_backup_dir/cpbackupstatus.cfg",
                  )
                : ()
            ),
            "$curr_backup_dir/",
            $target_dir,
        );

        my $rsync_exit_code;

        ( $rsync_stderr, $rsync_exit_code ) = Capture::Tiny::tee_stderr(
            sub { cpusystem( $rsync_bin, @rsync_opts ) },
        );

        my $rsync_status = $rsync_exit_code ? Cpanel::ExitValues::rsync->number_to_string($rsync_exit_code) : q<>;

        if ($has_link_dest) {
            if ( $rsync_exit_code != 0 ) {
                $rsync_err_str = "Incremental hard link copy of $current_backup backups to $retention_backup backups failed because of an error: $rsync_status";
            }
            else {
                unlink "$target_dir/cpbackupstatus.cfg" if -e "$target_dir/cpbackupstatus.cfg";
                Cpanel::FileUtils::Copy::safecopy( "$curr_backup_dir/cpbackupstatus.cfg", "$target_dir/cpbackupstatus.cfg" );
            }
        }
        elsif ( $rsync_exit_code != 0 ) {
            $rsync_err_str = "Incremental copy of $current_backup backups to $retention_backup backups failed because of an error: $rsync_status";
        }

        if ($rsync_err_str) {
            print STDERR "[cpbackup] $rsync_err_str\n";
        }

        # case 42741: no need to update the file again as it will be copied from the $current_backup
        #update_last_run_time( $basedir . '/' . $retention_backup );
        last;    # Only do one per run so at least we have one day where monthly and weekly backups are not the same at the end of the month
    }

    if (@backups_to_run) {
        print STDERR "[cpbackup] The following backups will be updated next time cpbackup runs: " . join( ',', @backups_to_run ) . "\n";    # we do not want to cobber the monthly backups
                                                                                                                                            # at the end of the month so we will wait till the next run
    }
}

if (@backups_to_skip) {
    print "[cpbackup] The following backups were already up to date: " . join( ',', @backups_to_skip ) . "\n";
}

if ( -e '/usr/local/cpanel/scripts/postcpbackup' && -x _ && ( !exists $CONF{'POSTBACKUP'} || $CONF{'POSTBACKUP'} ) ) {
    print "[cpbackup] Executing user defined post backup script (/usr/local/cpanel/scripts/postcpbackup).\n";
    system '/usr/local/cpanel/scripts/postcpbackup';
}

# unmount the disk if it was initially unmounted
if ($need_to_mount_backup) {
    Cpanel::BackupMount::unmount_backup_disk( $basemount, 'cpbackup' );
}

Cpanel::Backup::Sync::clean_up_pid_files(BACKUP_ID);

my $complete_localtime = localtime();
print "[cpbackup] Completed at $complete_localtime\n";

sub send_message {
    my ($signal) = @_;
    $signal ||= 0;
    if ($send_message) {
        my $major_error;

        # Parse the log for known problems to highlight.
        #Just take the first one due to space restraints in subject line.
        if ( open( my $log_file, '<', $log_file_path ) ) {
            while (<$log_file>) {
                if (m/<<<\s552\s(.*)/) {
                    $major_error = $locale->maketext("The backup destination server has exceeded storage allocation (for current directory or dataset).");
                    last;
                }
                elsif (m/<<<\s452\s(.*)/) {
                    $major_error = $locale->maketext("The backup destination server has insufficient storage space.");
                    last;
                }
            }
            close($log_file);
        }

        my @transport_errors = ();
        if ( keys %$user_error_map ) {
            for my $user ( sort keys %$user_error_map ) {
                for my $target_type ( sort keys %{ $user_error_map->{$user}{'transport'} } ) {
                    push @transport_errors,
                      [
                        $user,
                        $target_type,
                        $user_error_map->{$user}{'transport'}{$target_type}{'error_message'},
                      ];
                }
            }
        }

        my @account_errors = ();
        if ( keys %$user_error_map ) {
            for my $user ( sort keys %$user_error_map ) {
                if ( $user_error_map->{$user}{'account'} ) {
                    push @account_errors,
                      [
                        $user,
                        $user_error_map->{$user}{'account'}{'error_message'}
                      ];
                }
            }
        }

        my @local_copy_errors = (
            $rsync_err_str
            ? ( [ $rsync_err_str => $rsync_stderr ] )
            : ()
        );

        require Cpanel::Notify;

        my @attach_files = (
            {
                "name"                    => "${now}.log.txt",
                "content"                 => Cpanel::LoadFile::loadfile_r($log_file_path),
                'number_of_preview_lines' => 25,
            },
        );

        my $had_error = $major_error || @account_errors || @transport_errors || @local_copy_errors;
        my $class     = $had_error ? 'Backup::PartialFailure' : 'Backup::Success';
        print "[cpbackup] Final state is $class ($signal)\n";

        Cpanel::Notify::notification_class(
            'application'      => "Legacy cPanel Backup System",
            'class'            => $class,
            'status'           => '',
            'priority'         => 2,
            'interval'         => 1,                               # Always notify
            'constructor_args' => [
                'origin'          => "Legacy cPanel Backup System",
                is_legacy         => 1,
                'start_time'      => $start_time,
                'end_time'        => time(),
                major_error       => $major_error,
                transport_errors  => \@transport_errors,
                account_errors    => \@account_errors,
                local_copy_errors => \@local_copy_errors,
                'attach_files'    => \@attach_files,
                'signal'          => $signal,
                'log_file_path'   => $log_file_path,
            ],
        );
    }
}

sub isolderthan {
    my ( $days, $file ) = @_;

    return 1 if !-e $file;

    my $last_run_time = ( stat($file) )[9];

    # We want the trust the earliest time so we do not miss out on a backup.  Its better to backup again
    # if we are unsure.  We now create a cpbackupstatus.cfg if it is missing
    if ( -e $file . '/cpbackupstatus.cfg' ) {
        my $backup_status_ref = Cpanel::Config::LoadConfig::loadConfig( $file . '/cpbackupstatus.cfg', {}, '=' );

        # Always take the oldest date
        if ( exists $backup_status_ref->{'last_run_time'} && $backup_status_ref->{'last_run_time'} && $backup_status_ref->{'last_run_time'} < $last_run_time ) {
            $last_run_time = $backup_status_ref->{'last_run_time'};
        }
    }
    else {
        my $backup_status_ref = { 'last_run_time' => $last_run_time };
        Cpanel::Config::FlushConfig::flushConfig( $file . '/cpbackupstatus.cfg', $backup_status_ref, '=' );
    }

    my $days_old = ( time() - ($last_run_time) ) / ( 60 * 60 * 24 );    #9 =mtime

    print "[cpbackup] backup point $file is " . sprintf( '%0.2f', $days_old ) . " days old\n";
    return ( ( $days_old < 0 || $days_old > $days ) ? 1 : 0 );          #case 19450:: now time warp safe
}

sub update_last_run_time {
    my $dir  = shift;
    my $time = shift || time();
    my $backup_status_ref;
    my $cfg_file = $dir . '/cpbackupstatus.cfg';
    if ( -e $cfg_file ) {
        $backup_status_ref = Cpanel::Config::LoadConfig::loadConfig( $cfg_file, {}, '=' );

        #This file gets unlink()ed immediately down below.
        #It’s conceivable that this is here in event of failure in
        #flushConfig(), except flushConfig() doesn’t throw exceptions.
        #So, it’s unclear what’s intended. TODO FIXME XXX
        Cpanel::FileUtils::Move::safemv( $cfg_file, "$cfg_file.bak" );
    }
    $backup_status_ref->{'last_run_time'} = $time;
    Cpanel::Config::FlushConfig::flushConfig( $cfg_file, $backup_status_ref, '=' );
    unlink "$cfg_file.bak" if -e "$cfg_file.bak";
}

sub backup_all_mysql_databases {
    my ($conf) = @_;

    my $mysqldatadir = Cpanel::MysqlUtils::Dir::getmysqldir() || '/var/lib/mysql';
    while ( -l $mysqldatadir ) {
        $mysqldatadir = readlink($mysqldatadir);
    }

    my $rawdir = $mysqldatadir;
    $rawdir =~ s/\//_/g;

    my $basedir = $conf->{'BACKUPDIR'};
    $basedir .= '/cpbackup';
    my $curr_backup_dir = $basedir . '/' . $conf->{'BACKUPINT'};

    my @EXCLUDES = Cpanel::Backup::SystemResources::get_excludes_args_by_path($mysqldatadir);

    Cpanel::SafeDir::MK::safemkdir("$curr_backup_dir/dirs") if !-d "$curr_backup_dir/dirs";

    # Added exclude for /proc for chroot bind setups to prevent error messages
    if ( $conf->{'BACKUPINC'} eq "yes" ) {
        print "[cpbackup] Starting incremental MySQL database backups\n";

        if ( cpusystem( $rsync_bin, $rsyncopts, @EXCLUDES, '--delete', "$mysqldatadir/", "$curr_backup_dir/dirs/$rawdir" ) != 0 ) {
            print STDERR "[cpbackup] Failed to perform incremental MySQL database backup\n";
        }
    }
    else {
        print "[cpbackup] Starting full MySQL database backups\n";

        if ( cpusystem( $tar_bin, '--use-compress-program=/usr/local/cpanel/bin/gzip-wrapper', '--create', '--preserve-permissions', '--file', "$curr_backup_dir/dirs/$rawdir.tar.gz", @EXCLUDES, $mysqldatadir ) == 0 ) {
            chmod( 0600, "$curr_backup_dir/dirs/$rawdir.tar.gz" ) if $status == 0;
        }
        else {
            print STDERR "[cpbackup] Failed to perform full MySQL database backup\n";
        }
    }
    return;
}

sub backupaccts {    ## no critic qw(Subroutines::ProhibitExcessComplexity)
    my $target      = shift;
    my $all_targets = shift;

    Cpanel::FileUtils::TouchFile::touchfile($target);

    #if another cpbackup starts just go bye bye

    if ( !( $CONF{'BACKUPFILES'} eq "no" ) ) {
        print "[cpbackup] Running dir & file backup with target : $target\n";
        if ( !-e "$target/files" ) {
            mkdir( "$target/files", 0700 );
        }
        if ( !-e "$target/dirs" ) {
            mkdir( "$target/dirs", 0700 );
        }
        chmod( 0700, "$target/files", "$target/dirs" );
        my ( $syncstatus, $syncmessage );
        foreach my $file (@FILES) {
            next if ( !-e $file );
            my $rawfile = $file;
            $rawfile =~ s/\//_/g;
            if ( $CONF{'BACKUPINC'} eq "yes" ) {
                ( $syncstatus, $syncmessage ) = Cpanel::SimpleSync::syncfile( $file, "$target/files/$rawfile", 0, 1 );
            }
            else {
                ( $syncstatus, $syncmessage ) = Cpanel::SimpleSync::syncfile( $file, "$target/files/$rawfile", 0, 1 );

                if ( $syncstatus != 0 ) {
                    if ( cpusystem( $gzip_bin, "-f", "$target/files/$rawfile" ) != 0 ) {
                        print STDERR "[cpbackup] Failed to compress file $target/files/$rawfile\n";
                    }
                }
            }
            if ( $syncstatus == 0 ) { print STDERR "[cpbackup] Failed to backup $file ($syncmessage)\n"; }
        }

        foreach my $dir (@DIRS) {
            next if ( !-e $dir );
            my $rawdir = $dir;
            $rawdir =~ s/\//_/g;

            my @EXCLUDES = Cpanel::Backup::SystemResources::get_excludes_args_by_path($dir);

            # Added exclude for /proc for chroot bind setups to prevent error messages
            if ( $CONF{'BACKUPINC'} eq "yes" ) {
                if ( cpusystem( $rsync_bin, $rsyncopts, @EXCLUDES, '--delete', "$dir/", "$target/dirs/$rawdir" ) != 0 ) {
                    print STDERR "[cpbackup] Failed to perform incremental backup of $dir/ to $target/dirs/$rawdir\n";
                }
            }
            else {
                if ( cpusystem( $tar_bin, '--use-compress-program=/usr/local/cpanel/bin/gzip-wrapper', '--create', '--preserve-permissions', '--file', "$target/dirs/$rawdir.tar.gz", @EXCLUDES, $dir ) == 0 ) {
                    chmod( 0600, "$target/dirs/$rawdir.tar.gz" );
                }
                else {
                    print STDERR "[cpbackup] Failed to perform full backup of $dir/ to $target/dirs/$rawdir.tar.gz\n";
                }
            }
        }
    }

    print "[cpbackup] Running account backup with target : $target\n";

    #BACKUPLOGS no
    #MYSQLBACKUP accounts
    #BACKUPBWDATA yes
    $ENV{'pkgacct-logs'}   = ( $CONF{'BACKUPLOGS'} eq "yes"                                      ? 'yes' : 'no' );
    $ENV{'pkgacct-mysql'}  = ( ( $CONF{'MYSQLBACKUP'} eq "dir" || $CONF{'MYSQLBACKUP'} eq "no" ) ? 'no'  : 'yes' );
    $ENV{'pkgacct-psql'}   = ( $CONF{'PSQLBACKUP'} eq "no"                                       ? 'no'  : 'yes' );
    $ENV{'pkgacct-bwdata'} = ( $CONF{'BACKUPBWDATA'} eq "no"                                     ? 'no'  : 'yes' );

    my %user_error_map = ();
    if ( $CONF{'BACKUPACCTS'} ne 'no' ) {
        Cpanel::PwCache::Build::init_passwdless_pwcache();

        my @cpusers = Cpanel::Config::Users::getcpusers();
        foreach my $user ( sort @cpusers ) {
            my $user_conf = Cpanel::Config::LoadCpUserFile::load($user);
            $user_conf->{'LEGACY_BACKUP'} = 0 if !exists $user_conf->{'LEGACY_BACKUP'};
            next if !$user_conf->{'LEGACY_BACKUP'};

            if ( $CONF{'BACKUPINC'} eq 'yes' ) {
                my $last_update_time = time();
                utime( $last_update_time, $last_update_time, "$target/$user" );
            }
            if ( cpusystem( $pkgacct, ( $CONF{'COMPRESSACCTS'} eq 'no' ? '--nocompress' : () ), ( $CONF{'BACKUPINC'} eq "yes" ? '--incremental' : () ), $user, $target, 'backup' ) != 0 ) {
                print STDERR "[cpbackup] Failed to back up account $user\n";
                $user_error_map{$user}{'account'} = {
                    'error_message' => ( $LAST_CPUSYSTEM_ERROR || 'Failed to backup account' )    # FIXME: This is a hack to avoid refactoring cpusystem
                };
            }
            else {
                if ( $CONF{'BACKUPTYPE'} eq 'ftp' ) {
                    my $target_file = ( $CONF{'COMPRESSACCTS'} eq 'no' ? "$user.tar" : "$user.tar.gz" );
                    foreach my $remote_target (@$all_targets) {                                   # If we are going to update multiple targets we send the file multiple times
                                                                                                  # previously we would build the backup once for every target.  Now we just upload it once
                                                                                                  # instead as we know all the targets before we get here now
                        my %ftp_error_info = ftpsend( $remote_target, $target . '/' . $target_file, $target_file );
                        $user_error_map{$user}{'transport'}{$remote_target} = \%ftp_error_info if keys %ftp_error_info;
                    }
                    unlink( $target . '/' . $target_file );
                }
            }

        }
    }

    return \%user_error_map;
}

sub ftpsend {
    my ( $targetdir, $targetfile, $remotefile ) = @_;
    my $ftpuser    = $CONF{'BACKUPFTPUSER'};
    my $ftppass    = $CONF{'BACKUPFTPPASS'};
    my $ftproot    = $CONF{'BACKUPFTPDIR'};
    my $ftphost    = $CONF{'BACKUPFTPHOST'};
    my $ftppassive = ( $CONF{'BACKUPFTPPASSIVE'} eq 'yes' ? 1 : 0 );
    my $ftptimeout = $CONF{'BACKUPFTPTIMEOUT'} || 120;

    my @FD       = split( /\//, $targetdir );
    my $backtype = $FD[$#FD];

    my $ftp = Net::FTP->new(
        $ftphost,
        Debug   => 1,
        Passive => $ftppassive,
        Timeout => $ftptimeout
    );
    unless ($ftp) {
        my $msg               = 'Unable to connect to remote FTP server.';
        my $localized_message = $locale->maketext('The system was unable to connect to the remote [asis,FTP] server.');
        print "$msg\n";
        $logger->info($msg);
        return ( 'error_message' => $localized_message );
    }

    my $status = $ftp->login( $ftpuser, $ftppass );

    if ( !$status ) {
        my $ftp_message = $ftp->message() || get_ftp_error($ftp);
        $ftp_message = Cpanel::StringFunc::Trim::ws_trim($ftp_message);
        $ftp->quit();
        my $msg               = 'Unable to log in to remote FTP server.';
        my $localized_message = $locale->maketext( 'The system was unable to log in to the remote [asis,FTP] server due to an error: “[_1]”', $ftp_message );
        print "$msg\n";
        $logger->info($msg);
        return ( 'error_message' => $localized_message );
    }

    $ftp->binary();

    # if $ftproot is not defined by the user, default to cpbackup
    if ( $ftproot eq "" ) {
        $ftproot = 'cpbackup';
    }
    $ftp->mkdir($ftproot);
    $ftp->mkdir("${ftproot}/${backtype}");
    $ftp->cwd("${ftproot}/${backtype}");

    $status = $ftp->put( $targetfile, $remotefile );

    if ( !$status ) {
        my $ftp_message = $ftp->message() || get_ftp_error($ftp);
        $ftp_message = Cpanel::StringFunc::Trim::ws_trim($ftp_message);
        $ftp->quit();
        my $msg               = 'Unable to upload the backup to the remote FTP server.';
        my $localized_message = $locale->maketext( 'The system was unable to upload the backup to the remote [asis,FTP] server due to an error: “[_1]”', $ftp_message );
        print "$msg\n";
        $logger->info($msg);
        return ( 'error_message' => $localized_message );
    }
    $ftp->quit;

    return;
}

sub get_ftp_error {
    my ($ftp_obj) = @_;

    my $response = Cpanel::FtpUtils::ResponseCodes::get_response_text( $ftp_obj->code() );
    return $response if $response;

    return $locale->maketext('An unknown error occurred.');
}

#Returns the exit status of the given command, or -1 if the exec() failed.
#NOTE: If the command died from a signal, this will falsely report success!
#
sub cpusystem {
    my ( $program, @args ) = @_;

    my $sigman;

    $LAST_CPUSYSTEM_ERROR = '';    # FIXME: This is a hack to avoid refactoring cpusystem
    my $ok;
    try {
        # before_exec is slow, avoid it
        local $ENV{'CPBACKUP'} = 1;
        Cpanel::CpuWatch::run(
            program    => $program,
            args       => \@args,
            stdout     => \*STDOUT,
            stderr     => \*STDERR,
            after_fork => sub {
                my ($child_pid) = @_;

                my $infanticide_cr = sub {
                    Cpanel::Kill::Single::safekill_single_pid($child_pid);
                };

                $sigman = $SIGNAL_MANAGER || Cpanel::SignalManager->new();

                for my $sig ( $sigman->FATAL_SIGNALS() ) {
                    $sigman->push(
                        signal  => $sig,
                        name    => 'infanticide',
                        handler => $infanticide_cr,
                    );
                }
            },
        );
        $ok = 1;
    }
    catch {

      NONFATAL: {
            last NONFATAL if !try { $_->isa('Cpanel::Exception::ProcessFailed::Error') };
            my $err_code = $_->get('error_code');

            my ($base_program) = $program =~ m<.*/(.+)>;

            if ( $base_program eq 'gtar' || $base_program eq 'gnutar' ) {
                $base_program = 'tar';
            }

            my $mod = "Cpanel::ExitValues::$base_program";
            last NONFATAL if !$mod->can('error_is_nonfatal_for_cpanel');

            if ( $mod->error_is_nonfatal_for_cpanel($err_code) ) {
                $ok = 1;
                my $errstr = $mod->number_to_string($err_code);

                #warn() would print a stack trace, which we don’t want.
                print STDERR "$program returned a non-fatal error code, $err_code ($errstr).\n";
            }
        }

        if ( !$ok ) {
            $LAST_CPUSYSTEM_ERROR = Cpanel::Exception::get_string($_);    # FIXME: This is a hack to avoid refactoring cpusystem
            warn "[cpbackup] " . Cpanel::Exception::get_string($_);
        }
    }
    finally {
        if ($SIGNAL_MANAGER) {
            for my $sig ( $sigman->FATAL_SIGNALS() ) {
                $sigman->delete( name => 'infanticide', signal => $sig );
            }
        }
    };

    return $ok ? 0 : 1;    #Historical: 0 for success, 1 for failure.
}

sub _nonzero_status_is_ok {

    return 0;
}

sub setup_and_clean_logs {
    if ( !-d $logdir ) {
        unlink $logdir;
        mkdir $logdir, 0700;
    }
    else {
        chmod 0700, $logdir;
    }
    if ( opendir my $logdir_dh, $logdir ) {
        while ( my $file = readdir($logdir_dh) ) {
            if ( -f $logdir . '/' . $file && ( stat(_) )[9] < ( $now - ( 86400 * 10 ) ) ) {
                unlink $logdir . '/' . $file;
            }
        }
        closedir $logdir_dh;
    }
    else {
        die "Unable to read directory $logdir: $!";
    }
}

sub die_if_not_mounted_check {
    if ( $CONF{'DIEIFNOTMOUNTED'} eq "yes" ) {
        my ( $ismounted, $mountline ) = Cpanel::BackupMount::backup_disk_is_mounted($basemount);
        if ( !$ismounted ) {
            if ( !-t STDIN ) {
                require Cpanel::iContact::Class::Backup::Failure;
                require Cpanel::Notify;
                Cpanel::Notify::notification_class(
                    'class'            => 'Backup::Failure',
                    'application'      => 'Backup::Failure',
                    'constructor_args' => [
                        'origin'     => 'Legacy cPanel Backup System',
                        'start_time' => $start_time,
                        'end_time'   => time(),
                        'reason'     => $locale->maketext( 'The system could not complete the backup because it could not mount “[_1]”.', $basemount )
                    ]
                );
            }
            print STDERR "[cpbackup] Backup failed! $basemount is not mounted!\n";
            exit 1;
        }
        else {
            print "[cpbackup] Mount found ($mountline)\n";
        }
    }
}

sub exit_STDERR_log_and_notify {
    my ( $status, $subject, $reason ) = @_;

    print STDERR "[cpbackup] $status\n";

    unlink('/var/cpanel/backups_need_to_run');

    require Cpanel::Notify;

    my $app = 'Legacy cPanel Backup System';
    Cpanel::Notify::notification_class(
        'class'            => 'Backup::Failure',
        'application'      => $app,
        'interval'         => 1,                   # Always notify
        'priority'         => 2,
        'status'           => $status,
        'constructor_args' => [
            'origin'     => $app,
            'start_time' => $start_time,
            'end_time'   => time(),
            'reason'     => $reason,
        ],
    );

    $logger->info($status);

    exit(1);
}

sub usage {
    my $prog = $0;
    $prog =~ s{^.+/(.+)$}{$1};
    print <<EOF;
$prog [options]

This script will launch the cpanel daily backup process.

Modifiers Flags:

    --force - will update the file without checking any conditions
    --weekly - force current day to treat weekly backup
    --monthly - force current day to treat weekly backup
    --debug - do not fork before launching ( devel mode )
    --allow-override
    --help - dislay this help message and exit
EOF
    exit;
}

1;

Current_dir [ 𝗡𝗢𝗧 𝗪𝗥𝗜𝗧𝗘𝗔𝗕𝗟𝗘 ] Document_root [ 𝗪𝗥𝗜𝗧𝗘𝗔𝗕𝗟𝗘 ]

Current_dir [ 𝗡𝗢𝗧 𝗪𝗥𝗜𝗧𝗘𝗔𝗕𝗟𝗘 ] Document_root [ 𝗪𝗥𝗜𝗧𝗘𝗔𝗕𝗟𝗘 ]


[ Back ]
𝗡𝗔𝗠𝗘
𝗦𝗜𝗭𝗘
𝗟𝗔𝗦𝗧 𝗧𝗢𝗨𝗖𝗛
𝗨𝗦𝗘𝗥
𝗦𝗧𝗔𝗧𝗨𝗦
𝗙𝗨𝗡𝗖𝗧𝗜𝗢𝗡𝗦
..
--
12 Sep 2026 4.57 AM
root / wheel
0711
cpan_sandbox
--
16 Jan 2026 9.28 PM
root / root
0755
php_sandbox
--
16 Jan 2026 9.28 PM
root / root
0755
MirrorSearch_pingtest
2.38 KB
9 Feb 2022 6.45 PM
root / root
0755
activesync-invite-reply
1.693 KB
9 Feb 2022 6.45 PM
root / root
0755
add_dns
2.361 KB
9 Feb 2022 6.45 PM
root / root
0755
adddns
2.361 KB
9 Feb 2022 6.45 PM
root / root
0755
addpop
6.082 KB
9 Feb 2022 6.45 PM
root / root
0755
addsystemuser
3.267 KB
9 Feb 2022 6.45 PM
root / root
0755
adduser
0.09 KB
11 Feb 2015 5.35 PM
root / root
0755
agent360.sh
16.029 KB
13 Apr 2026 8.58 PM
root / root
0700
apachelimits
4.307 KB
9 Feb 2022 6.45 PM
root / root
0755
archive_sync_zones
3.049 KB
11 Feb 2025 5.08 AM
root / root
0755
auto-adjust-mysql-limits
1.811 KB
9 Feb 2022 6.45 PM
root / root
0755
autorepair
1.244 KB
9 Feb 2022 6.45 PM
root / root
0755
backup_jobs_helper
10.878 KB
14 Jul 2026 1.33 PM
root / root
0755
backups_clean_metadata_for_missing_backups
1.574 KB
9 Feb 2022 6.45 PM
root / root
0755
backups_create_metadata
15.748 KB
9 Feb 2022 6.45 PM
root / root
0755
backups_list_user_files
4.562 KB
9 Feb 2022 6.45 PM
root / root
0755
balance_linked_node_quotas
2.581 KB
9 Feb 2022 6.45 PM
root / root
0755
biglogcheck
1.688 KB
9 Feb 2022 6.45 PM
root / root
0755
build_bandwidthdb_root_cache_in_background
1.524 KB
9 Feb 2022 6.45 PM
root / root
0755
build_cpnat
3.412 KB
9 Feb 2022 6.45 PM
root / root
0755
build_mail_sni
3.873 KB
28 Jul 2022 12.22 AM
root / root
0755
build_maxemails_config
1.142 KB
9 Feb 2022 6.45 PM
root / root
0755
builddovecotconf
9.638 KB
16 Jan 2026 9.26 PM
root / root
0755
buildeximconf
6.999 KB
11 Feb 2025 5.08 AM
root / root
0755
buildhttpdconf
2.602 KB
9 Feb 2022 6.45 PM
root / root
0755
buildpureftproot
0.526 KB
9 Feb 2022 6.45 PM
root / root
0755
call_pkgacct
2.252 KB
14 Jul 2026 1.33 PM
root / root
0755
ccs-check
4.913 KB
9 Feb 2022 6.45 PM
root / root
0755
check_cpanel_pkgs
10.602 KB
7 Aug 2026 4.57 AM
root / root
0755
check_domain_tls_service_domains.pl
6.681 KB
9 Feb 2022 6.45 PM
root / root
0755
check_immutable_files
5.489 KB
9 Feb 2022 6.45 PM
root / root
0755
check_mail_spamassassin_compiledregexps_body_0
0.183 KB
13 Apr 2016 6.55 PM
root / root
0755
check_maxmem_against_domains_count
3.566 KB
9 Feb 2022 6.45 PM
root / root
0755
check_mount_procfs
2.023 KB
9 Feb 2022 6.45 PM
root / root
0755
check_mysql
5.563 KB
11 Feb 2025 5.08 AM
root / root
0755
check_plugin_pkgs
2.453 KB
11 Feb 2025 5.08 AM
root / root
0755
check_security_advice_changes
8.278 KB
11 Feb 2025 5.08 AM
root / root
0755
check_unmonitored_enabled_services
4.557 KB
28 Jul 2022 12.22 AM
root / root
0755
check_unreliable_resolvers
3.586 KB
9 Feb 2022 6.45 PM
root / root
0755
check_users_my_cnf
6.046 KB
9 Feb 2022 6.45 PM
root / root
0755
check_valid_server_hostname
7.656 KB
28 Jul 2022 12.22 AM
root / root
0755
checkalldomainsmxs
2.404 KB
9 Feb 2022 6.45 PM
root / root
0755
checkbashshell
1.177 KB
9 Feb 2022 6.45 PM
root / root
0755
checkccompiler
1.224 KB
9 Feb 2022 6.45 PM
root / root
0755
checkexim.pl
3.098 KB
9 Feb 2022 6.45 PM
root / root
0755
checklink
1.292 KB
9 Feb 2022 6.45 PM
root / root
0755
checkusers
0.836 KB
9 Feb 2022 6.45 PM
root / root
0755
chkpaths
0.138 KB
11 Feb 2015 5.35 PM
root / root
0755
chpass
0.406 KB
9 Feb 2022 6.45 PM
root / root
0755
ckillall
1.112 KB
9 Feb 2022 6.45 PM
root / root
0755
clean_dead_mailman_locks
2.091 KB
9 Feb 2022 6.45 PM
root / root
0755
clean_up_temp_wheel_users
2.439 KB
9 Feb 2022 6.45 PM
root / root
0755
clean_user_php_sessions
4.761 KB
28 Jul 2022 12.22 AM
root / root
0755
cleandns
13.114 KB
11 Feb 2025 5.08 AM
root / root
0755
cleandns8
0.407 KB
9 Feb 2022 6.45 PM
root / root
0755
cleanmsglog
0.718 KB
11 Feb 2015 5.35 PM
root / root
0755
cleanphpsessions
0.91 KB
9 Feb 2022 6.45 PM
root / root
0755
cleanphpsessions.php
0.643 KB
31 Aug 2022 5.28 PM
root / root
0644
cleanquotas
1.612 KB
9 Feb 2022 6.45 PM
root / root
0755
cleansessions
5.891 KB
11 Feb 2025 5.08 AM
root / root
0755
cleanupinterchange
2.643 KB
9 Feb 2022 6.45 PM
root / root
0755
cleanupmysqlprivs
0.755 KB
25 Feb 2025 4.12 PM
root / root
0755
clear_orphaned_virtfs_mounts
3.56 KB
9 Feb 2022 6.45 PM
root / root
0755
comet_license_registration_sync
1.671 KB
14 Jul 2026 1.33 PM
root / root
0755
comet_protected_item_maintenance
20.782 KB
14 Jul 2026 1.33 PM
root / root
0755
comparecdb
1.524 KB
9 Feb 2022 6.45 PM
root / root
0755
compilers
2.863 KB
9 Feb 2022 6.45 PM
root / root
0755
compilerscheck
0.976 KB
9 Feb 2022 6.45 PM
root / root
0755
configure_firewall_for_cpanel
0.508 KB
9 Feb 2022 6.45 PM
root / root
0755
configure_rh_firewall_for_cpanel
0.508 KB
9 Feb 2022 6.45 PM
root / root
0755
configure_rh_ipv6_firewall_for_cpanel
0.508 KB
9 Feb 2022 6.45 PM
root / root
0755
convert2dovecot
0.666 KB
9 Feb 2022 6.45 PM
root / root
0755
convert_accesshash_to_token
4.073 KB
9 Feb 2022 6.45 PM
root / root
0755
convert_and_migrate_from_legacy_backup
1.97 KB
9 Feb 2022 6.45 PM
root / root
0755
convert_maildir_to_mdbox
1.663 KB
9 Feb 2022 6.45 PM
root / root
0755
convert_mdbox_to_maildir
1.658 KB
9 Feb 2022 6.45 PM
root / root
0755
convert_roundcube_mysql2sqlite
26.121 KB
7 Mar 2025 3.31 PM
root / root
0755
convert_to_dovecot_delivery
4.334 KB
9 Feb 2022 6.45 PM
root / root
0755
convert_whmxfer_to_sqlite
1.464 KB
9 Feb 2022 6.45 PM
root / root
0755
copy_user_mail_as_root
1.251 KB
9 Feb 2022 6.45 PM
root / root
0755
copy_user_mail_as_user
1.343 KB
9 Feb 2022 6.45 PM
root / root
0755
cpan_config
2.803 KB
9 Feb 2022 6.45 PM
root / root
0755
cpanel_initial_install
67.952 KB
11 Jun 2026 4.57 AM
root / root
0755
cpanelsync
28.312 KB
9 Feb 2022 6.45 PM
root / root
0755
cpanelsync_postprocessor
1.618 KB
9 Feb 2022 6.45 PM
root / root
0755
cpanpingtest
0.942 KB
9 Feb 2022 6.45 PM
root / root
0755
cpbackup
44.786 KB
11 Feb 2025 5.08 AM
root / root
0755
cpbackup_transport_file
5.646 KB
28 Jul 2022 12.22 AM
root / root
0755
cpdig
2.814 KB
11 Jun 2026 4.58 AM
root / root
0755
cpfetch
1.229 KB
9 Feb 2022 6.45 PM
root / root
0755
cphulkdblacklist
0.423 KB
9 Feb 2022 6.45 PM
root / root
0755
cphulkdwhitelist
1.305 KB
9 Feb 2022 6.45 PM
root / root
0755
cpservice
2.865 KB
9 Feb 2022 6.45 PM
root / root
0755
cpuser_port_authority
19.292 KB
9 Feb 2022 6.45 PM
root / root
0755
cpuser_service_manager
10.853 KB
28 Jul 2022 12.22 AM
root / root
0755
create_default_featurelist
11.624 KB
10 Sep 2026 4.31 PM
root / root
0700
createacct
30.35 MB
11 Sep 2026 4.57 AM
root / root
0700
custom_backup_destination.pl.sample
5.061 KB
28 Jul 2022 12.22 AM
root / root
0755
custom_backup_destination.pl.skeleton
2.838 KB
9 Feb 2022 6.45 PM
root / root
0755
dcpumon-wrapper
0.83 KB
9 Feb 2022 6.45 PM
root / root
0755
delpop
6.201 KB
9 Feb 2022 6.45 PM
root / root
0755
detect_env_capabilities
0.496 KB
9 Feb 2022 6.45 PM
root / root
0755
disable_prelink
2.774 KB
9 Feb 2022 6.45 PM
root / root
0755
disablefileprotect
2.188 KB
11 Feb 2025 5.08 AM
root / root
0755
distro_changed_hook
1.157 KB
9 Feb 2022 6.45 PM
root / root
0755
dnscluster
4.439 KB
9 Feb 2022 6.45 PM
root / root
0755
dnsqueuecron
1.285 KB
9 Feb 2022 6.45 PM
root / root
0755
dnssec-cluster-keys
3.75 KB
9 Feb 2022 6.45 PM
root / root
0755
dovecot_maintenance
7.658 KB
11 Feb 2025 5.08 AM
root / root
0755
dovecot_set_defaults.pl
0.961 KB
9 Feb 2022 6.45 PM
root / root
0755
dumpcdb
0.846 KB
9 Feb 2022 6.45 PM
root / root
0755
dumpinodes
0.671 KB
9 Feb 2022 6.45 PM
root / root
0755
dumpquotas
0.602 KB
9 Feb 2022 6.45 PM
root / root
0755
dumpstor
0.892 KB
9 Feb 2022 6.45 PM
root / root
0755
ea4_fresh_install
2.636 KB
9 Feb 2022 6.45 PM
root / root
0755
edit_cpanelsync_exclude_list
2.579 KB
9 Feb 2022 6.45 PM
root / root
0755
editquota
3.43 KB
11 Feb 2025 5.08 AM
root / root
0755
email_archive_maintenance
6.152 KB
9 Feb 2022 6.45 PM
root / root
0755
email_hold_maintenance
1.46 KB
9 Feb 2022 6.45 PM
root / root
0755
enable_spf_dkim_globally
8.827 KB
9 Feb 2022 6.45 PM
root / root
0755
enablefileprotect
2.099 KB
9 Feb 2022 6.45 PM
root / root
0755
ensure_autoenabled_features
3.15 MB
18 Aug 2026 4.57 AM
root / root
0700
ensure_conf_dir_crt_key
4.824 KB
9 Feb 2022 6.45 PM
root / root
0755
ensure_cpuser_file_ip
2.549 KB
9 Feb 2022 6.45 PM
root / root
0755
ensure_crontab_permissions
1.075 KB
9 Feb 2022 6.45 PM
root / root
0755
ensure_dovecot_memory_limits_meet_minimum
3.133 KB
9 Feb 2022 6.45 PM
root / root
0755
ensure_hostname_resolves
2.512 KB
1 Apr 2025 10.57 PM
root / root
0755
ensure_includes
0.587 KB
9 Feb 2022 6.45 PM
root / root
0755
ensure_vhost_includes
13.526 KB
9 Feb 2022 6.45 PM
root / root
0755
exim_tidydb
2.965 KB
9 Feb 2022 6.45 PM
root / root
0755
eximconfgen
1.318 KB
9 Feb 2022 6.45 PM
root / root
0755
eximstats_spam_check
0.847 KB
9 Feb 2022 6.45 PM
root / root
0755
expunge_expired_certificates_from_sslstorage
3.563 KB
9 Feb 2022 6.45 PM
root / root
0755
expunge_expired_pkgacct_sessions
0.832 KB
9 Feb 2022 6.45 PM
root / root
0755
expunge_expired_transfer_sessions
1.063 KB
9 Feb 2022 6.45 PM
root / root
0755
fastmail
5.157 KB
9 Feb 2022 6.45 PM
root / root
0755
featuremod
1.924 KB
9 Feb 2022 6.45 PM
root / root
0755
fetchfile
0.412 KB
9 Feb 2022 6.45 PM
root / root
0755
find_and_fix_rpm_issues
6.989 KB
11 Feb 2025 5.08 AM
root / root
0755
find_outdated_services
6.47 KB
11 Jun 2026 4.58 AM
root / root
0755
find_pids_with_inotify_watch_on_path
3.657 KB
9 Feb 2022 6.45 PM
root / root
0755
fix-cpanel-perl
28.43 KB
18 Aug 2026 4.57 AM
root / root
0755
fix-listen-on-localhost
3.941 KB
2 Jun 2026 4.57 AM
root / root
0755
fix-web-vhost-configuration
6.148 KB
9 Feb 2022 6.45 PM
root / root
0755
fix_dns_zone_ttls
1.337 KB
9 Feb 2022 6.45 PM
root / root
0755
fix_innodb_tables
4.052 KB
9 Feb 2022 6.45 PM
root / root
0755
fix_reseller_acls
10.701 KB
16 Jun 2025 1.21 PM
root / root
0755
fixetchosts
4.32 KB
9 Feb 2022 6.45 PM
root / root
0755
fixheaders
0.559 KB
9 Feb 2022 6.45 PM
root / root
0755
fixmailinglistperms
0.984 KB
9 Feb 2022 6.45 PM
root / root
0755
fixmailman
2.094 KB
9 Feb 2022 6.45 PM
root / root
0755
fixnamedviews
1.218 KB
9 Feb 2022 6.45 PM
root / root
0755
fixndc
0.403 KB
9 Feb 2022 6.45 PM
root / root
0755
fixquotas
18.393 KB
11 Feb 2025 5.08 AM
root / root
0755
fixrelayd
1.742 KB
9 Feb 2022 6.45 PM
root / root
0755
fixrndc
16.387 KB
11 Feb 2025 5.08 AM
root / root
0755
fixtar
0.491 KB
9 Feb 2022 6.45 PM
root / root
0755
fixtlsversions
4.703 KB
9 Feb 2022 6.45 PM
root / root
0755
fixvaliases
1.999 KB
9 Feb 2022 6.45 PM
root / root
0755
fixwebalizer
0.943 KB
9 Feb 2022 6.45 PM
root / root
0755
forcelocaldomain
0.874 KB
9 Feb 2022 6.45 PM
root / root
0755
ftpfetch
2.198 KB
6 Dec 2019 5.06 PM
root / root
0755
ftpquotacheck
8.312 KB
9 Feb 2022 6.45 PM
root / root
0755
ftpsfetch
2.359 KB
6 Dec 2019 5.06 PM
root / root
0755
ftpupdate
0.255 KB
10 Jan 2020 7.19 PM
root / root
0755
gather_update_log_stats
4.252 KB
27 Jul 2026 9.43 PM
root / root
0700
gather_update_logs_setupcrontab
5.451 KB
27 Jul 2026 9.43 PM
root / root
0700
gemwrapper
1.741 KB
9 Feb 2022 6.45 PM
root / root
0755
gencrt
6.26 KB
9 Feb 2022 6.45 PM
root / root
0755
generate_account_suspension_include
5.703 KB
9 Feb 2022 6.45 PM
root / root
0755
generate_google_drive_credentials
1.108 KB
9 Feb 2022 6.45 PM
root / root
0755
generate_google_drive_oauth_uri
0.961 KB
9 Feb 2022 6.45 PM
root / root
0755
generate_maildirsize
14.559 KB
2 Jul 2026 4.57 AM
root / root
0755
gensysinfo
1.157 KB
9 Feb 2022 6.45 PM
root / root
0755
get_locale_from_legacy_name_info
1.993 KB
9 Feb 2022 6.45 PM
root / root
0755
getremotecpmove
22.543 KB
1 Sep 2026 4.57 AM
root / root
0755
grpck
1.189 KB
9 Feb 2022 6.45 PM
root / root
0755
hackcheck
3.02 KB
9 Feb 2022 6.45 PM
root / root
0755
hook
1.452 KB
9 Feb 2022 6.45 PM
root / root
0755
httpspamdetect
2.823 KB
11 Jun 2026 4.58 AM
root / root
0755
hulk-unban-ip
4.08 MB
18 Aug 2026 4.57 AM
root / root
0700
import_exim_data
8.392 KB
28 Jul 2022 12.22 AM
root / root
0755
increase_filesystem_limits
0.87 KB
9 Feb 2022 6.45 PM
root / root
0755
initacls
4.987 KB
9 Feb 2022 6.45 PM
root / root
0755
initfpsuexec
0.434 KB
9 Feb 2022 6.45 PM
root / root
0755
initialize_360monitoring
2.758 KB
25 Jun 2026 1.40 PM
root / root
0700
initquotas
19.347 KB
26 Feb 2026 4.57 AM
root / root
0755
initsuexec
4.026 KB
9 Feb 2022 6.45 PM
root / root
0755
install_cpanel_analytics
1.927 KB
2 Dec 2022 4.41 PM
root / root
0755
install_dovecot_fts
1.567 KB
9 Feb 2022 6.45 PM
root / root
0755
install_plugin
2.802 KB
28 Jul 2022 12.22 AM
root / root
0755
install_tuxcare_els_php
1.845 KB
10 Dec 2025 4.21 PM
root / root
0755
installpkg
0.562 KB
9 Feb 2022 6.45 PM
root / root
0755
installpostgres
6.558 KB
12 Sep 2025 1.13 PM
root / root
0755
installsqlite3
1.822 KB
9 Feb 2022 6.45 PM
root / root
0755
ipcheck
3.926 KB
9 Feb 2022 6.45 PM
root / root
0755
ipusage
7.445 KB
9 Feb 2022 6.45 PM
root / root
0755
is_update_available
3.265 KB
20 May 2026 4.57 AM
root / root
0755
isdedicatedip
0.588 KB
9 Feb 2022 6.45 PM
root / root
0755
jetbackup-check
3.688 KB
9 Feb 2022 6.45 PM
root / root
0755
killdns
0.412 KB
9 Feb 2022 6.45 PM
root / root
0755
killdns-dnsadmin
1.152 KB
9 Feb 2022 6.45 PM
root / root
0755
killmysqluserprivs
0.423 KB
9 Feb 2022 6.45 PM
root / root
0755
killmysqlwildcard
1.152 KB
9 Feb 2022 6.45 PM
root / root
0755
killpvhost
0.833 KB
9 Feb 2022 6.45 PM
root / root
0755
killspamkeys
0.915 KB
9 Feb 2022 6.45 PM
root / root
0755
link_3rdparty_binaries
1.241 KB
11 Mar 2022 3.43 PM
root / root
0755
linksubemailtomainacct
3.172 KB
9 Feb 2022 6.45 PM
root / root
0755
listcheck
0.525 KB
9 Feb 2022 6.45 PM
root / root
0755
listsubdomains
1.049 KB
9 Feb 2022 6.45 PM
root / root
0755
litespeed-check
3.859 KB
9 Feb 2022 6.45 PM
root / root
0755
locale_export
5.206 KB
11 Feb 2025 5.08 AM
root / root
0755
locale_import
4.69 KB
29 Jul 2026 4.50 PM
root / root
0755
locale_info
3.99 KB
9 Feb 2022 6.45 PM
root / root
0755
log_retention
21.282 KB
26 Feb 2026 4.57 AM
root / root
0755
logo.dat
0.2 KB
11 Feb 2015 5.35 PM
root / root
0644
magicloader
1.938 KB
9 Feb 2022 6.45 PM
root / root
0755
maildir_converter
6.076 KB
9 Feb 2022 6.45 PM
root / root
0755
mailperm
16.526 KB
11 Feb 2025 5.08 AM
root / root
0755
mailscannerupdate
2.42 KB
9 Feb 2022 6.45 PM
root / root
0755
mainipcheck
9.996 KB
9 Feb 2022 6.45 PM
root / root
0755
maintenance
52.192 KB
7 Aug 2026 4.57 AM
root / root
0755
make_config
0.397 KB
11 Feb 2015 5.35 PM
root / root
0644
make_hostname_unowned
1.161 KB
9 Feb 2022 6.45 PM
root / root
0755
manage_extra_marketing
12.762 KB
10 Sep 2026 4.31 PM
root / root
0700
manage_greylisting
16.327 KB
11 Jun 2026 4.57 AM
root / root
0755
manage_mysql_profiles
16.335 KB
11 Feb 2025 5.08 AM
root / root
0755
mass_change_php_setting
10.648 KB
11 Jun 2026 4.58 AM
root / root
0755
migrate_ccs_to_cpdavd
47.057 KB
11 Feb 2025 5.08 AM
root / root
0755
migrate_local_ini_to_php_ini
7.409 KB
9 Feb 2022 6.45 PM
root / root
0755
migrate_whmtheme_file_to_userdata
2.954 KB
9 Feb 2022 6.45 PM
root / root
0755
mkwwwacctconf
2.329 KB
31 Aug 2022 5.28 PM
root / root
0755
modify_accounts
4.071 KB
11 Feb 2025 5.08 AM
root / root
0755
modify_featurelist
16.164 KB
10 Sep 2026 4.31 PM
root / root
0700
modify_packages
3.639 KB
11 Feb 2025 5.08 AM
root / root
0755
modsec_vendor
15.633 KB
9 Feb 2022 6.45 PM
root / root
0755
mysqlconnectioncheck
6.716 KB
11 Feb 2025 5.08 AM
root / root
0755
mysqlpasswd
4.136 KB
11 Feb 2025 5.08 AM
root / root
0755
named.ca
1.565 KB
11 Feb 2015 5.35 PM
root / root
0644
named.rfc1912.zones
0.756 KB
22 Sep 2017 4.06 PM
root / root
0644
notify_expiring_certificates
9.367 KB
11 Mar 2022 3.43 PM
root / root
0755
notify_expiring_certificates_on_linked_nodes
1.329 KB
28 Jul 2022 12.22 AM
root / root
0755
oopscheck
1.115 KB
9 Feb 2022 6.45 PM
root / root
0755
optimize_eximstats
3.882 KB
9 Feb 2022 6.45 PM
root / root
0755
panel_ini
4.111 KB
2 Jun 2026 4.57 AM
root / root
0755
patch_mail_spamassassin_compiledregexps_body_0
2.395 KB
9 Feb 2022 6.45 PM
root / root
0755
patchfdsetsize
2.719 KB
9 Feb 2022 6.45 PM
root / root
0755
pedquota
2.256 KB
9 Feb 2022 6.45 PM
root / root
0755
perform_sqlite_auto_rebuild_db_maintenance
1.983 KB
11 Feb 2025 5.08 AM
root / root
0755
perlinstaller
0.516 KB
9 Feb 2022 6.45 PM
root / root
0755
perlmods
1.176 KB
9 Feb 2022 6.45 PM
root / root
0755
php_fpm_config
9.734 KB
9 Feb 2022 6.45 PM
root / root
0755
phpini_tidy
0.671 KB
9 Feb 2022 6.45 PM
root / root
0755
pkgacct
89.907 KB
11 Jun 2026 4.58 AM
root / root
0755
post_snapshot
2.094 KB
11 Feb 2025 5.08 AM
root / root
0755
post_sync_cleanup
5.833 KB
11 Jun 2026 4.58 AM
root / root
0755
primary_virtual_host_migration
2.443 KB
9 Feb 2022 6.45 PM
root / root
0755
process_cpmove
4.315 KB
14 Jul 2026 1.33 PM
root / root
0755
process_pending_cpanel_php_pear_registration
2.728 KB
16 Jun 2025 1.21 PM
root / root
0755
proxydomains
9.592 KB
12 Sep 2025 1.13 PM
root / root
0755
ptycheck
0.707 KB
9 Feb 2022 6.45 PM
root / root
0755
purge_modsec_log
1.526 KB
9 Feb 2022 6.45 PM
root / root
0755
purge_old_config_caches
2.075 KB
9 Feb 2022 6.45 PM
root / root
0755
pwck
0.691 KB
9 Feb 2022 6.45 PM
root / root
0755
quickdnslookup
1.132 KB
9 Feb 2022 6.45 PM
root / root
0755
quickwhoisips
2.293 KB
28 Jul 2022 12.22 AM
root / root
0755
quota_auto_fix
1.406 KB
9 Feb 2022 6.45 PM
root / root
0755
quotacheck
22.363 KB
28 Jul 2022 12.22 AM
root / root
0755
rawchpass
0.449 KB
9 Feb 2022 6.45 PM
root / root
0755
rdate
4.798 KB
28 Jul 2022 12.22 AM
root / root
0755
realadduser
5.608 KB
9 Feb 2022 6.45 PM
root / root
0755
realchpass
3.258 KB
9 Feb 2022 6.45 PM
root / root
0755
realperlinstaller
5.669 KB
9 Feb 2022 6.45 PM
root / root
0755
realrawchpass
0.415 KB
9 Feb 2022 6.45 PM
root / root
0755
rebuild_bandwidthdb_root_cache
1.452 KB
9 Feb 2022 6.45 PM
root / root
0755
rebuild_dbmap
5.798 KB
9 Feb 2022 6.45 PM
root / root
0755
rebuild_provider_openid_connect_links_db
1.015 KB
9 Feb 2022 6.45 PM
root / root
0755
rebuild_whm_chrome
2.224 KB
9 Feb 2022 6.45 PM
root / root
0755
rebuilddnsconfig
25.498 KB
7 Mar 2025 3.31 PM
root / root
0755
rebuildhttpdconf
2.602 KB
9 Feb 2022 6.45 PM
root / root
0755
rebuildinstalledssldb
2.849 KB
9 Feb 2022 6.45 PM
root / root
0755
rebuildippool
0.497 KB
9 Feb 2022 6.45 PM
root / root
0755
rebuilduserssldb
0.926 KB
9 Feb 2022 6.45 PM
root / root
0755
refresh-dkim-validity-cache
5.967 KB
9 Feb 2022 6.45 PM
root / root
0755
regenerate_tokens
2.176 KB
20 Apr 2022 7.26 PM
root / root
0755
remote_log_transfer
11.597 KB
31 Aug 2022 5.28 PM
root / root
0755
remove_dovecot_index_files
5.887 KB
9 Feb 2022 6.45 PM
root / root
0755
removeacct
28.2 MB
11 Sep 2026 4.57 AM
root / root
0700
rescan_user_dovecot_fts
2.977 KB
9 Feb 2022 6.45 PM
root / root
0755
reset_mail_quotas_to_sane_values
6.818 KB
9 Feb 2022 6.45 PM
root / root
0755
resetmailmanurls
2.028 KB
9 Feb 2022 6.45 PM
root / root
0755
resetquotas
4.612 KB
11 Feb 2025 5.08 AM
root / root
0755
restartsrv
3.189 KB
11 Feb 2025 5.08 AM
root / root
0755
restartsrv_apache
0.412 KB
9 Feb 2022 6.45 PM
root / root
0755
restartsrv_apache_php_fpm
10.78 MB
11 Sep 2026 4.57 AM
root / root
0755
restartsrv_base
10.78 MB
11 Sep 2026 4.57 AM
root / root
0755
restartsrv_bind
10.78 MB
11 Sep 2026 4.57 AM
root / root
0755
restartsrv_chkservd
0.417 KB
9 Feb 2022 6.45 PM
root / root
0755
restartsrv_clamd
10.78 MB
11 Sep 2026 4.57 AM
root / root
0755
restartsrv_cpanel_php_fpm
10.78 MB
11 Sep 2026 4.57 AM
root / root
0755
restartsrv_cpanellogd
10.78 MB
11 Sep 2026 4.57 AM
root / root
0755
restartsrv_cpdavd
10.78 MB
11 Sep 2026 4.57 AM
root / root
0755
restartsrv_cpgreylistd
10.78 MB
11 Sep 2026 4.57 AM
root / root
0755
restartsrv_cphulkd
10.78 MB
11 Sep 2026 4.57 AM
root / root
0755
restartsrv_cpipv6
10.78 MB
11 Sep 2026 4.57 AM
root / root
0755
restartsrv_cpsrvd
10.78 MB
11 Sep 2026 4.57 AM
root / root
0755
restartsrv_crond
10.78 MB
11 Sep 2026 4.57 AM
root / root
0755
restartsrv_dnsadmin
10.78 MB
11 Sep 2026 4.57 AM
root / root
0755
restartsrv_dovecot
10.78 MB
11 Sep 2026 4.57 AM
root / root
0755
restartsrv_exim
10.78 MB
11 Sep 2026 4.57 AM
root / root
0755
restartsrv_eximstats
0.492 KB
9 Feb 2022 6.45 PM
root / root
0755
restartsrv_ftpd
0.416 KB
9 Feb 2022 6.45 PM
root / root
0755
restartsrv_ftpserver
0.89 KB
9 Feb 2022 6.45 PM
root / root
0755
restartsrv_httpd
10.78 MB
11 Sep 2026 4.57 AM
root / root
0755
restartsrv_imap
0.427 KB
9 Feb 2022 6.45 PM
root / root
0755
restartsrv_inetd
2.466 KB
20 Apr 2022 7.26 PM
root / root
0755
restartsrv_ipaliases
10.78 MB
11 Sep 2026 4.57 AM
root / root
0755
restartsrv_lmtp
0.427 KB
9 Feb 2022 6.45 PM
root / root
0755
restartsrv_mailman
10.78 MB
11 Sep 2026 4.57 AM
root / root
0755
restartsrv_mysql
10.78 MB
11 Sep 2026 4.57 AM
root / root
0755
restartsrv_named
0.565 KB
11 Feb 2025 5.08 AM
root / root
0755
restartsrv_nscd
10.78 MB
11 Sep 2026 4.57 AM
root / root
0755
restartsrv_p0f
10.78 MB
11 Sep 2026 4.57 AM
root / root
0755
restartsrv_pdns
10.78 MB
11 Sep 2026 4.57 AM
root / root
0755
restartsrv_pop3
0.427 KB
9 Feb 2022 6.45 PM
root / root
0755
restartsrv_postgres
0.417 KB
9 Feb 2022 6.45 PM
root / root
0755
restartsrv_postgresql
10.78 MB
11 Sep 2026 4.57 AM
root / root
0755
restartsrv_powerdns
0.432 KB
9 Feb 2022 6.45 PM
root / root
0755
restartsrv_proftpd
10.78 MB
11 Sep 2026 4.57 AM
root / root
0755
restartsrv_pureftpd
10.78 MB
11 Sep 2026 4.57 AM
root / root
0755
restartsrv_queueprocd
10.78 MB
11 Sep 2026 4.57 AM
root / root
0755
restartsrv_rsyslog
10.78 MB
11 Sep 2026 4.57 AM
root / root
0755
restartsrv_rsyslogd
0.427 KB
9 Feb 2022 6.45 PM
root / root
0755
restartsrv_spamd
10.78 MB
11 Sep 2026 4.57 AM
root / root
0755
restartsrv_sshd
10.78 MB
11 Sep 2026 4.57 AM
root / root
0755
restartsrv_syslogd
2.4 KB
11 Mar 2022 3.43 PM
root / root
0755
restartsrv_tailwatchd
10.78 MB
11 Sep 2026 4.57 AM
root / root
0755
restartsrv_unknown
10.78 MB
11 Sep 2026 4.57 AM
root / root
0755
restartsrv_xinetd
0.412 KB
9 Feb 2022 6.45 PM
root / root
0755
restorecpuserfromcache
1.961 KB
9 Feb 2022 6.45 PM
root / root
0755
restorepkg
48.7 MB
11 Sep 2026 4.57 AM
root / root
0700
rfc1912_zones.tar
10 KB
11 Feb 2015 5.35 PM
root / root
0644
rpmup
5.069 KB
11 Feb 2025 5.08 AM
root / root
0755
rsync-user-homedir.pl
5.765 KB
9 Feb 2022 6.45 PM
root / root
0755
run_if_exists
0.5 KB
9 Feb 2022 6.45 PM
root / root
0755
run_plugin_lifecycle
3.965 KB
10 Sep 2026 4.31 PM
root / root
0700
runstatsonce
0.43 KB
9 Feb 2022 6.45 PM
root / root
0755
runweblogs
1.021 KB
9 Feb 2022 6.45 PM
root / root
0755
sa-update_wrapper
3.338 KB
9 Feb 2022 6.45 PM
root / root
0755
safetybits.pl
0.824 KB
9 Feb 2022 6.45 PM
root / root
0755
secureit
4.721 KB
9 Feb 2022 6.45 PM
root / root
0755
securemysql
4.396 KB
11 Feb 2025 5.08 AM
root / root
0755
securerailsapps
3.575 KB
9 Feb 2022 6.45 PM
root / root
0755
securetmp
16.76 KB
16 Jun 2025 1.21 PM
root / root
0755
sendicq
0.463 KB
9 Feb 2022 6.45 PM
root / root
0755
servicedomains
9.592 KB
12 Sep 2025 1.13 PM
root / root
0755
set_mailman_archive_perms
1.754 KB
9 Feb 2022 6.45 PM
root / root
0755
setpostgresconfig
6.036 KB
9 Feb 2022 6.45 PM
root / root
0755
setup_greylist_db
16.327 KB
11 Jun 2026 4.57 AM
root / root
0755
setup_modsec_db
1.304 KB
9 Feb 2022 6.45 PM
root / root
0755
setup_systemd_timer_for_plugins
3.921 KB
10 Sep 2026 4.31 PM
root / root
0700
setupftpserver
10.475 KB
9 Feb 2022 6.45 PM
root / root
0755
setupmailserver
9.393 KB
7 Mar 2025 3.31 PM
root / root
0755
setupnameserver
12.596 KB
12 Sep 2025 1.13 PM
root / root
0755
show_php_settings
3.674 KB
11 Jun 2026 4.58 AM
root / root
0755
shrink_modsec_ip_database
12.974 KB
9 Feb 2022 6.45 PM
root / root
0755
simpleps
3.051 KB
9 Feb 2022 6.45 PM
root / root
0755
slurp_exim_mainlog
5.775 KB
9 Feb 2022 6.45 PM
root / root
0755
smartcheck
15.128 KB
16 Jun 2025 1.21 PM
root / root
0755
smtpmailgidonly
8.147 KB
8 Jul 2026 8.50 PM
root / root
0755
snapshot_prep
5.876 KB
11 Feb 2025 5.08 AM
root / root
0755
spamassassin_dbm_cleaner
5.853 KB
28 Jul 2022 12.22 AM
root / root
0755
spamassassindisable
3.74 KB
10 Jun 2022 3.47 PM
root / root
0755
spamboxdisable
2.27 KB
10 Jun 2022 3.47 PM
root / root
0755
sshcontrol
14.377 KB
9 Feb 2022 6.45 PM
root / root
0755
ssl_crt_status
3.836 KB
9 Feb 2022 6.45 PM
root / root
0755
suspendacct
18.082 KB
12 Sep 2025 1.13 PM
root / root
0755
suspendmysqlusers
4.775 KB
11 Feb 2025 5.08 AM
root / root
0755
swapip
3.822 KB
9 Feb 2022 6.45 PM
root / root
0755
sync-mysql-users-from-grants
1.196 KB
9 Feb 2022 6.45 PM
root / root
0755
sync_child_accounts
1.771 KB
9 Feb 2022 6.45 PM
root / root
0755
sync_contact_emails_to_cpanel_users_files
1.136 KB
10 Jun 2022 3.47 PM
root / root
0755
synctransfers
1.925 KB
9 Feb 2022 6.45 PM
root / root
0755
syslog_check
1.358 KB
9 Feb 2022 6.45 PM
root / root
0755
sysup
0.63 KB
9 Feb 2022 6.45 PM
root / root
0755
test_sa_compiled
1.067 KB
9 Feb 2022 6.45 PM
root / root
0755
transfer_account_as_user
2.342 KB
9 Feb 2022 6.45 PM
root / root
0755
transfer_accounts_as_root
4.756 KB
9 Feb 2022 6.45 PM
root / root
0755
transfer_in_progress
3.082 KB
9 Feb 2022 6.45 PM
root / root
0755
transfer_in_progress.pod
0.305 KB
17 Nov 2016 1.07 AM
root / root
0644
transfermysqlusers
10.1 MB
11 Sep 2026 4.57 AM
root / root
0700
try-later
7.949 KB
9 Feb 2022 6.45 PM
root / root
0755
unblockip
0.651 KB
9 Feb 2022 6.45 PM
root / root
0755
uninstall_cpanel_analytics
1.201 KB
9 Feb 2022 6.45 PM
root / root
0755
uninstall_dovecot_fts
0.549 KB
9 Feb 2022 6.45 PM
root / root
0755
uninstall_plugin
2.839 KB
28 Jul 2022 12.22 AM
root / root
0755
unlink_service_account
2.619 KB
9 Feb 2022 6.45 PM
root / root
0755
unpkgacct
4.603 KB
9 Feb 2022 6.45 PM
root / root
0755
unslavenamedconf
0.843 KB
9 Feb 2022 6.45 PM
root / root
0755
unsuspendacct
18.455 KB
11 Sep 2026 4.57 AM
root / root
0755
unsuspendmysqlusers
7.096 KB
11 Feb 2025 5.08 AM
root / root
0755
upcp
43.006 KB
25 Aug 2026 4.57 AM
root / root
0755
upcp-running
2.703 KB
9 Feb 2022 6.45 PM
root / root
0755
upcp.static
955.33 KB
11 Sep 2026 4.57 AM
root / root
0755
update-packages
5.069 KB
11 Feb 2025 5.08 AM
root / root
0755
update_apachectl
0.469 KB
9 Feb 2022 6.45 PM
root / root
0755
update_db_cache
0.42 KB
9 Feb 2022 6.45 PM
root / root
0755
update_dkim_keys
1.45 KB
9 Feb 2022 6.45 PM
root / root
0755
update_exim_rejects
1.213 KB
9 Feb 2022 6.45 PM
root / root
0755
update_existing_mail_quotas_for_account
4.776 KB
9 Feb 2022 6.45 PM
root / root
0755
update_feature_flags
0.935 KB
11 Feb 2025 5.08 AM
root / root
0755
update_freebusy_data
5.25 KB
1 Apr 2025 10.57 PM
root / root
0755
update_known_proxy_ips
0.979 KB
9 Feb 2022 6.45 PM
root / root
0755
update_local_rpm_versions
4.56 KB
2 Dec 2022 4.41 PM
root / root
0755
update_mailman_cache
8.345 KB
9 Feb 2022 6.45 PM
root / root
0755
update_mysql_systemd_config
1.068 KB
7 Mar 2025 3.31 PM
root / root
0755
update_neighbor_netblocks
0.476 KB
9 Feb 2022 6.45 PM
root / root
0755
update_sa_config
2.145 KB
9 Feb 2022 6.45 PM
root / root
0755
update_spamassassin_config
10.73 KB
2 Dec 2022 4.41 PM
root / root
0755
update_users_jail
0.675 KB
9 Feb 2022 6.45 PM
root / root
0755
update_users_vhosts
0.782 KB
9 Feb 2022 6.45 PM
root / root
0755
updatedomainips
0.591 KB
9 Feb 2022 6.45 PM
root / root
0755
updatenameserverips
1.656 KB
9 Feb 2022 6.45 PM
root / root
0755
updatenow
5.178 KB
28 Jul 2022 12.22 AM
root / root
0755
updatenow.static
2.02 MB
11 Sep 2026 4.57 AM
root / root
0755
updatenow.static-cpanelsync
2.03 MB
12 Sep 2026 4.57 AM
root / root
0700
updatesigningkey
1.949 KB
9 Feb 2022 6.45 PM
root / root
0755
updatessldomains
1.813 KB
9 Feb 2022 6.45 PM
root / root
0755
updatesupportauthorizations
2.492 KB
9 Feb 2022 6.45 PM
root / root
0755
updateuserdatacache
2.47 KB
9 Feb 2022 6.45 PM
root / root
0755
updateuserdomains
0.756 KB
9 Feb 2022 6.45 PM
root / root
0755
upgrade_bandwidth_dbs
2.219 KB
9 Feb 2022 6.45 PM
root / root
0755
upgrade_subaccount_databases
2.731 KB
9 Feb 2022 6.45 PM
root / root
0755
userdata_wildcard_cleanup
5.739 KB
9 Feb 2022 6.45 PM
root / root
0755
userdirctl
5.014 KB
9 Feb 2022 6.45 PM
root / root
0755
validate_sshkey_passphrase
1.215 KB
9 Feb 2022 6.45 PM
root / root
0755
verify_api_spec_files
0.739 KB
9 Feb 2022 6.45 PM
root / root
0755
verify_pidfile
1.961 KB
9 Feb 2022 6.45 PM
root / root
0755
verify_vhost_includes
7.341 KB
28 Jul 2022 12.22 AM
root / root
0755
vps_optimizer
7.819 KB
9 Feb 2022 6.45 PM
root / root
0755
vzzo-fixer
0.708 KB
9 Feb 2022 6.45 PM
root / root
0755
whmlogin
2.334 KB
9 Feb 2022 6.45 PM
root / root
0755
whoowns
1.128 KB
13 Sep 2016 4.25 PM
root / root
0755
wwwacct
30.35 MB
11 Sep 2026 4.57 AM
root / root
0700
wwwacct2
0.086 KB
11 Feb 2015 5.35 PM
root / root
0755
xfer_rcube_schema_migrate.pl
2.402 KB
9 Feb 2022 6.45 PM
root / root
0755
xfer_rcube_uid_resolver.pl
1.803 KB
9 Feb 2022 6.45 PM
root / root
0755
xferpoint
3.126 KB
9 Feb 2022 6.45 PM
root / root
0755
xfertool
16.234 KB
11 Feb 2025 5.08 AM
root / root
0755
zoneexists
0.781 KB
9 Feb 2022 6.45 PM
root / root
0755

✘✘ GRAYBYTE WORDPRESS FILE MANAGER @ 2026 CONTACT ME ✘✘
Static GIF Static GIF