Skip to main content
SaltStack Support

Moving Directory or Content to Another Location

To move a directory and everything it contains, use the file module:

wiki-move:
  file:
    - rename
    - name: /var/www/html/wiki
    - source: /tmp/dokuwiki-2014-05-05a 
    - force: True

For more information visit: module-salt.states.file

  • Was this article helpful?