����JFIF���������
__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
# 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.
#
# 500_start_clone.sh
LogPrint "Creating $backuparchive from $BLOCKCLONE_SOURCE_DEV \
using $BLOCKCLONE_PROG"
# Check if source 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 backup, $BLOCKCLONE_SOURCE_DEV is mounted."
fi
local umount_res="-1"
if is_true "$BLOCKCLONE_TRY_UNMOUNT" && [ "$is_mounted" = "1" ]; then
local mp=$(get_mountpoint $BLOCKCLONE_SOURCE_DEV)
# try unmount
if [ ! -z "$mp" ]; then
# save mount parameters for later
local mount_cmd=$(build_remount_cmd $mp)
umount_mountpoint $mp
umount_res=$?
fi
fi
# Just put entry into log, that backup 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 "Backup might be inconsistent."
fi
# BLOCKCLONE progs could be handled here
case "$(basename ${BLOCKCLONE_PROG})" in
(ntfsclone)
ntfsclone --save-image $BLOCKCLONE_PROG_OPTS \
-O $backuparchive $BLOCKCLONE_SOURCE_DEV
;;
(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 if=$BLOCKCLONE_SOURCE_DEV of=$backuparchive
;;
esac
StopIfError "Failed to create archive with $BLOCKCLONE_SOURCE_DEV"
# If $BLOCKCLONE_SOURCE_DEV was initially mounted AND successfully unmounted,
# try to remount it before leaving
if [ "$umount_res" = "0" ]; then
if [ ! -z "$mount_cmd" ]; then
LogPrint "Trying to remount $mp calling $mount_cmd"
$mount_cmd
else
# Last ditch effort...
LogPrint "Trying to remount $mp (trust /etc/fstab)"
mount $v $mp
fi
fi
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| 100_mount_NETFS_path.sh | File | 140 B | 0644 |
|
| 150_save_copy_of_prefix_dir.sh | File | 940 B | 0644 |
|
| 200_make_prefix_dir.sh | File | 568 B | 0644 |
|
| 250_create_lock.sh | File | 568 B | 0644 |
|
| 400_copy_disk_struct_files.sh | File | 772 B | 0644 |
|
| 500_start_clone.sh | File | 2.28 KB | 0644 |
|
| 970_remove_lock.sh | File | 277 B | 0644 |
|
| 980_umount_NETFS_dir.sh | File | 154 B | 0644 |
|