While automating a remote system administration task using Fabric, if you want to transfer files between your local machine and the remote machine with SSH, you can use the Fabric's built-in get() and put() functions. This recipe shows you how we can create custom functions to transfer files smartly by checking the disk space before and after the transfer.