download
¶
This task downloads files from the device to the local file system.
The task downloads all files that matched the provided regexp pattern. Unless the flatten
attribute is set to true
, the task will recreate the remote directories containing the files locally. Empty directories will not be created.
Attributes/Options¶
Name |
Description |
Required |
---|---|---|
cleanToDir |
If set to Defaults to |
No |
createHostDir |
If set to |
No |
downloadIfChanged |
If set to Defaults to |
No |
dryRun |
If set to Defaults to |
No |
flatten |
If set to Defaults to |
No |
include |
Regular expression pattern defining what files to download. The match is done against the entire path of a file, including the filesystem (e.g., |
Yes |
matchRequired |
If set to Defaults to |
No |
preserveTimestamp |
If set to Defaults to |
No |
toDir |
Local directory where to save the files. |
Yes |
Examples¶
Download all “*.xsd” files from “local:/”:
dpbuddy download -include "local:/.*xsd" -toDir download
dpbuddy download -domain default -include "logtemp:/.*-log" -toDir logs -downloadIfChanged
<dp:download include="local:/.*xsd" toDir="download"/>
You can find more examples under samples
in your distribution or online.