lftp mirror regular expression problem
Hi,
I am trying to force lftp to mirror only .bin files from folders beginning from 11. and 14., but not older than 1 day. What I have so far is: Code:
mirror -i "(14.*|11.*)$\.bin" --newer-than=now-1days --no-empty-dirs --use-pget-n=10 $REMOTE_DIR $LOCAL_DIR; Code:
mirror -i ^14.*\.bin$ -i ^11.*\.bin$ --newer-than=now-1days --no-empty-dirs --use-pget-n=10 $REMOTE_DIR $LOCAL_DIR; Do anyone have idea what should I change? |
You could try using rsync.
|
Why do you have an anchor in the middle of the first regex ?.
Without testing in lftp I might be inclined to try something like Code:
mirror -i "^1[14].*\.bin$" --newer-than=now-1days --no-empty-dirs --use-pget-n=10 $REMOTE_DIR $LOCAL_DIR; |
Quote:
|
Quote:
|
All times are GMT -5. The time now is 08:40 PM. |