I'd like to automate the FTP download of a database backup file using PowerShell. The file name includes the date so I can't just run the same FTP script every day. Is there a clean way to do this built into PowerShell or using the .Net framework?
UPDATE I forgot to mention that this is a through a secure FTP session.
Something like this could work:
Check this: Powershell: compress backups and FTP transfer
Taken from here
Works for me