# Transfer folders with PowerShell

Transfer folders with PowerShell on Evotec with installation guidance, setup notes, reference details, and project documentation.

Project

Transferetto

Small PowerShell module with FTPS/SFTP functionality

[View on GitHub](https://github.com/EvotecIT/Transferetto) [Visit Website](#) [Releases](https://github.com/EvotecIT/Transferetto/releases/tag/Transferetto-v2.0.0) [Changelog](#) [Get package](https://www.powershellgallery.com/packages/Transferetto)

Stars**93**

Forks**18**

Open issues**0**

PowerShell Gallery downloads**14067470**

Release**v2.0.4**

Language: C# Updated: 2026-11-17

Documentation

Use Transferetto to send or receive whole directory trees from PowerShell.

Folder transfer is usually where ad-hoc scripts get messy. Transferetto gives you explicit directory cmdlets so you do not have to loop over every item manually unless you want that level of control.

## Directory transfer lanes

- `Send-SFTPDirectory` and `Receive-SFTPDirectory` for secure recursive transfer
- `Send-FTPDirectory` and `Receive-FTPDirectory` for classic FTP and FTPS endpoints
- `Sync-SFTPDirectory` and `Sync-FTPDirectory` when you want comparison, dry-run, update, or mirror semantics
- `Send-SCPDirectory` and `Receive-SCPDirectory` when the server exposes SCP

## When to prefer each one

- Prefer SFTP for secure recursive transfer with richer remote filesystem support.
- Use FTP or FTPS when the target system only exposes the FTP family.
- Use SCP when you need straightforward copy semantics and the server already supports SSH.

## Upload a folder with FTPS

```powershell
Import-Module Transferetto

$ftpClient = Connect-FTP -Server 'ftp.example.com' -Credential (Get-Credential) -EncryptionMode Explicit
Send-FTPDirectory -Client $ftpClient -LocalPath "$PSScriptRoot\Upload" -RemotePath '/releases' -FolderSyncMode Update
Disconnect-FTP -Client $ftpClient
```

## Receive a folder with SFTP

```powershell
Import-Module Transferetto

$sftpClient = Connect-SFTP -Server 'sftp.example.com' -Credential (Get-Credential)
Receive-SFTPDirectory -SftpClient $sftpClient -RemotePath '/exports/nightly' -LocalPath "$PSScriptRoot\Download\Nightly" -AllowOverride
Disconnect-SFTP -SftpClient $sftpClient
```

## Preview and mirror a folder

```powershell
Import-Module Transferetto

$sftpClient = Connect-SFTP -Server 'sftp.example.com' -Credential (Get-Credential)
Sync-SFTPDirectory -SftpClient $sftpClient -LocalPath "$PSScriptRoot\Upload" -RemotePath '/incoming/releases' -Mode Mirror -DryRun
Sync-SFTPDirectory -SftpClient $sftpClient -LocalPath "$PSScriptRoot\Upload" -RemotePath '/incoming/releases' -Mode Mirror -ShowProgress
Disconnect-SFTP -SftpClient $sftpClient
```

## Practical guidance

- Use deterministic local and remote root paths.
- Decide whether existing files should be updated or preserved.
- Use `-DryRun` before `-Mode Mirror` when deleting extra destination files matters.
- Review the returned transfer results when the folder contents matter.

## Related pages

- [Transfer files with PowerShell](../transfer-files-with-powershell/)
- [SFTP and SCP workflows](../sftp-and-scp-workflows/)
- [Synchronize FTP and SFTP directories example](/projects/transferetto/examples/sync-directories/)
- [Sync a folder with SFTP example](/projects/transferetto/examples/upload-sftp-directory/)
- [Manage SFTP folders example](/projects/transferetto/examples/manage-sftp-folders/)

<!-- PowerForge markdown artifact sha256:3E045679E9D870925941A30539736E83C89F0D85C12CC585DC2C5F0EEADF4DFD -->
