Four Stars

FTP files preserving the date and time stamp

Hi,

Is there a way to preserve the date and time stamp of the file when its copied onto the remote server. 

I tried both tFTPPut and tSCPPut but they both change the date and timestamp to when its was ftped onto the remote server. 

 

If the file being ftped has a date and time of say  yesterday . i need to keep that date and time when copied/moved onto ftp server. 

 

Thanks

Nawaz.

3 REPLIES
Nine Stars

Re: FTP files preserving the date and time stamp

You can use tSystem and rsync with -t option

 

http://stackoverflow.com/questions/14888012/how-to-rsync-a-single-file

-----------
Four Stars

Re: FTP files preserving the date and time stamp

How can i run the command from tsystem without having to enter the password or how can i pass the password of the login that i am using to rsync the files onto remote server. 

 

I can use the scp -p command also to copy the files and preserver date and time but again i don't know how to pass the password to that command either.  

 

Thank you for your suggestion. any help on how to pass the password with either of the command would help

 

 

Nine Stars

Re: FTP files preserving the date and time stamp

http://stackoverflow.com/questions/3299951/how-to-pass-password-for-rsync-ssh-command

 

I just send a links, because I not a system admin, and personal setup similar scripts by search on stackoverflow

it work

-----------