Skip to content

Instantly share code, notes, and snippets.

@melissacoleman
Last active November 7, 2017 15:42
Show Gist options
  • Save melissacoleman/d1d1e293c9447afc892224705872d410 to your computer and use it in GitHub Desktop.
Save melissacoleman/d1d1e293c9447afc892224705872d410 to your computer and use it in GitHub Desktop.
Rsync
#!/bin/bash
source .env
cd "$(dirname "$0")"
exec rsync -rlpt \
--exclude '*.pyc' \
--exclude '__pycache__/' \
--exclude 'venv/' \
--exclude '*.egg-info/' \
--delete \
./ “pi@${HOST}:project-name/"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment