The UK Home Automation Archive

Archive Home
Group Home
Search Archive


Advanced Search

The UKHA-ARCHIVE IS CEASING OPERATIONS 31 DEC 2024


[Message Prev][Message Next][Thread Prev][Thread Next][Message Index][Thread Index]

Re: [OT] FTP Preserve Original Creation Date



pjqx wrote:
> HI,
> sorry for the OT post but I feel my someone out there in UKHA-land
will "just know" this.
> We have some systems acquiring 4D Image stacks (X Y Z & T) which
are to be analysed elsewhere - if they are analysed in situ everything is
perfect, however usually the data is batch FTPd to some workstations for
analysis.  At the remote location is where it all breaks down - it appears
it is because the timestamps for the files are now the time of FTP transfer
rather than the original creation date - is it possible to preserve the
original creation date/time timestamps date when FTPing a file?
>

I'm not aware of any ftp client/software that supports this (no mention
in any of the man files on my linux box, certainly). Best bet would be
to wrap the file(s) up in a tar or zip archive (and use appropriate
flags to preserve the timestamps). Alternatively you could use something
like rsync (which can preserve this information) to do the transfer
instead, or you could set up a script to encode the timestamp in the
file name before sending, and then restore it at the other end?

HTH,

Jim


------------------------------------


UKHA_D Main Index | UKHA_D Thread Index | UKHA_D Home | Archives Home

Comments to the Webmaster are always welcomed, please use this contact form . Note that as this site is a mailing list archive, the Webmaster has no control over the contents of the messages. Comments about message content should be directed to the relevant mailing list.