Skip to content
Open
Show file tree
Hide file tree
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
3 changes: 3 additions & 0 deletions usr/share/rear/conf/default.conf
Original file line number Diff line number Diff line change
Expand Up @@ -3373,6 +3373,9 @@ COVE_VERIFY_PATHS=(/boot/efi /usr/bin /usr/sbin /usr/lib)
# configs - check the hash sum of configuration files specified in CHECK_CONFIG_FILES
COVE_CHECK_INTEGRITY="${COVE_CHECK_INTEGRITY:-binaries}"

# Node paths that will be excluded from FileSystem restore session
COVE_EXCLUDE_NODES_FROM_RESTORE=()

##
# End of BACKUP=COVE default settings.
####
Expand Down
9 changes: 7 additions & 2 deletions usr/share/rear/restore/COVE/default/400_restore_with_cove.sh
Original file line number Diff line number Diff line change
Expand Up @@ -168,11 +168,16 @@ restore_args=(
control.restore.start
-datasource FileSystem
-restore-to "${TARGET_FS_ROOT}"
-exclude "${COVE_REAL_INSTALL_DIR}"
-session-search-policy OldestIfRequestedNotFound
)

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

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

for exclusion in "${COVE_EXCLUDE_NODES_FROM_RESTORE[@]}"; do
restore_args+=( -exclude "$exclusion" )
done

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

Expand Down