From 69c83920017bb1876d23e8170ef516d895d08de1 Mon Sep 17 00:00:00 2001 From: root Date: Sun, 19 May 2019 20:09:52 +1000 Subject: Add ionice to gitAR. --- scripts/gitAR.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'scripts') diff --git a/scripts/gitAR.sh b/scripts/gitAR.sh index bbcc761..d988077 100755 --- a/scripts/gitAR.sh +++ b/scripts/gitAR.sh @@ -31,7 +31,7 @@ fi mkdir -p ${PRGDIR}/../../backups/temp_backup${type}_${name} pushd ${PRGDIR}/../../backups/temp_backup${type}_${name} >/dev/null if [ -f ../${name}${gar}.tar.xz ]; then - nice -n 19 tar -xf ../${name}${gar}.tar.xz + ionice -c3 nice -n 19 tar -xf ../${name}${gar}.tar.xz else mkdir -p ${name}${gar} git init ${name}${gar} >log @@ -64,7 +64,7 @@ find ../.. -maxdepth 1 -type f -name "${name}-*.${type}ar" -size '+0c' | sort | # Deal with deletions in the inventory / sim, easy method, which becomes a nop for files that stay in the git add below. git rm -fr * &>>../log #|| echo "ERROR - Could not clean git for ${file} !" >>../errors if [ ! -f ../errors ]; then - nice -n 19 tar -xzf "${file}" || echo "ERROR - Could not unpack ${file} !" >>../errors + ionice -c3 nice -n 19 tar -xzf "${file}" || echo "ERROR - Could not unpack ${file} !" >>../errors fi if [ ! -f ../errors ]; then git add * &>>../log @@ -95,7 +95,7 @@ done popd >/dev/null if [ ! -f errors ]; then - XZ_OPT="-9e" nice -n 19 tar -c --xz ${name}${gar} -f ../${name}${gar}.tar.xz || echo "ERROR - Could not pack gitAR!" >>errors + XZ_OPT="-9e" ionice -c3 nice -n 19 tar -c --xz ${name}${gar} -f ../${name}${gar}.tar.xz || echo "ERROR - Could not pack gitAR!" >>errors fi popd >/dev/null -- cgit v1.1