New in version 2019.2.0.
Module to copy files via SCP
salt.modules.scp_mod.get(remote_path, local_path=u'', recursive=False, preserve_times=False, **kwargs)¶Transfer files and directories from remote host to the localhost of the Minion.
FalseFalsemtime and atime of transferred files and directories.22passphrase is not given.1016384TrueFalse to disable connecting to the SSH agent.TrueFalse to disable searching for discoverable private key
files in ~/.ssh/Falseknown_hosts.CLI Example:
salt '*' scp.get /var/tmp/file /tmp/file hostname=10.10.10.1 auto_add_policy=True
salt.modules.scp_mod.put(files, remote_path=None, recursive=False, preserve_times=False, saltenv=u'base', **kwargs)¶Transfer files and directories to remote host.
TrueFalsemtime and atime of transferred files and directories.22passphrase is not given.1016384TrueFalse to disable connecting to the SSH agent.TrueFalse to disable searching for discoverable private key
files in ~/.ssh/Falseknown_hosts.CLI Example:
salt '*' scp.put /path/to/file /var/tmp/file hostname=server1 auto_add_policy=True