aboutsummaryrefslogtreecommitdiffstats
path: root/chapter7/backup.sh
diff options
context:
space:
mode:
authorWilliam Harrington <kb0iic@berzerkula.org>2021-04-05 20:28:05 -0500
committerWilliam Harrington <kb0iic@berzerkula.org>2021-04-05 20:28:05 -0500
commit56dbd9d14e01fc4e4d4987a047f952ffa57f7777 (patch)
treec948160876b538781d5b1e6cbe7ba04a797268ef /chapter7/backup.sh
parent0aa6a71f970f258691719ca986b84104d042d82c (diff)
Make tar command verbose and log to backup and cleanup logs.
Diffstat (limited to 'chapter7/backup.sh')
-rw-r--r--chapter7/backup.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/chapter7/backup.sh b/chapter7/backup.sh
index a6abb86..7745551 100644
--- a/chapter7/backup.sh
+++ b/chapter7/backup.sh
@@ -9,7 +9,7 @@ else
printf "%b" "${GRN}Backing up ${YLW}${LFS}${GRN} to ${YLW}${file}${RST}... "
pushd "${LFS}" > /dev/null || exit 1
- sudo XZ_OPTS="-T${NUMPROCS} -e" tar cJpf "${HOME}"/"${file}" "${directories[@]}" >/dev/null 2>&1 & pid=$!
+ sudo XZ_OPTS="-T${NUMPROCS} -e" tar cJvpf "${HOME}"/"${file}" "${directories[@]}" >"${LFS}"/sources/log/chapter7/backup.log 2>&1 & pid=$!
spinner "$pid" "${SPINNER}"
retval=$?
if [ "${retval}" -ne 0 ]; then