Synchronize directories between computers using rsync (and SSH)https://twitter.com/climagic/status/363326283922419712I found this command line magic gem some time ago and was using it ever since.I started using it for synchronizing directories between computers on the same network. But it felt kind of clunky and cumbersome to get the slashes right so that it wouldn’t nest those directories and copy everything. Since both source and destination machine had the same basic directory layout, I thought ‘why not make it easier?’ … e.g. like this: sync-to other-pc ~/Documents1sync-to other-pc ~/Documents sync-to other-pc ~/Music --exclude '*.wav'1sync-to other-pc ~/Music --exclude '*.wav' sync-from other-pc ~/Music --dry-run --delete1sync-from other-pc ~/Music --dry-run --deleteIt uses rsync for the heavy lifting but does the tedious source and destination mangling for you. 😀You can find the code in this Gist.View the code on Gist.