319 points · by mettamage · 6y ago · 354 comments
But some of you have, and I figured they make for fun and interesting stories ;-)
So what's your favorite method to send large files, of at least 5GB or bigger? Though, I'm also curious on how you'd send 10TB or more.
Transferring the torrent metadata is pretty trivial and can be done via a wide range of methods, and having that flexibility can be nice.
Unlike HTTP, you get reasonable retry behavior on network hiccups. Also, more robust data integrity guarantees, though a manual hash test is probably a good idea either way.
At least among people I'm throwing TBs of data around with, torrent infra is common and it's nice to not have to deal with some special-purpose tool that, in practice, is probably a pain in the ass to get compatible versions deployed across a range of OSes. Basically every platform known to man can run a torrent client of some sort.
And obviously, no dependency on an intermediary. This is good if you're trying to avoid Google et al. That does, however, bring a potential con: if my side is fast and your side is slow, I'm seeing until you're done. If I'm uploading something to gdrive or whatever, I can disconnect one r the upload is done. If you control an intermediary like a seedbox, that's less of a problem.
In general, though, torrents are pretty great for this sort of thing. Just encrypt your stuff beforehand.
For this reason I prefer using something like Syncthing which is designed more with this purpose in mind.
The inspiration for this tool is for assist with LAN parties. The one thing I have against the private flag is that it also disables LAN peer discovery, which would be okay if you use a tracker behind the LAN (though the torrent would need to be modified if the hostname/IP changes). Since you can't configure other people's clients I found it simpler to use Aria2 that is preconfigured to disable PEX and DHT.
Combine this with Metalink or Web Seeds, so that you can have a initial seeder based on HTTP. I think using IPFS would be a great web seed as long as the their gateway and Cloudfare's continues to stay up. IPFS creates a permanent URL if you will, so no need to worry about dynamic IPs or domains. It would be great if IPFS would have a smaller binary (right now it is around 20MB compressed) and had a way to get a file and "seed" it like a torrent. But for now I think torrent is mature enough.
They have MuWire now: https://muwire.com/
Not private but public sharing.
Does it actually block trackers from picking it up or just like tell them not to if they want to obey it?
Note: I was using syncthing for a one way sync all the time, with send-only and receive-only settings on the endpoints.
This sounds like a pretty severe bug, so if you still have the systems you were able to produce the behavior on it might be helpful to reproduce it and submit an issue.
I don't know enough, maybe it has security issues, or some limits... but the fact is that it's still widely used, by tech literate people, so it still stands the test of time and it must be doing something right.
"Version 9.0 [...], released on June 20, 2006" "Opera introduced [...] a built-in BitTorrent client" [1]
That's history now, of course, courtesy of today's browser monoculture.
[1] https://en.wikipedia.org/wiki/History_of_the_Opera_web_brows...
I know it used to have one, but that now that I'm aware of the v57+ extension issue, I notice that the one linked to first in a search seems to be dead.
Back when Resilio Sync was known as Bittorrent Sync, I proposed it as a file-sharing solution between multiple locations for the company I was working for. Immediately returned with an emphatic refusal to use any kind of software that had "Bittorrent" in the name, regardless of what it was for.
This is the same company where they picked up I had "Bittorrent Software" installed on my work laptop, and the people who ran the auditing software freaked out because, you know, it's Bittorrent! I told them it was a single icon in my PortableApps folder but they just kept saying "There's a Bittorrent client on your PC, you could be fired!" until I deleted the icon.
So yes, the fact it's associated with piracy has made a huge difference in some places.
> ... a browser-based WebTorrent client or "web peer" can only connect to other clients that support WebTorrent/WebRTC.
(from https://webtorrent.io/faq)
This essentially splinters the world into the bittorrent and webtorrent halves, which makes it far less useful.
Steam could probably benefit loads from torrents but they do have extremely good distribution servers already.
Except for: - updates of software. - distribution of public video files. - distribution of install images. - distribution of raw public measurements (ea science data).
Basically BitTorrent is the protocol for any usecase with 1:n (or n:n) with public data (ea. No data access controle is needed).
Copyright has nothing to do with it and the nature of BitTorrent does make it also a good fit for some pirates.
Never forget that the following is shared over BitTorrent: - World of Warcraft updates. - Linux distribution install images. - haveibeenpowned sha lists.
And that’s just what I personally know. I know there is more.
Seriously. Zmodem/resume was doing better in 1986.
The HTTP server needs to provide optional support for range requests on that resource. (RFC 7233) Not all do.
- Fully p2p, even the signalling server part which is done via Tor hidden services (later on there will be an alternative using a DHT).
- So unless the Internet or Tor goes offline it can never be down.
- Works with proxies and in corporate environments when UDP might be blocked.
magnet:?xt=urn:btih:[this is where the hash goes]
Example:
magnet:?xt=urn:btih:a008663c4fc7e710bd59200e5ef99ba04f83f319
I have no trouble seeding in swarms, only when I create torrents. Other than that, BT is ideal.
This is such a facepalm moment. "This service is awesome, it does everything you need, it's reliable, it's safe, it's practical, and all you have to do is encrypt your files, share encryption keys, validate identities, and establish trust with the person you're sharing with. Also if you screw it up in any way, your file is public forever. It's so rad!"
You can literally say that for ANYTHING out there. Not sure what point you are trying to make. Let me guess, "Encryption is hard?". Well there's no free lunch.
Encryption is hard, which is why it's sad to see that when someone gets it right and nails the UX, it still gets ruined by the real world somehow.
5GB on Internet: Upload to my OVH VPS and HTTP or Rsync it to its destination
10TB, local or Internet: Physical Hard Drive.
Never underestimate the bandwidth of a station wagon full of backup tapes!
https://www.tidbitsfortechs.com/2013/09/never-underestimate-...
And since you now buy 1TB micro SD cards, so perhaps I'd split the file 11 ways (no way it'll fit exactly) and send them via carrier pigeon. Or heck, I could just tape them to a drone and hope they aren't damaged in the crash. There's lots of ways to move data around. Maybe you want to UUENCODE it and submit bad URL's to a servers log so that it can be exfiltrated later? It would probably take a very, very long time, but could be done. I call it "CURLyTP"
https://miscdotgeek.com/curlytp-every-web-server-is-a-dead-d...
Never underestimate the bandwidth of a station wagon full of backup tapes!
In Poland there is an option to send package via train for 8$. Just go to station and give package to conductor/train guard, few hours later receiver can get it at destination station. Sending HDDs full of raw video footage this way is very popular among video editors here.
Over $20 for a 1 lb package, over $60 for a 50 lb package from Oakland to Los Angeles and a quoted time of four days station to station.
I can overnight a 50 lb package for $35, door to door, over that distance with the appropriate FedEx account and discounts. The ground service would cost me $30 without any discounts...
https://www.unitedcargo.com/shipping/productsAndShipping.jsp...
As many as can safely fit into conductor's compartment. They can refuse to take package if it would get train delayed - so better have exact amount of cash because card readers on trains are extremely slow.
How does the receiver know when their package is coming? (other than the train timetable)
Train timetable only. For most trains delay information is published on operator's website. Delays are rare, except holiday season.
If receiver misses their package it goes to closest warehouse, then receiver is called and can request delivery by another train, but needs to pay another 4$ on pick-up (plus fee for every day package spends in warehouse).
I'm skeptical of this, since when I order microSD cards online they arrive via USPS and have a perfectly valid partition table and FAT filesystem on them.
The exact quote [0] by Andrew Tanenbaum is: "Never underestimate the bandwidth of a station wagon full of tapes hurtling down the highway.".
Obligatory xkcd [1].
I met Andy Tanenbaum in 2008 at Vrije Universiteit in Amsterdam. I was the Technology Evangelist for AWS in Europe, giving a seminar there on cloud computing.
I loved him. Funny, smart. I didn't even know he was American until I met him in person (having studied computer science, you're not exactly sure of someone's nationality solely based on his last name).
Nothing wrong with that. Some my best friends are American
A 2020 update for that would probably use 256 or 512GB cards resulting in around 4.4 or 8.8EB (And probably twice that again if the cargo capacity of a typical 2020 SUV equivalent of a 1985 Volvo is assumed...)
The data transfer rate, however, scales linearly with cardinality...
If it is above 50G and on my personal computer, I encrypt the data and then physically mail a USB stick with the data on it. Trying to arrange the downloading/uploading of 50G of data from my personal computer to another personal computer is a real pain. The people that I would send/receive that much data to/from, that is stored on my personal computer are usually people who don't know much about ftp, scp or easily sharing files over the Internet. Sending a USB stick is just so much easier and in many cases, faster. I make sure the recipients know how to decrypt the data before sending the data.
If it is on a server (For example, a side project instance in AWS), then I drop it into S3 bucket, export it and send the URL to the recipient. I just eat the cost of them downloading it. Usually I am making money off the work anyways, so it is the cost of doing business.
Consider BunnyCDN way cheaper than s3.
BunnyCDN does look good though.
I do the same thing with OneDrive. Of course that's the same thing and I'm just agreeing with your answer, there are any number of DropBox-like services (including DropBox!). OneDrive is nice if you have Office 365 because you can password protect a link and send the password via a separate channel, which makes the process pretty secure (if you trust Microsoft with your data).
Between OSX, AirDrop works very well. I have sent >10GB files between Macs, quite quick as well.
I have never send a 10TB file so I wouldn't know. None of my drives are that large yet :)
Partially out of my annoyance with this I implemented a port of Magic Wormhole in Go that fully interoperates with the official python version: https://github.com/psanford/wormhole-william
I chose not to copy the features of magic wormhole because it seemed to me (at the time) to be very complicated and lacking in features crucial to myself (namely restarting transfers [1], sending folders without zipping them).
This has been to my benefit, I think, because I can iterate on croc quickly without having to conform to the wormhole spec and I've since added features still not available in wormhole (like restarting transfers [1], and ipv6 support [2]).
That being said, I really like magic wormhole and consider it my inspiration. And I'm glad that you ported it to Go!
I use MWH often for sending stuff like URL's, passwords, API keys... having to create a file for that is quite annoying (and remembering to delete it afterwards).
"brew install magic-wormhole" or "sudo apt-get install magic-wormhole" is easy enough and I don't hang around with people who use Windows. ;)
Resumable file transfers sound like a great feature though. Not sure it's implementable with MWH the way it now works.
Edit: magic wormhole is awesome! Thanks! :D
Provided of course that you have a wifi card that supports active monitor mode.. and you are root on your machine.
It _imitates_ the AirDrop UI, but is not compatible.
Use case is you open up snapdrop.net on both devices (nearby? same wifi?) and you can send files between, but I believe it all goes through a central server. Great for sending a few photos from phone to laptop or linux device when AirDrop isn't an option.
$ nc -l 4242 > dest
And then on the sending end: $ nc hostname 4242 < file_to_send
This works great when you just need to get a file of any size from one machine to another and you’re both on the same network. Are used this a lot at one of my offices to schlep the files around between a few of the machines we had.Fastest way to transfer a collection of files on a local network and doesn't require temporary storage for the archive
tar cf - files morefiles | ssh user@dest "tar xf -"
If you want to insert, say, compression: tar cf - files morefiles | zstd | ssh user@dest "zstd -d | tar xf -"Checkmate, rsync.
Not that extra checksums are a bad idea...
However no-one mentioned a super simple service: https://wetransfer.com/ - Simple as drag & drop, enter recipient address, SEND. Pretty simple if you want non techie to send you something.
It's like a private dropbox.
For files on the order of <= 10GB, magic wormhole is lovely: https://techcrunch.com/2017/06/27/magic-wormhole-is-a-clever...
`sudo pip3 install magic-wormhole` is an automatic "must run this command" on all my servers. Simple, secure way of sending files from A to B, with no bullshit. No account creation, even.
Here's a couple of my projects:
code[0]
Sender:
curl https://patchbay.pub/random-channel/filename.bin --data-binary @filename.bin
Receiver: curl -O https://patchbay.pub/random-channel/filename.bin
https://fbrg.xyzcode[1]
This one works in the browser. You select a file and it gives you a link you can share with others. The underlying tech[2] is more complicated (relies on WebSockets) than patchbay, but the server is currently more reliable. I'm in the process of improving the patchbay server to be more robust, and I think it will eventually replace fibridge completely.
My current project is building something along the lines of Google Drive, but much simpler and designed to be self-hosted from within your home.
[0]: https://github.com/patchbay-pub/
I gave that question a few tries but I feel part of the problem is the market being saturated by giants doing half the job. Another part of it is the lack of interoperability regarding file sharing between operating systems. I mean - a native right click>send to>user - native notification to the user with a solution to direct p2p download from that person. No software needed, seemless integration. Why is that so hard?
I really wish the big boys would give that a try rather than giving us toy-like features and price bump.
You see, we have protocols like HTTP and the web relies on it, everyone agrees this is how the web works and all OSes have one or several browser able to access it. Something similar works with emails. Yet, we don't have anything to share files between computers, imagine something like bittorrent directly integrated to all OSes, letting you right click > send to.
For my 12TiB of data I use Syncthing when I need to sync them more often, rsync.
I used rsync several times for billions of smaller files totalling to 300GiB, but really all depending on how I connect nodes. I prefer syncthing, but when only ssh is available, then rsync is good too.
Currently largest synced directory by syncthing (that shares usage stats) is over 61384 GiB :)) https://data.syncthing.net/
If it's for more than 1 person I upload it to a VPS if it's small (<20 GB) or make a torrent if it's not.
$ python -m http.server 8000
and then you can start ngrok to expose the file
$ ngrok http 8000
that will give you an URL to share with whoever wants it.
ngrok is an amazing utility though!
For local network:
I use miniserve ( https://github.com/svenstaro/miniserve ) which is just a simple http server. There are similar tools for when I want to share it from the smartphone.
Through the internet it really varies:
Sometimes it is Firefox send ( https://send.firefox.com/ )
For photos, I use a self hosted photo solution piwigo ( https://github.com/Piwigo/Piwigo )
In earlier days it has been a self hosted nextcloud ( https://github.com/nextcloud/server ) instance. I still use it when the files are getting too large for Firefox send.
I also tried the already mentioned wormhole but this works only with tec ppl.
From https://send.firefox.com/:
"Firefox Send is temporarily unavailable while we work on product improvements.
We appreciate your patience while we make the Firefox Send experience better."
Or npm install -g http-server for nodejs,
then http-server
Local network is easy.
npx http-server .
To remove the global install step. This will install and run all in one command.
Encrypt:
gpg --symmetric file.dat
(enter a password)
Decrypt: gpg --decrypt file.dat.gpg > file.dat
(enter the password)Others have said it better than I can. See e.g. https://latacora.micro.blog/2019/07/16/the-pgp-problem.html
Using Magic Wormhole would seem to be far more secure than gpg and bittorrent since it has less risk of third party interception and uses SPAKE2 which has perfect forward secrecy.
If I had to use bittorrent to transfer a sensitive file I would generating a random key and encrypt, then share the key over a different channel.
I've never needed to send TBs of data.
I had to keep Netscape open because it showed the status of the file download. People asked why my web browser was open all day, it was for the giant download that is part of my job.
For the thing you did, these could have worked.
Windows now comes with real sshd - Mac has it, and linux/bsd of course has it.
For small files (less than 10gb?) generally scp - but trying to get in the habit of using rsync. Generally scp isn't a very good idea.
For larger filesystems zfs send over ssh.
For streaming: dlna/upnp over zerotier vpn.
Shame Firefox send service imploded - for smaller files and where ssh isn't an option - it was a nice service. But a little too much hassle to self-host.
Didn't realize there was another way.
We use it for copying hundreds of TiB's regularly, occasionally over a PiB.
For ssh, there's https://www.psc.edu/index.php/hpn-ssh for improving wide-area transfer speeds, and something else, I think.
Otherwise I liked Firefox Send while it was running since I mostly trust them to not be full of intrusive nonsense.
When I want to make something large available to someone else, I post it on my local webserver. It points to an NAS on my LAN; anyone in the house can just drop whatever on it and hand out a link.
I've never used it myself but I've heard but it's actually quite impressive but the business model makes it inaccessible to individuals
Apparently they do some sort of complicated Trace routing and open a ton of simultaneous routes. Probably also uses something other than TCP 4 correction.
Seems like a good place for some disruption
- iCloud drive for personal stuff I need to share between devices. I trust this to sync anything up to a TB reliably.
- Google Drive when I need to share to someone else.
- Occasionally external drives when I need to move data fast locally.
- Some combination of S3 / AWS CLI / EC2 when things go beyond personal computer capacity depending on where the data is coming from and going to.
For bigger things, there are two basic paths:
If it's to someone that's not primary a tech person, then the data goes on a portable hard drive, and I either drive it to them, or mail it and walk them through accessing the data. In both cases I encrypt the data, generally with Veracrypt.
If it's to someone that won't mind using AWS's toolchain, and has decent connectivity, I'll use Snowcone or Snowball to get the data to S3 and give them S3 URLs.
I tend to get the data to S3 sooner or later so I can migrate it to Glacier. More than once I've had to recover GBs or TBs of data because the customer lost it, so I'm prepared now.
https://www.hightail.com/file-sharing
Hightail offers four different subscription levels for file sharing, with varying restrictions on file upload limits and storage. With our free Lite plan, you can upload files up to 100MB each, and have a storage limit of 2GB. Pro plans, which start at $15/month, allow you to upload individual files up to 25GB each. Teams plans, which start at $30/user/month, allow you to upload individual files up to 50GB each. Business plans, which start at $45/user/month, allow you to upload individual files up to 500GB each. Pro, Teams and Business plans come with unlimited storage.
pipx install magic-wormhole
wormhole send /some/big/stupid/thing.tar.gzThat's good for the 5G +/- file transfer.
For files I need more control over that are less than say 5gb, I tend to scp them to a web server I control, so that I can delete them afterwards.
For files larger than that, I'll use a private Bittorrent file. It's very rare I need to transfer files this large, but I really like this solution.
What about using "Firefox Send"? (I never used it so far)
https://support.mozilla.org/en-US/kb/send-files-anyone-secur...
I read that the limit is 1-2.5GBs => maybe you could break down the file and upload it in multiple pieces... .
EDIT: oopps, Firefox Send doesn seem to be available anymore - https://support.mozilla.org/en-US/kb/what-happened-firefox-s...
You should go to another cloud computing provider if you don't like Google Drive.
My third alternative is even more easy, but it's a little sluggish because it cuts you at two gigs either way. It is a service called WeTransfer, which was almost your only choice 15 years ago if you had to submit a huge file.
But for something like 10 TB or more, I'd see a torrent as the only way. My uploads speeds are too slow for anything else, the connection would be reset. The torrent also helps prevent corruption.
Snark aside, Croc does look a lot like magic wormhole. I'll definitely have a closer look at it.
Then I copy-paste that into a self-Slack and `wget` it on the other side.
It's almost equivalent ergonomically to a `python3 -m http.server` and because it's the same whether I'm giving to someone else or to myself, I spend less thinking!
When I'm the receiver, I'm using a self-written CLI tool "send me a file" (smaf): https://github.com/nikeee/send-me-a-file
It basically opens up an http server on my machine and let's a user upload a file via curl or a web interface. It also computes a sha256 hash while receiving.
These methods only work on a local network. I use my VPS and sftp/http for transfers descending the local network.
The only person I'm sharing with lives near me, so sneakernet is the most convenient.
I once hit a transfer speed of 30TBs/hour carrying a box of hard drives home from work.
– Andrew Tanenbaum, 1981
Now I live in the heart of Silicon Valley, a couple km from Google's Headquarters, and have a crappy 15 mbps uplink with no other options available to me, so I typically throw the file on Amazon S3, Google Drive, or Dropbox before sending a link to the other person so that they don't have to put up with a 15 mbps download.
For larger transfers, I'd look at File Catalyst Spaces. If you have a bigger budget, you could look at IBM Aspera or Media Shuttle.
<10Gb - chuck it on S3 and send a link to the other person.
Though it should be possible to do what you described with 16MP pictures and upload them to google drive. Those won't be compressed according to someone under that LTT video where they abuse 5 business accounts for their backup.
Well not really. You could have an entire frame as a solid color red to represent a '1' and a solid white frame to represent a '0'. At 24 fps, that is 3 bytes per second and would certainly survive compression. Just keep drilling down, half a frame that is red and another half that is white would represent a '10' pair, now you've doubled your throughput. You could keep cutting these blocks down until you get to a limit, you certainly couldn't get down to a single pixel, but some factor of that. Plus you could use an encoding with error correction instead of just raw binary data.
I see a lot of people mentioning magic-wormhole and NAT traversal. I can't find any docs that confirm this. I think it always runs through a relay server?
Everything works as expected, there is a lot of storage space and end-to-end encryption. There are clients for all platforms and it just works.
I can easily create secure share links whenever I want.
The only downsides are that the browser-based app is very slow to start once you have lots of files, and the android client does not have the same synchronization capabilities.
Is it one 10TB file? Multiple files? How do you handle file integrity? Error correction?
For much larger files I always fall back to BitTorrent. I have also kept an eye on WebWormhole, but haven't been in a situation yet where I needed it.
Edit: I guess it was magic wormhole, discussed elsewhere in this thread.
But HTTP is not a great protocol for really large transfers like 10TB. Ideally you'd want something that parallelizes and does hash checks.
Even then, at 10TB you need a 2 gigabit connection to be even competitive with SSD-and-overnight-shipping (about 12hrs).
Too bad the laptop I am transferring from in a bad condition and with Windows so sometimes iCloud service is freezing and I need to restart it.
I tried to create torrent but it seems it takes forever on such a weak machine.
When I don't I usually just zip it and upload it to the media section of my Wordpress-managed website.
I've never generated files in the terabyte range, so I don't worry about that.
I did it like you "in the past" (on my own fqdn / public-data) but I've given up on maintaining my website.
A torrent works really good if you've got multi-Tb files and many recipients.
https://cloud.google.com/transfer-appliance/
There's an amusing infographic towards the bottom. Only 42 days!
"Dude, I'm maximizing my data transfer speed"
Simple. Works.
Send help... no seriously... how do I upload a file from a server I have a shell on but can't easily open ports to or install software on (and where the built in cp tool fails on big files...)?
Never needed to send anyone 10TB nor do I have that much storage but if you do you probably have some kind of NAS/server where you can enable FTP access.
Free/open source
a raven with a sufficient large micro-sd card ;)
Technically, unlimited storage on OneDrive, can force the recipient to verify 2fa via their email address, force expiration link, etc.
If it's too big for cloud storage, ship a hard drive in the mail.
You can send a 10TB hard drive faster by USPS than it would take to transmit across the internet.
I think google drive is a decent solution as well.
otherwise, i've mailed a flash drive before, and for <20GB i'll just put it on a public S3 bucket.
It's still under development, but it's working towards being a decentralized discord alternative.
Some times I'll have to open the file in a hex editor and change the hash if it sets off copyright restrictions.
This is a 10 gig limit.