Skip to content

Instantly share code, notes, and snippets.

View alessandro-molari's full-sized avatar
💭
corrupting memory

Alessandro Molari alessandro-molari

💭
corrupting memory
View GitHub Profile
@alessandro-molari
alessandro-molari / migrate.zsh
Last active August 29, 2015 14:12 — forked from LMolr/migrate
Perform filesystem migration to a destination server (via rsync)
#!/usr/bin/env zsh
# parse arguments {{{
zparseopts -A _opts -user: -dstsrv: -dstpath:
if [[ $? -ne 0 ]]; then
echo 'invalid arguments'
exit -1