2025-04-28, 11:24 PM
(2025-04-22, 09:36 PM)tebriel Wrote: I'm just leaving everything as flac right now but wanted to share my invocation for rclone, it's been a bit faster/cleaner for me than rsync (probably I just don't know rsync well enough but when you have a hammer everything is a nail)! Obviously very specific to my particular music library but an example of an rclone invocation at least.
Code:#!/usr/bin/env bash
set -euo pipefail
rclone \
sync \
--ignore-case \
--exclude \*.jpg \
--exclude \*.webp \
--exclude \*.mkv \
--exclude \*.mp4 \
--exclude \*.aac \
--exclude \*.m4a \
--no-update-modtime \
--progress \
/share/plex-media/music/ \
/share/external/DEV3303_1/Music/
The script I shared actually only copies over files with audio to the target directory (and adds the album art, if selected). Everything else gets ignored by it. I haven't tested this, but i'm pretty sure it would grab just the audio from a movie file if the movie had audio which needed to be converted, and would paste the whole movie file to the target directory if the movie audio didn't 'need' conversion.