����JFIF���������
__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
# 400_automatic_exclude_recreate.sh
# 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.
# Verify a local backup directory in BACKUP_URL=file:///path and
# add its mountpoint to the EXCLUDE_RECREATE array (if necessary).
local scheme="$( url_scheme "$BACKUP_URL" )"
local backup_directory="$( url_path "$BACKUP_URL" )"
local backup_directory_mountpoint=""
case $scheme in
(file)
# if user added path manually then there is no need to do it again
# FIXME: I <jsmeix@suse.de> have no idea what the above comment line means.
#
# When the backup is stored in a directory on the same filesystem as '/' is
# it results a backup.tar.gz that contains itself (but in a not-yet-complete state)
# because all of the '/' filesystem is included in the backup.
# To avoid various weird issues when the backup contains itself
# a backup directory in the '/' filesystem is simply forbidden
# regardless that a backup inside itself may not result fatal errors
# see https://github.com/rear/rear/issues/926
if ! test -e "$backup_directory" ; then
# When the backup directory does not yet exist, 'df -P' results nothing on stdout
# which means the backup directory must be created so that 'df -P' can show its mountpoint
# to find out whether or not the backup directory would be in the '/' filesystem:
mkdir $v -p "$backup_directory" >&2 || Error "Could not create backup directory '$backup_directory' (from URL '$BACKUP_URL')."
fi
test -d "$backup_directory" || Error "URL '$BACKUP_URL' specifies '$backup_directory' which is not a directory."
backup_directory_mountpoint="$( df -P "$backup_directory" | tail -1 | awk '{print $6}' )"
test "/" = "$backup_directory_mountpoint" && Error "URL '$BACKUP_URL' has the backup directory '$backup_directory' in the '/' filesystem which is forbidden."
# When the mountpoint of the backup directory is not yet excluded add its mountpoint to the EXCLUDE_RECREATE array:
if ! grep -q "$backup_directory_mountpoint" <<< "${EXCLUDE_RECREATE[*]}" ; then
DebugPrint "Adding backup directory mountpoint 'fs:$backup_directory_mountpoint' to EXCLUDE_RECREATE"
EXCLUDE_RECREATE+=( "fs:$backup_directory_mountpoint" )
fi
;;
esac
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| 040_inspect_configuration_files.sh | File | 710 B | 0644 |
|
| 050_check_NETFS_requirements.sh | File | 4.31 KB | 0644 |
|
| 060_mount_NETFS_path.sh | File | 140 B | 0644 |
|
| 070_set_backup_archive.sh | File | 19.52 KB | 0644 |
|
| 090_check_encrypted_backup.sh | File | 140 B | 0644 |
|
| 100_check_nfs_version.sh | File | 1.18 KB | 0644 |
|
| 150_save_rsync_version.sh | File | 248 B | 0644 |
|
| 400_automatic_exclude_recreate.sh | File | 2.41 KB | 0644 |
|
| 980_umount_NETFS_dir.sh | File | 154 B | 0644 |
|