|
|
@ -1,6 +1,10 @@
|
|
|
|
#!/bin/bash
|
|
|
|
#!/bin/bash
|
|
|
|
set -e
|
|
|
|
set -e
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#
|
|
|
|
|
|
|
|
# this script compresses everything in $source and saves it in $destination
|
|
|
|
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
source="$HOME/kskcloud/Musik/"
|
|
|
|
source="$HOME/kskcloud/Musik/"
|
|
|
|
tmp="$HOME/Musik.tiny/"
|
|
|
|
tmp="$HOME/Musik.tiny/"
|
|
|
|
destination="$HOME/kskcloud/Musik.tiny/"
|
|
|
|
destination="$HOME/kskcloud/Musik.tiny/"
|
|
|
@ -31,4 +35,4 @@ find "$tmp" -type f -not -name '*.opus' -delete
|
|
|
|
# copy compressed files to target destination
|
|
|
|
# copy compressed files to target destination
|
|
|
|
cp -a --reflink=always "$tmp/"* "$destination"
|
|
|
|
cp -a --reflink=always "$tmp/"* "$destination"
|
|
|
|
|
|
|
|
|
|
|
|
rm -r "$tmp"
|
|
|
|
rm -r "$tmp"
|
|
|
|