From 58745d81cfe3b8837cf67f1537a8fddd903cbbe9 Mon Sep 17 00:00:00 2001 From: Nicholas Van Doorn Date: Mon, 16 Aug 2021 01:20:46 -0700 Subject: Initial commit --- bin/process-music.sh | 14 ++++++++++++++ bin/sync-family-azure.sh | 1 + bin/sync-photos-azure.sh | 1 + 3 files changed, 16 insertions(+) create mode 100755 bin/process-music.sh create mode 100755 bin/sync-family-azure.sh create mode 100755 bin/sync-photos-azure.sh (limited to 'bin') diff --git a/bin/process-music.sh b/bin/process-music.sh new file mode 100755 index 0000000..bcf36fe --- /dev/null +++ b/bin/process-music.sh @@ -0,0 +1,14 @@ +#!/usr/bin/env bash + +cd /mnt/pool/media + +# Remove interlacing from album art for iPods +find ./downloads/deemix -iname "cover.jpg" -o -iname "cover.gif" -o -iname "cover.png" | while read file + do convert "$file" -interlace none "$file" +done + + +# Copy it over +cp -R ./downloads/deemix/* ./libraries/music +# Clear the download cache folder +rm -rf ./downloads/deemix/* diff --git a/bin/sync-family-azure.sh b/bin/sync-family-azure.sh new file mode 100755 index 0000000..970e1e8 --- /dev/null +++ b/bin/sync-family-azure.sh @@ -0,0 +1 @@ +rclone sync -P --exclude=".DS_Store" /mnt/pool/home/family nvandoorn:family/ diff --git a/bin/sync-photos-azure.sh b/bin/sync-photos-azure.sh new file mode 100755 index 0000000..56b5f3c --- /dev/null +++ b/bin/sync-photos-azure.sh @@ -0,0 +1 @@ +rclone sync -P --exclude=".DS_Store" /mnt/pool/home/nick/photos nvandoorn:photos/ -- cgit v1.2.3