2

Similarly to How to maintain a file's 'last modified' date ? I need to retain the date while copying the file by Krusader or in a 'Home Folder' window to another PC connected by SSH. Is it possible?

Tomáš Pečený
  • 1,507
  • 7
  • 19
  • 46

1 Answers1

2

You can do this with the -p option to scp. As explained in man scp:

 -p      Preserves modification times, access times, and modes from the
         original file.

So, just run

scp source_file user@host:/remote/path/file
terdon
  • 104,119