2011-05-23 06:58:49 +00:00
|
|
|
===========
|
|
|
|
``salt-cp``
|
|
|
|
===========
|
|
|
|
|
|
|
|
Copy a file to a set of systems
|
|
|
|
|
|
|
|
Synopsis
|
|
|
|
========
|
|
|
|
|
2014-07-13 16:02:33 +00:00
|
|
|
.. 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.
|
|
|
|
|
2016-08-15 21:59:41 +00:00
|
|
|
Salt copy is only intended for use with small files (< 100KB). If you need
|
|
|
|
to copy large files out to minions please use the cp.get_file function.
|
|
|
|
|
2015-06-02 15:14:22 +00:00
|
|
|
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
|
2015-06-02 15:14:22 +00:00
|
|
|
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
|
|
|
|
|
2013-08-10 13:19:43 +00:00
|
|
|
.. include:: _includes/common-options.rst
|
2011-05-23 06:58:49 +00:00
|
|
|
|
2013-08-10 13:45:21 +00:00
|
|
|
.. include:: _includes/timeout-option.rst
|
|
|
|
.. |timeout| replace:: 5
|
2011-05-23 06:58:49 +00:00
|
|
|
|
2013-08-10 13:06:53 +00:00
|
|
|
.. include:: _includes/logging-options.rst
|
|
|
|
.. |logfile| replace:: /var/log/salt/master
|
|
|
|
.. |loglevel| replace:: ``warning``
|
2011-05-23 06:58:49 +00:00
|
|
|
|
2013-08-10 09:27:31 +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)`
|
2015-06-02 15:14:22 +00:00
|
|
|
:manpage:`salt-minion(1)`
|