����JFIF���������
__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
# write the OBDR header to tape
PROGS+=( dd )
LogPrint "Writing OBDR header to tape in drive '$TAPE_DEVICE'"
mt -f "$TAPE_DEVICE" rewind
StopIfError "Problem with rewinding tape in drive '$TAPE_DEVICE'"
mt -f "$TAPE_DEVICE" compression off >&2
if [[ $? -ne 0 ]] ; then
### Try datcompression (for SLES10,11)
mt -f "${TAPE_DEVICE}" datcompression off >&2
fi
LogIfError "Could not disable compression on tape device '$TAPE_DEVICE'"
mt -f "$TAPE_DEVICE" setblk 512
StopIfError "Could not set block size on tape device '$TAPE_DEVICE'"
### Make sure we set a tape label and total padding of 20 blocks of size 512
# FIXME: Probably this only works with the default USB_DEVICE_FILESYSTEM_LABEL='REAR-000'
# but not with another value of different length (cf. https://github.com/rear/rear/issues/1535)
printf "$USB_DEVICE_FILESYSTEM_LABEL%10232s" ' ' | tr ' ' '\0' | dd of=$TAPE_DEVICE bs=512 count=20
StopIfError "OBDR header could not be written to tape device '$TAPE_DEVICE'"
### Make sure we jump to block 20 before writing (needed for DAT320)
### "mt seek" is not supported on all tape devices, do not stop on failure
mt -f "${TAPE_DEVICE}" seek 20
LogIfError "Could not seek to block 20 on tape device '$TAPE_DEVICE'"
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| 020_translate_url.sh | File | 1.71 KB | 0644 |
|
| 040_translate_tape.sh | File | 932 B | 0644 |
|
| 050_change_tape_name.sh | File | 285 B | 0644 |
|
| 700_write_OBDR_header.sh | File | 1.2 KB | 0644 |
|