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?

4
  • Are both machines running Linux and using a Linux file system?
    – terdon
    May 10, 2014 at 20:28
  • Both machines run Ubuntu 12.04 May 10, 2014 at 20:30
  • 1
    I just realized what krusader is. My answer is for doing it manually, don't know if it's possible with krusader. Is that a deal breaker for you?
    – terdon
    May 10, 2014 at 20:31
  • I am just coming to Ubuntu from Windows XP. I am used to Total Commander; I'd be very glad if I can use Krusader this way; at a single PC it works, also with flashes. May 10, 2014 at 20:44

1 Answer 1

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
12
  • 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 through krusadser's "Net connection" menu option?
    – terdon
    May 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.
    – terdon
    May 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.
    – terdon
    May 25, 2014 at 20:39

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .