How to exclude old directories from download
I want to download newly-created files in newly-created directories from a remote host to my local host. For example, my remote host look likes
I only want to download last 1 hour abc.txt created (in U1 directory). Is there any way to exclude directories with respect to time. I cannot exclude by name coz I dont know the name of new directories created. I use the code
The script will download :
which is quite good But I dont want to get empty directory U2 and U3 coz it would waste a lot of time.
Thanks in advance.[/quote]
/home/U1/log/abc.txt
/home/U2/log/abc.txt
/home/U3/log/abc.txt
I only want to download last 1 hour abc.txt created (in U1 directory). Is there any way to exclude directories with respect to time. I cannot exclude by name coz I dont know the name of new directories created. I use the code
cd /home/ get -filemask="/home/*/log/abc.txt>1h" *
The script will download :
U1/log/abc.txt
U2/log/
U3/log/
which is quite good But I dont want to get empty directory U2 and U3 coz it would waste a lot of time.
Thanks in advance.[/quote]