Minion Agent can move, copy, rename, delete, zip, and unzip files and folders as job steps -- no PowerShell required. When you add a step to a job, Type includes twelve file-op choices alongside TSQL, PowerShell, and the built-ins.
Every operation comes in a File and a Folder flavor, kept as separate step types on purpose -- the step form only ever shows the fields that operation actually uses.
| Operation | File step | Folder step |
|---|---|---|
| Copy | CopyFile | CopyFolder |
| Move | MoveFile | MoveFolder |
| Delete | DeleteFile | DeleteFolder |
| Rename | RenameFile | RenameFolder |
| Zip | ZipFile | ZipFolder |
| Unzip | UnzipFile | UnzipFolder |
The step form
- Source -- the file or folder the step reads. Required for every file-op step.
- Destination -- where it goes. Not shown for Delete. For a Copy/Move/Rename file step, this must be the full destination file path, not just a folder -- pointing it at a folder that exists fails the step with "is a directory, not a file."
- If destination exists -- Copy/Move/Rename: Overwrite, Fail (default), Skip, or Auto-rename. Zip: Overwrite, Fail, or Add/Update. Unzip: Overwrite, Fail, or Skip.
- Fail if the source is already missing -- Delete only. Uncheck for an idempotent cleanup step that should succeed quietly when there's nothing to remove.
- Compression level -- Zip only: Optimal (default), Fastest, or None.
- Include the source folder itself -- ZipFolder only.
- Delete the archive after extracting -- Unzip only.