Thanks again for the help.  So I think that I got it working with the
following

lftp -u user,pass -e "set sftp:connect-program 'ssh -a -x -T -c arcfour -o
Compression=no'; mirror -v -c --newer-than=now-4hours --loop --use-pget-n=3
-P 2 /home/user/finished/TV /home/pi/usrmnt/Target/; quit"
sftp://XXX.XXX.XXX.XXX:XXX

The strange thing is that it will mirror the folders with in the source
directory no matter when they were created, but it won't mirror any other
type of file unless it is 4 hours or younger (I think.  It might be looking
at the modification time and not the creation time)

Why would it mirror folders that are older than 4 hours?

Steven Dennis
nzdreame...@gmail.com
805.699.6462 (txt + voice)
805.903.3237 (voice)

On Sat, Feb 20, 2016 at 9:24 PM, Alexander Lukyanov <lavv...@gmail.com>
wrote:

> Lftp tries to get the file modification time in UTC. So the comparison
> does not depend on the server's timezone. Sometimes it fails due to ftp
> server limitations or bugs
>
> вс, 21 февр. 2016, 8:03, Steven Dennis <nzdreame...@gmail.com>:
>
>> Thanks for the help.  I was able to use the --newer-than, but now I am
>> wondering how this time is determined if my server where the files are
>> located is 9 hours ahead of where I am.  Does it use the time on the server
>> and the times that are on the files or does it use the time on the files on
>> the server but use my local time to figure out what is 24hr from now?
>>
>> Steven Dennis
>> nzdreame...@gmail.com
>> 805.699.6462 (txt + voice)
>> 805.903.3237 (voice)
>>
>> On Thu, Feb 18, 2016 at 11:32 PM, Lars Viklund <z...@acc.umu.se> wrote:
>>
>>> On Thu, Feb 18, 2016 at 09:10:01PM -0800, Steven Dennis wrote:
>>> > Hello,
>>> >
>>> > I would like to d/l files and folders from a directory on my web server
>>> > that have been put there or modified in the last 24 hours.
>>> >
>>> > I have read the man page and came across the --newer-than option.
>>> >
>>> > "For option --newer-than you can either specify a file or time
>>> specification
>>> > like that used by *at*(1) command, e.g. `now-7days' or `week ago'. If
>>> you
>>> > specify a file, then modification time of that file will be used."
>>> >
>>> > Can you tell me if this would be correct?
>>> >
>>> > lftp open -u user,pass sftp://XXX.XXX.XXX.XXX -PXXXX mirror -c
>>> --newer-than
>>> > 24hrs /remote/directory/ /local/directory/
>>>
>>> Did you look at the referenced manual page, and the specification that
>>> it cites?
>>>
>>> at(1) (and by extension this feature) takes absolute timepoints as
>>> argument, constructed from relative phrasing.
>>>
>>> Both "now-7days" and "week ago" describe absolute points in time.
>>>
>>> See https://github.com/lavv17/lftp/issues/21 for a discussion mirroring
>>> your question, http://linux.die.net/man/1/at for the manpage. Note that
>>> the at(1) spec mostly cares about future timepoints and thus doesn't
>>> mention the "ago" flavor.
>>>
>>> Your argument should probably be along the lines of "24 hours ago" or
>>> "day ago".
>>>
>>> > Also can you tell me if there are other time parameters that can be
>>> used as
>>> > well as the "grammar" that should be used when putting this together?
>>> >
>>> > Thanks
>>> >
>>> > Steven
>>>
>>> > _______________________________________________
>>> > lftp mailing list
>>> > lftp@uniyar.ac.ru
>>> > http://univ.uniyar.ac.ru/mailman/listinfo/lftp
>>>
>>>
>>> --
>>> Lars Viklund | z...@acc.umu.se
>>> _______________________________________________
>>> lftp mailing list
>>> lftp@uniyar.ac.ru
>>> http://univ.uniyar.ac.ru/mailman/listinfo/lftp
>>>
>>
>> _______________________________________________
>> lftp mailing list
>> lftp@uniyar.ac.ru
>> http://univ.uniyar.ac.ru/mailman/listinfo/lftp
>>
>
_______________________________________________
lftp mailing list
lftp@uniyar.ac.ru
http://univ.uniyar.ac.ru/mailman/listinfo/lftp

Reply via email to