Remove icon_cache from the backup

Problem
=======

* Icon cache just takes up space in the resulting backup

Solution
========

* Remove it from the backup
This commit is contained in:
2022-12-26 14:11:39 -08:00
parent 9702287a92
commit 4eab6b38b2
2 changed files with 4 additions and 2 deletions

View File

@@ -13,4 +13,4 @@
* Run `aws configure`
* Symlink unit files to `/etc/systemd/system`
* Run `systemctl enable` on units and slices
* Run `systemctl start` on timers
* Run `systemctl start` on timers

View File

@@ -43,7 +43,9 @@ cp -r "${ROOT_DIR}/data" "./data"
cp "${ROOT_DIR}/.env" "./.env"
cp "${ROOT_DIR}/bitwarden.exceede.com.conf" "./bitwarden.exceede.com.conf"
sum=$(find . -type f -not -name "${dumpfile}" -and -not -path "./data/icon_cache/*" -exec md5sum {} + | LC_ALL=C sort | md5sum | cut -d ' ' -f 1)
rm -rf ./data/icon_cache
sum=$(find . -type f -not -name "${dumpfile}" -exec md5sum {} + | LC_ALL=C sort | md5sum | cut -d ' ' -f 1)
rm sorted.sql