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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user