Skip to content

Instantly share code, notes, and snippets.

@Themitchell
Last active August 29, 2015 14:08
Show Gist options
  • Save Themitchell/08ec2ce41a25e80ee219 to your computer and use it in GitHub Desktop.
Save Themitchell/08ec2ce41a25e80ee219 to your computer and use it in GitHub Desktop.
Ableton Live .asd backup script for iTunes
#!/bin/bash
# This script will backup all Ableton Live .asd files from one iTunes folder to another.
# It is particularly useful when using iTunes Match in order to manage music on multiple machines
# and allows consistent .asd files on all devices.
# Always provide trailing slashes to the directories provided for both source and target
SOURCE_ITUNES_LOCATION="andy@aliceriondsimac.home:/Volumes/Media/iTunes/"
TARGET_ITUNES_LOCATION="/Users/andy/Music/iTunes/"
# First sync all newly created .asd files back to the master
echo "Syncing .als files from source: $TARGET_ITUNES_LOCATION to target: $SOURCE_ITUNES_LOCATION"
rsync -av --include '*/' --include '*.asd' --exclude '*' $TARGET_ITUNES_LOCATION $SOURCE_ITUNES_LOCATION
# Next sync all .asd files from from the source into the target
echo "Syncing .als files from source: $SOURCE_ITUNES_LOCATION to target: $TARGET_ITUNES_LOCATION"
rsync -av --include '*/' --include '*.asd' --exclude '*' $SOURCE_ITUNES_LOCATION $TARGET_ITUNES_LOCATION
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment