backup system only saves file when hashes do not match

This commit is contained in:
KoenDR06 2025-01-21 13:50:09 +01:00
parent 690c23ecef
commit 5a81523bfc

View file

@ -9,5 +9,7 @@ if grep -q $(sha256sum $file) backups/sum; then
rm $file rm $file
exit 0 exit 0
fi fi
echo 'Writing new hash'
echo $(sha256sum $file) > backups/sum
echo $(sha256sum ) > backups/sum exit 0