Copying file from server based on date today
I have a problem regarding copying file from the server, I want to copy a file based on date only the file generated today will be copied from the server this is my code I use for now:
option batch abort
option confirm off
open sftp://username:password@hostname -hostkey="ssh-rsa 2048 C5:86:05:bd:ce:66:ec:18:e2:10:b6:40:2f:81:a0:a6"
synchronize local C:\Users\LocalPC\Documents\copy1fromserver /media/Server/serverdb/copy1tolocal
I hope you can help me.
Thanks,
Melvin.
option batch abort
option confirm off
open sftp://username:password@hostname -hostkey="ssh-rsa 2048 C5:86:05:bd:ce:66:ec:18:e2:10:b6:40:2f:81:a0:a6"
synchronize local C:\Users\LocalPC\Documents\copy1fromserver /media/Server/serverdb/copy1tolocal
I hope you can help me.
Thanks,
Melvin.