News for hackers. Stuff that matters.
Re:Call for testing: OpenSSH 8.0 by adrian_b on Friday March 29, 2019 @07:35AM (#19520703)
The only good file transfer solution has always been to use rsync over ssh instead of scp or sftp.

I have stopped using scp and sftp many years ago. Besides the fact that sftp can be too slow, both scp and sftp fail to make identical copies of the transferred files because sometimes they can lose some metadata, e.g. extended attributes or high resolution time stamps.

Re:Call for testing: OpenSSH 8.0 by adrian_b on Friday March 29, 2019 @07:40AM (#19520722)
What I am normally using is:

alias scp='rsync --archive --xattrs --acls --progress --rsh="ssh"'

Re:Call for testing: OpenSSH 8.0 by danudey on Friday March 29, 2019 @04:04PM (#19525121)
I've become a huge fan lately of using "--info=progress --no-inc-recursive" for rsync. It can result in more memory usage, since it builds the file list ahead of time rather than dynamically, but it provides you with an overall progress report of the entire transfer, rather than per-file progress reports which may be much less useful.
Re:Call for testing: OpenSSH 8.0 by seqizz on Monday April 01, 2019 @08:06AM (#19542475)
Aaaah I was so happy to switch until I see "The source and destination cannot both be remote."
Re:Call for testing: OpenSSH 8.0 by chrisweekly on Friday March 29, 2019 @08:36AM (#19521058)
This gets my vote for nicest alias in the thread.
Re:Call for testing: OpenSSH 8.0 by tyingq on Friday March 29, 2019 @08:01AM (#19520836)
Using ssh with tar on both ends is my go to for a new box that doesn't have rsync. Long command lines, but it retains metadata. Like:

  ssh remote 'cd /src;tar -cf - .' | (cd /dst;tar -xf -)
Doesn't call you out so well on typos though.
Re:Call for testing: OpenSSH 8.0 by justinclift on Friday March 29, 2019 @08:22AM (#19520977)
lftp can be handy too, as that can automatically parallelize transfers.

eg, instead of one connection (eg rsync), lftp can transfer each file using n parallel streams.

Very useful with large files, when there's some kind of bandwidth limit per TCP connection.

Re:Call for testing: OpenSSH 8.0 by pnutjam on Friday March 29, 2019 @12:48PM (#19523296)
Yeah, sftp can't see extended attributes. It's flags are also more cumbersome then scp. For example:

sftp -o IdentityFile=keyfile or scp -i keyfile

Re:Call for testing: OpenSSH 8.0 by pletnes on Friday March 29, 2019 @08:58AM (#19521188)
Too bad there’s no rsync for windows
Re:Call for testing: OpenSSH 8.0 by e12e on Saturday March 30, 2019 @04:33PM (#19531666)
Re:Call for testing: OpenSSH 8.0 by LinuxBender on Friday March 29, 2019 @10:19AM (#19521894)
Cygwin provides rsync, sftp and lftp for windows.
Re:Call for testing: OpenSSH 8.0 by user9182031 on Friday March 29, 2019 @11:11AM (#19522348)
Cygwin just feels "heavy" when all I want is rsync. Without any package management (that I'm aware of) I can't just install rsync and whatever other dependencies it has, I have to put hunderds? more binaries on my system.
Re:Call for testing: OpenSSH 8.0 by LinuxBender on Friday March 29, 2019 @11:14AM (#19522363)
There is also a linux subsystem for windows 10 which I have never used. Perhaps someone can say if that has rsync.

[ edit ] if that and cygwin are too heavy, you could request the samba team create a posix windows build of rsync. They had one long ago, but stopped supporting it. That would be a single binary. I suspect they will push back.

Re:Call for testing: OpenSSH 8.0 by user9182031 on Friday March 29, 2019 @12:36PM (#19523171)
This is even heavier. It's a full blown Ubuntu install.
Re:Call for testing: OpenSSH 8.0 by user9182031 on Friday March 29, 2019 @01:49PM (#19523931)
After a bit of Googling, it looks a company has complied and packged rsync for Windows at a cost of $19 per license @ https://www.itefix.net/cwrsync

I found a Github repo with an older (2017) version of cwRsync that may be from before it went behind a paywall @ https://github.com/billyc/cwrsync-installer

Re:Call for testing: OpenSSH 8.0 by pletnes on Friday March 29, 2019 @12:10PM (#19522894)
It does.
Re:Call for testing: OpenSSH 8.0 by pnutjam on Friday March 29, 2019 @12:51PM (#19523327)
Check out MobaXterm. It's free as in beer, and seems to wrap up cygwin and x in one console. It's my go to putty replacement.

You can run a local console and rsync directly from your window drives (/drives)

Re:Call for testing: OpenSSH 8.0 by ptman on Friday March 29, 2019 @09:49AM (#19521636)
WSL
Re:Call for testing: OpenSSH 8.0 by pnutjam on Friday March 29, 2019 @12:49PM (#19523307)
hmm... works fine in my mobaxterm window.