fab.tools.rsync module#

This file contains the Rsync class for synchronising file trees.

class fab.tools.rsync.Rsync#

Bases: Tool

This is the base class for rsync.

execute(src, dst)#

Execute an rsync command from src to dst. It supports ~ expansion for src, and makes sure that src end with a / so that rsync does not create a sub-directory.

Parameters:
  • src (Path) – the input path.

  • dst (Path) – destination path.