Live data from Hacker News

Transfer.sh – File sharing from the command line

transfer.sh

91–100 of 117 posts

Re: Transfer.sh – File sharing from the command line

#91
post #40

I like it! But for me ssh already provides a simple and secure way to move files from one place or another.. tar -cf - ./files.txt ./orDir/ | ssh host "(cd /dest/dir; tar -xf -)" Given that ssh it so ubiquitous I think this will always be my go to.

What about good old scp? scp file.txt user@host:/dest/dir/

What if you don't have network and login access to the other person's computer?

Re: Transfer.sh – File sharing from the command line

#92

Earlier quoted context omitted.

> tar -cf - ./files.txt ./orDir/ | ssh host "(cd /dest/dir; tar -xf -)" You should use '&&' instead of ';' on the host side. That way you don't accidentally dump your transfer contents into a wrong directory if the existing host dir doesn't exist. e.g.: tar cf - stuff | ssh host "(cd /dest/dir && tar xf -)"

Or just skip the shell entirely: tar -C /dest/dir -xf -

Could you give a full example of how this would work? Receiver and sender..

Re: Transfer.sh – File sharing from the command line

#93

There used to be a service called chunk.io that did this. Then, presumably by some combination of becoming popular causing them bandwidth/storage issues or their service being abused, they had to make it invitation-only. (The site still exists, but they never replied to my e-mail to their signup address, so I can't say for sure if they're still live or not.) I wish transfer.sh good luck, and will bookmark them for no…

There are multiple sites like this. I dont know the size limits (I just upload small stuff) etc but here are a few I use:

http://ix.io

https://ptpb.pw

Re: Transfer.sh – File sharing from the command line

#94

Earlier quoted context omitted.

> tar -cf - ./files.txt ./orDir/ | ssh host "(cd /dest/dir; tar -xf -)" You should use '&&' instead of ';' on the host side. That way you don't accidentally dump your transfer contents into a wrong directory if the existing host dir doesn't exist. e.g.: tar cf - stuff | ssh host "(cd /dest/dir && tar xf -)"

Or just skip the shell entirely: tar -C /dest/dir -xf -

[deleted]

Re: Transfer.sh – File sharing from the command line

#95

Earlier quoted context omitted.

Or just skip the shell entirely: tar -C /dest/dir -xf -

Could you give a full example of how this would work? Receiver and sender..

    tar cf - src/ | ssh $host "tar -C /dest/dir -xf -"

Re: Transfer.sh – File sharing from the command line

#96
post #50

Earlier quoted context omitted.

If you can trust to have gnu tar on both side, you can reduce typing. I usually do: tar c files.txt orDir | ssh -C host tar x -C /dest/dir

What about just typing rsync -havz --progress source destination? -h for human-readable numbers -a for archive mode -v and --progress for verbose info -z for compression during transfer Add a -n for a dry run if required. https://linux.die.net/man/1/rsync One of the people who came up with it - Andrew Tridgell - was more or less "responsible" for Linux and BitKeeper parting ways, which in turn ultimately lead to the…

Yo dawg, I heard you like progress, so check out rsync's

--info=progress2

You can use it since rsync version 3.1.0.

Re: Transfer.sh – File sharing from the command line

#97
post #15

woof -i -p woof: http://www.home.unix-ag.org/simon/woof.html 1. Allows directory upload/download (tar/gzip/bzip2 compressed) 2. Local file server (doesn't go over the internet) 3. Allows upload form (-U option) 4. Allows file to be served number of times (-c option)

HN still doesn't realize that devs are not the only people in the world, more at 11.

Re: Transfer.sh – File sharing from the command line

#98
post #79
post #75

Earlier quoted context omitted.

I usually go straight to tar & ssh over scp since you can do directories where you can't with scp. But yeah, if you just have some files scp works.

You can obviously send directories with scp, just use -r. Or am I missing something?

Recently used it to copy half a terabyte of stuff on my home network. Unsure about the exact specification but it supported the same flags as cp as far as I could tell.

Re: Transfer.sh – File sharing from the command line

#99
post #57

There are so many tools that can transfer files between two computers. I really like ones like this because you don't have to have SSH access or forward any ports to send a file from A to B. Its similar vein to other peer-to-peer utilities like zget [1], sharedrop [2], instant.io (webtorrent) [3], filepizza (webtorrent) [4], magic-wormhole [5], toss [6], dat [7], and many many others. During Hacktoberfest I also star…

https://github.com/jedisct1/piknik

Re: Transfer.sh – File sharing from the command line

#100
post #79
post #75

Earlier quoted context omitted.

I usually go straight to tar & ssh over scp since you can do directories where you can't with scp. But yeah, if you just have some files scp works.

You can obviously send directories with scp, just use -r. Or am I missing something?

Yes -r works for copying directories. I do it all the time
Post reply on HN