|
|
@ -14,7 +14,7 @@ cd "$source"
|
|
|
|
find . -type d -exec mkdir -p "$destination/{}" \;
|
|
|
|
find . -type d -exec mkdir -p "$destination/{}" \;
|
|
|
|
|
|
|
|
|
|
|
|
# copy existing files
|
|
|
|
# copy existing files
|
|
|
|
find . -type f -and \( -name '*.mp3' -or -name '*.ogg' -or -name '*.m4a' -or -name '*.opus' \) -exec cp --reflink=always "{}" "$destination/{}" \;
|
|
|
|
find . -type f -and \( -name '*.mp3' -or -name '*.ogg' -or -name '*.m4a' -or -name '*.opus' \) -exec cp -a --reflink=always "{}" "$destination/{}" \;
|
|
|
|
|
|
|
|
|
|
|
|
# set +e because ffmpeg errors on .jpg, .txt, etc.
|
|
|
|
# set +e because ffmpeg errors on .jpg, .txt, etc.
|
|
|
|
# compress with mp3
|
|
|
|
# compress with mp3
|
|
|
|