diff options
Diffstat (limited to '')
-rwxr-xr-x | scripts/gitAR.sh | 6 |
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 | |||
31 | mkdir -p ${PRGDIR}/../../backups/temp_backup${type}_${name} | 31 | mkdir -p ${PRGDIR}/../../backups/temp_backup${type}_${name} |
32 | pushd ${PRGDIR}/../../backups/temp_backup${type}_${name} >/dev/null | 32 | pushd ${PRGDIR}/../../backups/temp_backup${type}_${name} >/dev/null |
33 | if [ -f ../${name}${gar}.tar.xz ]; then | 33 | if [ -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 |
35 | else | 35 | else |
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 | |||
95 | popd >/dev/null | 95 | popd >/dev/null |
96 | 96 | ||
97 | if [ ! -f errors ]; then | 97 | if [ ! -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 |
99 | fi | 99 | fi |
100 | 100 | ||
101 | popd >/dev/null | 101 | popd >/dev/null |