Module Expr Str ImportFrom alias Import alias Import alias FunctionDef arguments args defaults body Expr Str Return BoolOpOr BoolOpAnd Call AttributeLoad AttributeLoad NameLoad attr attr Str Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return BinOpAdd Str Call AttributeLoad Str attr ListComp NameLoad comprehension NameStore Call AttributeLoad Call AttributeLoad SubscriptLoad Call AttributeLoad NameLoad attr Str Index Num attr Str Str attr Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad Assign NameStore Call NameLoad For NameStore SubscriptLoad Call AttributeLoad SubscriptLoad Call AttributeLoad NameLoad attr Str Index Num attr Str Slice Num body If Call AttributeLoad NameLoad attr Str body Expr Call AttributeLoad NameLoad attr SubscriptLoad Call AttributeLoad NameLoad attr Str Num Index Num orelse Expr Call AttributeLoad NameLoad attr NameLoad Return Dict Str Str BoolOpOr Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad NameLoad Str BoolOpOr Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad NameLoad Str decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad body Expr Str Assign NameStore Dict Str Str Str Str NameLoad Dict NameLoad Str If UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Assign SubscriptStore NameLoad Index Str NameLoad Assign SubscriptStore NameLoad Index Str Call AttributeLoad Str attr keyword NameLoad orelse If BoolOpAnd UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad UnaryOpNot NameLoad UnaryOpNot NameLoad body Assign SubscriptStore NameLoad Index Str NameLoad Assign SubscriptStore NameLoad Index Str Call AttributeLoad Str attr keyword NameLoad orelse If BoolOpAnd UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad If SubscriptLoad NameLoad Index Str body Assign NameStore NameLoad Assign NameStore Call SubscriptLoad NameLoad Index Str NameLoad NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad If BoolOpOr SubscriptLoad NameLoad Index Str NameLoad body Assign SubscriptStore NameLoad Index Str NameLoad Assign SubscriptStore NameLoad Index Str Call NameLoad SubscriptLoad NameLoad Index Str Return NameLoad If Call AttributeLoad NameLoad attr Str body Assign SubscriptStore NameLoad Index Str NameLoad Assign SubscriptStore NameLoad Index Str SubscriptLoad NameLoad Index Str Assign SubscriptStore NameLoad Index Str SubscriptLoad NameLoad Index Str orelse Assign SubscriptStore NameLoad Index Str Call NameLoad SubscriptLoad NameLoad Index Str Assign SubscriptStore NameLoad Index Str Call NameLoad SubscriptLoad NameLoad Index Str Return NameLoad decorator_list
N/A N/A 
State to synchronize files and directories with rsync.

.. versionadded:: 2016.3.0

.. code-block:: yaml

    /opt/user-backups:
      rsync.synchronized:
        - source: /home
        - force: True

 __future__ absolute_import N/A salt.utils N/A os __virtual__ N/A N/A N/A N/A N/A 
    Only if Rsync is available.

    :return:
     N/A N/A N/A N/A N/A N/A salt utils which rsync rsync False N/A _get_summary N/A N/A rsync_out N/A N/A N/A 
    Get summary from the rsync successfull output.
     N/A N/A -  N/A N/A 
-  join N/A elm N/A elm N/A N/A N/A N/A N/A N/A N/A rsync_out split N/A -1 replace split elm N/A _get_changes N/A N/A rsync_out N/A N/A N/A 
    Get changes from the rsync successfull output.
     N/A copied N/A list N/A deleted N/A list N/A line N/A N/A N/A N/A N/A N/A rsync_out split N/A 0 split N/A 1 N/A N/A N/A N/A line startswith deleting  N/A N/A N/A N/A deleted append N/A N/A N/A line split 1 N/A -1 N/A N/A N/A N/A copied append line N/A N/A copied deleted N/A N/A N/A N/A os linesep join N/A sorted copied N/A N/A N/A N/A N/A os linesep join N/A sorted deleted N/A N/A synchronized N/A N/A name source delete force update passwordfile exclude excludefrom prepare dryrun N/A False False False None None None False False N/A N/A 
    Guarantees that the source directory is always copied to the target.

    name
        Name of the target directory.

    source
        Source directory.

    prepare
        Create destination directory if it does not exists.

    delete
        Delete extraneous files from the destination dirs (True or False)

    force
        Force deletion of dirs even if not empty

    update
        Skip files that are newer on the receiver (True or False)

    passwordfile
        Read daemon-access password from the file (path)

    exclude
        Exclude files, that matches pattern.

    excludefrom
        Read exclude patterns from the file (path)

    dryrun
        Perform a trial run with no changes made. Is the same as
        doing test=True

        .. versionadded:: 2016.3.1
     N/A ret N/A name changes result comment name N/A True N/A N/A N/A N/A N/A os path exists source N/A N/A N/A ret N/A result False N/A N/A ret N/A comment N/A N/A Source directory {src} was not found. format src source N/A N/A N/A N/A N/A N/A N/A os path exists name N/A force N/A prepare N/A N/A N/A ret N/A result False N/A N/A ret N/A comment N/A N/A Destination directory {dest} was not found. format dest name N/A N/A N/A N/A N/A N/A N/A os path exists name prepare N/A N/A N/A N/A os makedirs name N/A N/A __opts__ N/A test N/A N/A dryrun True N/A result N/A N/A __salt__ N/A rsync.rsync source name delete delete force force update update passwordfile passwordfile exclude exclude excludefrom excludefrom dryrun dryrun N/A N/A N/A __opts__ N/A test dryrun N/A N/A N/A ret N/A result None N/A N/A ret N/A comment N/A _get_summary N/A result N/A stdout N/A ret N/A N/A N/A result get retcode N/A N/A N/A ret N/A result False N/A N/A ret N/A comment N/A result N/A stderr N/A N/A ret N/A changes N/A result N/A stdout N/A N/A N/A ret N/A comment N/A _get_summary N/A result N/A stdout N/A N/A ret N/A changes N/A _get_changes N/A result N/A stdout N/A ret N/A