I have a directory on my local machine that I would like to copy to a remote machine (and rename it) using Fabric. I know I can copy file using put(), but what about a directory. I know it’s easy enough using scp, but I would prefer to do it from within my fabfile.py if possible.
I have a directory on my local machine that I would like to copy
Share
You can use
putfor that as well (at least in 1.0.0):See: http://docs.fabfile.org/en/1.0.0/api/core/operations.html#fabric.operations.put
Update: This example works fine (for me) on 1.0.0.: