salt/doc/ref/cli/salt-cp.rst

52 lines
1.0 KiB
ReStructuredText
Raw Normal View History

2011-05-23 06:58:49 +00:00
===========
``salt-cp``
===========
Copy a file to a set of systems
Synopsis
========
.. code-block:: bash
2011-05-23 06:58:49 +00:00
salt-cp '*' [ options ] SOURCE DEST
salt-cp -E '.*' [ options ] SOURCE DEST
salt-cp -G 'os:Arch.*' [ options ] SOURCE DEST
Description
===========
2012-05-23 04:43:12 +00:00
Salt copy copies a local file out to all of the Salt minions matched by the
2011-05-23 06:58:49 +00:00
given target.
Note: salt-cp uses salt's publishing mechanism. This means the privacy of the
2015-11-03 16:34:00 +00:00
contents of the file on the wire is completely dependent upon the transport
in use. In addition, if the salt-master is running with debug logging it is
possible that the contents of the file will be logged to disk.
2011-05-23 06:58:49 +00:00
Options
=======
.. program:: salt-cp
.. include:: _includes/common-options.rst
2011-05-23 06:58:49 +00:00
.. include:: _includes/timeout-option.rst
.. |timeout| replace:: 5
2011-05-23 06:58:49 +00:00
.. include:: _includes/logging-options.rst
.. |logfile| replace:: /var/log/salt/master
.. |loglevel| replace:: ``warning``
2011-05-23 06:58:49 +00:00
.. include:: _includes/target-selection.rst
2011-05-23 06:58:49 +00:00
2012-05-10 22:10:39 +00:00
See also
========
:manpage:`salt(1)`
:manpage:`salt-master(1)`
:manpage:`salt-minion(1)`