code: def sync_to_peers(peer_interface, user, paths=None, verbose=False, cmd=None,
                    gid=None, fatal=False):
      
      if paths:
          for host in collect_authed_hosts(peer_interface):
              sync_to_peer(host, user, paths, verbose, cmd, gid, fatal)
docs: Sync all hosts to an specific path
  
      The type of group is integer, it allows user has permissions to
      operate a directory have a different group id with the user id.
  
      Propagates exception if any operation fails and fatal=True.