From 16505439f834f2f5f901866378a4b56ac8c3733c Mon Sep 17 00:00:00 2001 From: William Harrington Date: Tue, 23 Mar 2021 17:20:59 -0500 Subject: Fix some issues with backup file location and use /home/kb0iic variable and use -T in front of NUMPROCS for XZ_OPTS. --- chapter6/backup.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'chapter6/backup.sh') diff --git a/chapter6/backup.sh b/chapter6/backup.sh index 0f474d6..0cbd314 100644 --- a/chapter6/backup.sh +++ b/chapter6/backup.sh @@ -9,7 +9,7 @@ else echo -ne "${GRN}Backing up ${YLW}${LFS}${GRN} to ${YLW}${FILE}${RST}... " pushd "${LFS}" > /dev/null || exit 1 - sudo XZ_OPTS="${NUMPROCS} -e" tar -cJpf /home/"${USER}"/"${FILE}" "${DIRS}" & pid=$! + sudo XZ_OPTS="-T${NUMPROCS} -e" tar -cJpf "${HOME}"/"${FILE}" "${DIRS}" & pid=$! spinner "$pid" retval=$? if [ "$retval" -ne 0 ]; then -- cgit v1.2.3-54-g00ecf