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?
1 Answer
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
-
Is it possible to set generally in Krusader? I do not see such setting there. May 10, 2014 at 20:38
-
@TomasPeceny I'm playing with it now. How exactly are you connecting to the remote directory? Are you using the
fish
protocol throughkrusadser
's "Net connection" menu option?– terdonMay 10, 2014 at 20:42 -
Yes, I am using the fish protocol through krusadser's "Net connection" menu option. May 10, 2014 at 20:47
-
@TomasPeceny no, sorry. As far as I can tell this isn't possible with
krusader
. Your best bet would be to use a terminal and issue the command above.– terdonMay 10, 2014 at 20:49 -
1@TomasPeceny no, not here, the authors are unlikely to see it. There is almost certainly a bug tracking system for krusader or you could submid to the KDE maintainers. I've never used it though so I can't tell you any more than that, sorry.– terdonMay 25, 2014 at 20:39
krusader
is. My answer is for doing it manually, don't know if it's possible withkrusader
. Is that a deal breaker for you?