FTP to FTP / Backup and Upload between FTP (Batch Script)
Hello,
I need script to download all folders from an FTP and upload this same folders to another remote FTP. Unfortunately, I know the WinSCP don't support FXP (FTP to FTP directly).
I need a full script to download from FTP and upload to another remote FTP.
My script to download :
My script to upload:
And my commands to run in PowerShell is:
Currently I made two scripts like this and it works, but I wanted to simplify and if possible put everything in a single script and if possible to delete the source files after all the transfer 100% how to do, what is the best method?
Thanks in advance,
Best Regards
I need script to download all folders from an FTP and upload this same folders to another remote FTP. Unfortunately, I know the WinSCP don't support FXP (FTP to FTP directly).
I need a full script to download from FTP and upload to another remote FTP.
My script to download :
My script to upload:
And my commands to run in PowerShell is:
.\WinSCP.com /script=C:\script1.txt /log=C:\temp\log1.txt .\WinSCP.com /script=C:\script2.txt /log=C:\temp\log2.txt
Thanks in advance,
Best Regards