Allow for more control on what to archive

This commit is contained in:
Christian Wolf 2024-11-04 21:11:58 +01:00
parent d111bd5a50
commit d5a4c22ff5

View File

@ -13,12 +13,12 @@ then
exit 1 exit 1
fi fi
find content/albums -type d | while read dir find content/albums -type d "$@" | while read dir
do do
( (
echo "Creating archive for $dir" echo "Creating archive for $dir"
cd "$dir" cd "$dir"
find -type f -iname "*.jpg" | grep -v '/thumbnail.jpg$' | zip -u album.zip -@ # find -type f -iname "*.jpg" | grep -v '/thumbnail.jpg$' | zip -u album.zip -@
) )
done done