trying to exclude directories in simple get command
My main goal here is to pull all files that conform to the below mask from /data/outbox. Ive noticed it works but it pulls in additional folders.
Using Winscps "edit File Mask" gui I was able to get this:
monthly*201608*.data; /data/outbox/ | /data/outbox/teamfolder/; /data/outbox/sentfolder/
so the command in the script looks like this:
get -delete -filemask=monthly*201608*.data; /data/outbox/ | /data/outbox/teamfolder/; /data/outbox/sentfolder/ c:\destinationFolder\monthly
I am very unsure of the syntax however, I've tried a bunch of variation of that but still cannot get it to work. It works if I remove the exclusions , but then it pulls in those directories (empty), or in the case of the teamfolder it deletes it. Has anyone gotten this to work and wouldnt mind sharing their syntax?
Using Winscps "edit File Mask" gui I was able to get this:
monthly*201608*.data; /data/outbox/ | /data/outbox/teamfolder/; /data/outbox/sentfolder/
so the command in the script looks like this:
get -delete -filemask=monthly*201608*.data; /data/outbox/ | /data/outbox/teamfolder/; /data/outbox/sentfolder/ c:\destinationFolder\monthly
I am very unsure of the syntax however, I've tried a bunch of variation of that but still cannot get it to work. It works if I remove the exclusions , but then it pulls in those directories (empty), or in the case of the teamfolder it deletes it. Has anyone gotten this to work and wouldnt mind sharing their syntax?