Shlomif's Technical Posts Community - Tech Tip: How to Copy a Remote File on [entries|archive|friends|userinfo]
Shlomif's Technical Posts Community

[ userinfo | livejournal userinfo ]
[ archive | journal archive ]

[Links:| Shlomi Fish's Homepage Main Journal Homesite Blog Planet Linux-IL Amir Aharoni in Unicode open dot dot dot ]

Tech Tip: How to Copy a Remote File on [Oct. 26th, 2013|03:14 pm]
Previous Entry Share Next Entry


[Tags|, , ]
[Current Location |Home]
[Current Mood |Calm]
[Current Music |Rita - Shir Ahovath Hasapan] is a good service (and a not too pricey one) for remote storage of data (for backups/etc.) based on open protocols and open source applications. One thing that bugged me there however, was that I couldn't find a way to copy a remote file to a different name, because the SFTP client does not support a copy operation, and because I could not get to a login shell by sshing my account. Apparently, it's doable and not very hard.

What you need to do is type ssh cp [source filename] [destination filename] and it will run the remote UNIX "cp" command to copy the file. You can access some other remote UNIX commands like that such as "ls".

Hope it helps.