Skip to content

Instantly share code, notes, and snippets.

@hagmonk hagmonk/SSH tricks
Created Jan 26, 2009

Embed
What would you like to do?
#!/bin/bash
# Quite often I buy some music at home, then want to transfer it to work.
# This command is what I use to find m4a tracks created in the last day,
# and pull them to my work machine.
ssh username@domain "cd /Volumes/Media/iTunes && find . -mtime -1 -name "*.m4a" | tar -T - -cf -" | tar xf -
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.