mirror of https://schlomp.space/tastytea/hashboot
most best at the moment. woohow!
parent
0a71b249b6
commit
21813e06f0
10
hashboot
10
hashboot
|
@ -130,18 +130,18 @@ then
|
||||||
write_hashes $DIGEST_FILE_TMP
|
write_hashes $DIGEST_FILE_TMP
|
||||||
|
|
||||||
#Compare $DIGEST_FILE_TMP against ${DIGEST_FILE} and exit, when fine. Otherwise do magic.
|
#Compare $DIGEST_FILE_TMP against ${DIGEST_FILE} and exit, when fine. Otherwise do magic.
|
||||||
if diff -q --ignore-matching-lines='^#' ${DIGEST_FILE} ${DIGEST_FILE_TMP} ;
|
if diff -q --ignore-matching-lines='#hashboot' ${DIGEST_FILE} ${DIGEST_FILE_TMP} ;
|
||||||
then
|
then
|
||||||
die 0
|
die 0
|
||||||
else
|
else
|
||||||
for file in $(diff ${DIGEST_FILE} ${DIGEST_FILE_TMP} | grep -v '^#' | grep '<' | cut -d'*' -f2 | sed 's/\ /\\ /g' );
|
for file in $(diff ${DIGEST_FILE} ${DIGEST_FILE_TMP} | grep -v '#hashboot' | grep '<' | cut -d'*' -f2 | sed 's/\ /\\ /g' );
|
||||||
do
|
do
|
||||||
#lösche_aus_tar
|
#lösche_aus_tar
|
||||||
tar --delete -v -f $BACKUP_FILE $file
|
echo tar --delete -v -f $BACKUP_FILE $file
|
||||||
done
|
done
|
||||||
for file in $(diff ${DIGEST_FILE} ${DIGEST_FILE_TMP} | grep -v '^#' | grep '>' | cut -d'*' -f2 | sed 's/\ /\\ /g' );
|
for file in $(diff ${DIGEST_FILE} ${DIGEST_FILE_TMP} | grep -v '#hashboot' | grep '>' | cut -d'*' -f2 | sed 's/\ /\\ /g' );
|
||||||
do
|
do
|
||||||
tar -r -v -f $BACKUP_FILE $file
|
echo tar -r -v -f $BACKUP_FILE $file
|
||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in New Issue