Permalink
Browse files

fab push - exclude tmp and vim swap files

  • Loading branch information...
1 parent b7f0869 commit bfa22944fc6cb86ea41823b7327a0f036a49c5bf @swaroopch committed Jul 31, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 fabfile.py
View
@@ -21,7 +21,7 @@ def _transfer_files(src, dst, port=22):
src = src + '/'
if dst.endswith('/'):
dst = dst[:-1]
- local('rsync -avh --delete-before --copy-unsafe-links --exclude "log/*" -e "ssh -p {0}" {1} {2}'.format(port, src, dst), capture=False)
+ local('rsync -avh --delete-before --copy-unsafe-links --exclude "log/*" --exclude ".*.sw*" --exclude "tmp/*" -e "ssh -p {0}" {1} {2}'.format(port, src, dst), capture=False)
@hosts('isbn.net.in:30247')
def push():

0 comments on commit bfa2294

Please sign in to comment.