Hello,

I've got a timestamp problem with lftp and mirroring functionnality.

I use lftp to mirror data between 2 servers, in TLS mode + client certificate.

lftp options ($HOME/.lftprc) :

set ssl:key-file /path/to/cert.key
set ssl:cert-file /path/to/cert.cer
set ssl:verify-certificate false
set cmd:ls-default -1
set cache:enable no
set ftp:ssl-force yes
set ftp:timezone GMT-02
set ftp:use-mdtm yes
set ftp:use-mdtm-overloaded no


Data on source server :

  361    0 drwxr-xr-x   3 4500     4500           96 May 26 12:16 ./Annuel
  362    0 drwxr-xr-x   2 4500     4500           96 May 26 12:16 ./Annuel/2007
  363    0 -rw-r--r--   1 4500     4500            0 May 26 12:16
./Annuel/2007/AGLO_00001_01-0_GDFD_A070000001_200705251002_000001.zip


Target server :

./lftp <@IP source server>  -p 990 -u <user>,<password> -e "set net:max-retries
5; mirror -en <directory> /var/tmp/LFTP; bye"


Result in /var/tmp/LFTP :

50183    1 drwxr-x---   3 wmu17    prod7         512 May 26 12:16 ./Annuel
50184    1 drwxr-x---   2 wmu17    prod7         512 May 26 12:16 ./Annuel/2007
50185    0 -rw-r-----   1 wmu17    prod7           0 May 26 14:16
./Annuel/2007/AGLO_00001_01-0_GDFD_A070000001_200705251002_000001.zip


==> As you can see, directory timestamps are OK but it's ko for file(s).


Have you got any idea about this ?

Thanks in advance.

Best regards.

ESA

Reply via email to