����JFIF��������� Mr.X
  
  __  __    __   __  _____      _            _          _____ _          _ _ 
 |  \/  |   \ \ / / |  __ \    (_)          | |        / ____| |        | | |
 | \  / |_ __\ V /  | |__) | __ ___   ____ _| |_ ___  | (___ | |__   ___| | |
 | |\/| | '__|> <   |  ___/ '__| \ \ / / _` | __/ _ \  \___ \| '_ \ / _ \ | |
 | |  | | |_ / . \  | |   | |  | |\ V / (_| | ||  __/  ____) | | | |  __/ | |
 |_|  |_|_(_)_/ \_\ |_|   |_|  |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1
 if you need WebShell for Seo everyday contact me on Telegram
 Telegram Address : @jackleet
        
        
For_More_Tools: Telegram: @jackleet | Bulk Smtp support mail sender | Business Mail Collector | Mail Bouncer All Mail | Bulk Office Mail Validator | Html Letter private



Upload:

Command:

antiaginglove@216.73.216.231: ~ $
# Functions for manipulation of rsync URLs (both OUTPUT_URL and BACKUP_URL)

#### OLD STYLE:
# BACKUP_URL=[USER@]HOST:PATH           # using ssh (no rsh)
#
# with rsync protocol PATH is a MODULE name defined in remote /etc/rsyncd.conf file
# BACKUP_URL=[USER@]HOST::PATH          # using rsync
# BACKUP_URL=rsync://[USER@]HOST[:PORT]/PATH    # using rsync (is not compatible with new style!!!)

#### NEW STYLE:
# BACKUP_URL=rsync://[USER@]HOST[:PORT]/PATH    # using ssh
# BACKUP_URL=rsync://[USER@]HOST[:PORT]::/PATH  # using rsync

function rsync_validate () {
    local url="$1"

    if [[ "$(url_scheme "$url")" != "rsync" ]]; then # url_scheme still recognizes old style
        BugError "Non-rsync URL $url !"
    fi
}

# Determine whether the URL specifies the use of the rsync protocol (rsyncd) or ssh
# Do not call on non-rsync URLs (use url_scheme first)
function rsync_proto () {
    local url="$1"

    rsync_validate "$url"
    if grep -Eq '(::)' <<< $url ; then # new style '::' means rsync protocol
        echo rsync
    else
        echo ssh
    fi
}

# Functions to parse the URL into its components:
# USER, HOST, PORT, PATH

function rsync_user () {
    local url="$1"
    local host

    host="$(url_host "$url")"

    if grep -q '@' <<< $host ; then
        echo "${host%%@*}"    # grab user name
    else
        echo root
    fi
}

function rsync_host () {
    local url="$1"
    local host
    local path

    host="$(url_host "$url")"
    path="$(url_path "$url")"
    # remove USER@ if present
    local tmp2="${host#*@}"

    case "$(rsync_proto "$url")" in
        (rsync)
            # tmp2=witsbebelnx02::backup or tmp2=witsbebelnx02::
            echo "${tmp2%%::*}"
            ;;
        (ssh)
            # tmp2=host or tmp2=host:
            echo "${tmp2%%:*}"
            ;;
    esac
}

function rsync_path () {
    local url="$1"
    local host
    local path
    local url_without_scheme
    local url_without_scheme_user

    host="$(url_host "$url")"
    path="$(url_path "$url")"
    local tmp2="${host#*@}"

    url_without_scheme="${url#*//}"
    url_without_scheme_user="${url_without_scheme#$(rsync_user "$url")@}"

    case "$(rsync_proto "$url")" in

        (rsync)
            if grep -q '::' <<< $url_without_scheme_user ; then
                # we can not use url_path here, it uses / as separator, not ::
                local url_after_separator="${url_without_scheme_user##*::}"
                # remove leading / - this is a module name
                echo "${url_after_separator#/}"
            else
                echo "${path#*/}"
            fi
            ;;
        (ssh)
            if [ "$url_without_scheme" == "$url" ]; then
                # no scheme - old-style URL
                if grep -q ':' <<< $url_without_scheme_user ; then
                    echo "${url_without_scheme_user##*:}"
                else
                    BugError "Old-style rsync URL $url without : !"
                fi
            else
                echo "$path"
            fi
            ;;

    esac
}

function rsync_port () {
    # XXX changing port not implemented yet
    echo 873
}

# Full path to the destination directory on the remote server,
# includes RSYNC_PREFIX. RSYNC_PREFIX is not given by the URL,
# it is a global parameter (by default derived from hostname).
function rsync_path_full () {
    local url="$1"

    echo "$(rsync_path "$url")/${RSYNC_PREFIX}"
}

# Argument for the ssh command to log in to the remote host ("user@host")
function rsync_remote_ssh () {
    local url="$1"

    local user host

    user="$(rsync_user "$url")"
    host="$(rsync_host "$url")"

    echo "${user}@${host}"
}

# Argument for the rsync command to reach the remote host, without path.
function rsync_remote_base () {
    local url="$1"

    local user host port

    user="$(rsync_user "$url")"
    host="$(rsync_host "$url")"
    port="$(rsync_port "$url")"

    case "$(rsync_proto "$url")" in

        (rsync)
            echo "rsync://${user}@${host}:${port}/"
            ;;
        (ssh)
            echo "$(rsync_remote_ssh "$url"):"
            ;;

    esac
}

# Complete argument to rsync to reach the remote location identified by URL,
# but without the added RSYNC_PREFIX.
# This essentially converts our rsync:// URLs into a form accepted by the rsync command.
function rsync_remote () {
    local url="$1"

    echo "$(rsync_remote_base "$url")$(rsync_path "$url")"
}

# Complete argument to rsync including even RSYNC_PREFIX.
# Determined from the URL and RSYNC_PREFIX.
function rsync_remote_full () {
    local url="$1"

    echo "$(rsync_remote_base "$url")$(rsync_path_full "$url")"
}

Filemanager

Name Type Size Permission Actions
validated Folder 0755
.shellcheckrc File 25 B 0644
_input-output-functions.sh File 87.9 KB 0644
array-functions.sh File 1.08 KB 0644
authtoken-functions.sh File 16.83 KB 0644
bareos-functions.sh File 10.3 KB 0644
bootloader-functions.sh File 42.15 KB 0644
borg-functions.sh File 6.9 KB 0644
checklayout-workflow.sh File 646 B 0644
columns-functions.sh File 2.95 KB 0644
config-functions.sh File 7.87 KB 0644
drlm-functions.sh File 2.6 KB 0644
dump-workflow.sh File 6.89 KB 0644
filesystems-functions.sh File 10.63 KB 0644
finalizeonly-workflow.sh File 1.22 KB 0644
format-workflow.sh File 3.79 KB 0644
framework-functions.sh File 8.55 KB 0644
global-functions.sh File 41.29 KB 0644
help-workflow.sh File 3.5 KB 0644
hp_raid-functions.sh File 871 B 0644
layout-functions.sh File 61.66 KB 0644
layoutonly-workflow.sh File 803 B 0644
linux-functions.sh File 12.85 KB 0644
mail-functions.sh File 1.39 KB 0644
mkbackup-workflow.sh File 585 B 0644
mkbackuponly-workflow.sh File 368 B 0644
mkboot-workflow.sh File 1.13 KB 0644
mkopalpba-workflow.sh File 890 B 0644
mkrescue-functions.sh File 5.72 KB 0644
mkrescue-workflow.sh File 461 B 0644
mountonly-workflow.sh File 1.7 KB 0644
network-functions.sh File 8.53 KB 0644
opal-functions.sh File 15.67 KB 0644
opaladmin-workflow.sh File 18.37 KB 0644
output-functions.sh File 3.17 KB 0644
progresssubsystem.nosh File 2.32 KB 0644
rear-shell.bashrc File 2.67 KB 0644
recover-workflow.sh File 1.57 KB 0644
restoreonly-workflow.sh File 832 B 0644
rsync-functions.sh File 4.56 KB 0644
savelayout-workflow.sh File 739 B 0644
serial-functions.sh File 3.98 KB 0644
sesam-functions.sh File 1.18 KB 0644
shell-workflow.sh File 648 B 0644
udev-workflow.sh File 3.27 KB 0644
uefi-functions.sh File 6.33 KB 0644
validate-workflow.sh File 4.88 KB 0644
write-protect-functions.sh File 7.75 KB 0644