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?
Asked
Active
Viewed 1,830 times
1 Answers
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