aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
Diffstat (limited to '')
-rwxr-xr-xscripts/gitAR.sh6
1 files changed, 3 insertions, 3 deletions
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
31mkdir -p ${PRGDIR}/../../backups/temp_backup${type}_${name} 31mkdir -p ${PRGDIR}/../../backups/temp_backup${type}_${name}
32pushd ${PRGDIR}/../../backups/temp_backup${type}_${name} >/dev/null 32pushd ${PRGDIR}/../../backups/temp_backup${type}_${name} >/dev/null
33if [ -f ../${name}${gar}.tar.xz ]; then 33if [ -f ../${name}${gar}.tar.xz ]; then
34 nice -n 19 tar -xf ../${name}${gar}.tar.xz 34 ionice -c3 nice -n 19 tar -xf ../${name}${gar}.tar.xz
35else 35else
36 mkdir -p ${name}${gar} 36 mkdir -p ${name}${gar}
37 git init ${name}${gar} >log 37 git init ${name}${gar} >log
@@ -64,7 +64,7 @@ find ../.. -maxdepth 1 -type f -name "${name}-*.${type}ar" -size '+0c' | sort |
64 # Deal with deletions in the inventory / sim, easy method, which becomes a nop for files that stay in the git add below. 64 # Deal with deletions in the inventory / sim, easy method, which becomes a nop for files that stay in the git add below.
65 git rm -fr * &>>../log #|| echo "ERROR - Could not clean git for ${file} !" >>../errors 65 git rm -fr * &>>../log #|| echo "ERROR - Could not clean git for ${file} !" >>../errors
66 if [ ! -f ../errors ]; then 66 if [ ! -f ../errors ]; then
67 nice -n 19 tar -xzf "${file}" || echo "ERROR - Could not unpack ${file} !" >>../errors 67 ionice -c3 nice -n 19 tar -xzf "${file}" || echo "ERROR - Could not unpack ${file} !" >>../errors
68 fi 68 fi
69 if [ ! -f ../errors ]; then 69 if [ ! -f ../errors ]; then
70 git add * &>>../log 70 git add * &>>../log
@@ -95,7 +95,7 @@ done
95popd >/dev/null 95popd >/dev/null
96 96
97if [ ! -f errors ]; then 97if [ ! -f errors ]; then
98 XZ_OPT="-9e" nice -n 19 tar -c --xz ${name}${gar} -f ../${name}${gar}.tar.xz || echo "ERROR - Could not pack gitAR!" >>errors 98 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
99fi 99fi
100 100
101popd >/dev/null 101popd >/dev/null