transferring files using ftp but mantaining the dates

Hi guys,

Is there a way I can ftp some files without changing the last-modified dates from them ?

I haven't seen any ftp option to do so.
Or, alternatively, how do I change the last-modified date for a file, if this is possible... ?

Thanks in advance,
Abrahao.

Hi Abrahao,

I think u can better tar the files , ftp it and untar it at the other end ... and the timestamp would be preserved ... try this way ... i guess this wud be better than changing the timestamp manually

SNS

1 Like

Abrahao,

You can use rcp command instead to retain modification times access times and modes of the original file. (Use rcp -p)

If you want to change access/modification times use touch command.
touch -m <date-time> <filename>

Regards,
Rajeshwar.

1 Like

Hi Sabari,

When I FTP GET the file from my (tp) trading partner's server the files are not in tar format. The only access I have to my tp's server is ftp. So I cannot really tar my tp's file. I will ask my tp to tar the file before I FTP GET it. But what if my tp does not want to tar the file? What should I do?

Thanks in advanced,
XZOR

Second time in a week for this question. So I created a [thread=29458]new faq article[/thread].