Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 2 additions & 14 deletions usr/share/rear/restore/COVE/default/400_restore_with_cove.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ readonly GREEN='\033[0;32m'
readonly NC='\033[0m' # No color

readonly COVE_CLIENT_TOOL="${COVE_INSTALL_DIR}/bin/ClientTool"
readonly COVE_AUTH_TOOL_DIR="/root/.auth-tool"

SKIP_PROGRESS_BAR=0

Expand Down Expand Up @@ -120,15 +119,6 @@ function cove_move_dir_to_target() {
ln -s "${TARGET_FS_ROOT}/${source_dir#/}" "${source_dir}"
}

# Moves Cove installation files and credentials to target file system
function cove_move_files_to_target() {
# Move Backup manager installation files to target file system
cove_move_dir_to_target "${COVE_INSTALL_DIR}"

# Move mTLS credentials to target file system
cove_move_dir_to_target "${COVE_AUTH_TOOL_DIR}"
}

# Waits for a new FileSystem restore session and gets its status
# $1: prev sessions
function cove_wait_for_new_session() {
Expand All @@ -152,8 +142,8 @@ function cove_wait_for_new_session() {
UserOutput "
The System is now ready for restore."

# Move Backup manager installation files and credentials to target file system
cove_move_files_to_target
# Move Backup manager installation files to target file system
cove_move_dir_to_target "${COVE_INSTALL_DIR}"

# Start Backup Manager
cove_start_pc
Expand All @@ -172,8 +162,6 @@ restore_args=(
-session-search-policy OldestIfRequestedNotFound
)

[ -e "${COVE_AUTH_TOOL_DIR}" ] && restore_args+=( -exclude "${COVE_AUTH_TOOL_DIR}" )

[ -z "${COVE_TIMESTAMP}" ] || restore_args+=( -time "${COVE_TIMESTAMP}" )

prompt="Select what to do"
Expand Down