How it works...

In this recipe, we used a few of Fabric's built-in functions to transfer files between local and remote machines. The local() function does an action on the local machine, whereas the remote actions are carried out by the run() function.

This is useful to check the available disk space on the target machine before uploading a file and vice versa.

This is achieved by using the Unix command, df. The source and destination file paths can be specified via the Command Prompt or can be hard coded in the source file in case of an unattended automatic execution.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.145.84.112