Put -delete but keep files from a week upto now in the source
Hi,
I use winscp command and success with moving log from source to destination by the following command:
And I and schedule it by using Task Scheduler on Windows.
Everyday, at a specific time, logs from sources are all moved while the task runs.
But each day, I want to keep logs from 7 days before the time when the task runs in the source instead of moving them to the destination.
So, which option can I use with the command to resolve it?
Thank you all for your help.
I use winscp command and success with moving log from source to destination by the following command:
put -delete "E:\Logs\*" "/Backup/"
Everyday, at a specific time, logs from sources are all moved while the task runs.
But each day, I want to keep logs from 7 days before the time when the task runs in the source instead of moving them to the destination.
So, which option can I use with the command to resolve it?
Thank you all for your help.