Update win_robocopy.py (#38633)
* Update win_robocopy.py <!--- Show example of UNC path copy of a single file, noting trailing backslash required --> +label: docsite_pr * addresses jborean comment, removes double quotes * Remove trailing slash part
This commit is contained in:
parent
08c392477e
commit
8498b58ad5
1 changed files with 8 additions and 2 deletions
|
@ -17,9 +17,9 @@ module: win_robocopy
|
||||||
version_added: '2.2'
|
version_added: '2.2'
|
||||||
short_description: Synchronizes the contents of two directories using Robocopy
|
short_description: Synchronizes the contents of two directories using Robocopy
|
||||||
description:
|
description:
|
||||||
- Synchronizes the contents of two directories on the remote machine.
|
- Synchronizes the contents of files/directories from a source to destination.
|
||||||
- Under the hood this just calls out to RoboCopy, since that should be available
|
- Under the hood this just calls out to RoboCopy, since that should be available
|
||||||
on most modern Windows Systems.
|
on most modern Windows systems.
|
||||||
options:
|
options:
|
||||||
src:
|
src:
|
||||||
description:
|
description:
|
||||||
|
@ -84,6 +84,12 @@ EXAMPLES = r'''
|
||||||
src: C:\DirectoryOne
|
src: C:\DirectoryOne
|
||||||
dest: C:\DirectoryTwo
|
dest: C:\DirectoryTwo
|
||||||
flags: /E /PURGE /XD SOME_DIR /XF SOME_FILE /MT:32
|
flags: /E /PURGE /XD SOME_DIR /XF SOME_FILE /MT:32
|
||||||
|
|
||||||
|
- name: Sync one file from a remote UNC path in recursive and purging mode, specifying additional special flags
|
||||||
|
win_robocopy:
|
||||||
|
src: \\Server1\Directory One
|
||||||
|
dest: C:\DirectoryTwo
|
||||||
|
flags: file.zip /E /PURGE /XD SOME_DIR /XF SOME_FILE /MT:32
|
||||||
'''
|
'''
|
||||||
|
|
||||||
RETURN = r'''
|
RETURN = r'''
|
||||||
|
|
Loading…
Add table
Reference in a new issue