Sync Script for Linux devices
#4
(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.
  Reply


Messages In This Thread
Sync Script for Linux devices - by dageek247 - 2025-04-08, 03:22 AM
RE: Sync Script for Linux devices - by tebriel - 2025-04-22, 09:36 PM
RE: Sync Script for Linux devices - by dageek247 - 2025-04-28, 11:24 PM
RE: Sync Script for Linux devices - by dageek247 - 2025-05-03, 12:33 AM

Forum Jump: