From f7c5e68860da123d87c4b2da63755ff76e369e2f Mon Sep 17 00:00:00 2001 From: Arthur Roberts Date: Fri, 27 Jun 2025 20:54:54 +0100 Subject: [PATCH] Added a couple of scripts to do with music --- misc_scripts/music_rsync.rsync | 4 ++++ misc_scripts/picard_dates_with_dots.txt | 3 +++ 2 files changed, 7 insertions(+) create mode 100644 misc_scripts/music_rsync.rsync create mode 100644 misc_scripts/picard_dates_with_dots.txt diff --git a/misc_scripts/music_rsync.rsync b/misc_scripts/music_rsync.rsync new file mode 100644 index 0000000..4f8f437 --- /dev/null +++ b/misc_scripts/music_rsync.rsync @@ -0,0 +1,4 @@ +# These are the settings I think are appropriate - I did use to use --ignore-times, I can't remember why +# I note I'm still getting some errors on this, but I think that could be because some of the music files are owned by root + +rsync --archive --no-perms --no-owner --no-group --recursive --verbose /home/arthurr/Music/* arthurr@truenas.local:/mnt/Bertha/Music diff --git a/misc_scripts/picard_dates_with_dots.txt b/misc_scripts/picard_dates_with_dots.txt new file mode 100644 index 0000000..c513860 --- /dev/null +++ b/misc_scripts/picard_dates_with_dots.txt @@ -0,0 +1,3 @@ +$if2(%albumartist%,%artist%)/ +$if(%albumartist%,$if(%date%,$replace(%date%,-,.) - )%album%/,) +$if($gt(%totaldiscs%,1),$if($gt(%totaldiscs%,9),$num(%discnumber%,2),%discnumber%)-,)$if($and(%albumartist%,%tracknumber%),$num(%tracknumber%,2) ,)$if(%_multiartist%,%artist% - ,)%title%