Archive new files in SFTP with PGP

File TransferDeveloper Tool

What it does

When a new or updated file appears in an SFTP directory, this automation downloads it and encrypts it with PGP. The encrypted file is uploaded back to the server so sensitive data stays protected without manual steps.

Who it's for

Security teams who need to encrypt sensitive files in SFTP automatically as they arrive.

How teams use this

Encrypt files matching a naming pattern

Files with intro in the name are automatically encrypted and uploaded back to SFTP. The team knows encrypted versions are ready without checking manually.

Encrypt all files in the directory

Remove the name filter so every new or updated file in the SFTP folder is encrypted and re-uploaded. This ensures no sensitive data sits unencrypted on the server.

Route encrypted files to a compliance folder

Add a step after encryption to move the file to a separate SFTP directory for audit and compliance review. This keeps encrypted and unencrypted files organized by status.

How it works

  1. Monitor SFTP directory for new files. Watch an SFTP server directory and detect when a new or updated file arrives with a name containing intro.
  2. Download file from SFTP server. Retrieve the file from the SFTP directory so the PGP encryption step can process it next.
  3. Encrypt file with PGP. Apply PGP encryption to the downloaded file using the PGP service to protect its contents before upload.
  4. Upload encrypted file to SFTP server. Send the encrypted file back to the SFTP directory so it replaces or sits alongside the original unencrypted version.