Skip to content

Instantly share code, notes, and snippets.

@chilicat
Created October 10, 2013 10:30
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chilicat/6916304 to your computer and use it in GitHub Desktop.
Save chilicat/6916304 to your computer and use it in GitHub Desktop.
Salt: How to copy a directory recursive
/tmp/myDir
file.recurse:
- source: salt://files/myDir
- user: root
- group: root
@francis2211
Copy link

correction.

/tmp/myDir:
file.recurse:
- source: salt://files/myDir
- user: root
- group: root

@poige
Copy link

poige commented Oct 25, 2015

JFI, file.recurse has no support for preserving permissions: saltstack/salt#2707

@pranavcode
Copy link

Note: This will copy the directory recursively from Salt master to minion, but not within minion.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment