News for hackers. Stuff that matters.
Re:Moving 25TB data from one S3 bucket to another took 7 eng... by darthShadow on Sunday September 13, 2020 @06:50PM (#24464592)
RClone. Probably the best tool I have come across for interacting with cloud storage solutions.

Move Docs: https://rclone.org/commands/rclone_move/

S3 Docs: https://rclone.org/s3/#amazon-s3

Supports parallel server-side copies and deletes (no server-side moves, unfortunately) so this would have been much faster.

Re:Moving 25TB data from one S3 bucket to another took 7 eng... by rsync on Monday September 14, 2020 @01:18AM (#24467017)
Are there any cloud storage providers that have 'rclone' built into their environment ?

So I could, for instance:

  ssh [email protected] rclone s3:/some/bucket gdrive:/blah
or:

  ssh [email protected] rclone s3:/source/files /my/rsync.net/account
Well I'll be damned! It appears that there is such a provider :

https://www.rsync.net/products/rclone.html

https://www.rsync.net/products/universal.html

Re:Moving 25TB data from one S3 bucket to another took 7 eng... by brylie on Monday September 14, 2020 @01:40AM (#24467137)
> NO Charges for ingress/egress

Is this too good to be true?!

Thank you for sharing! Yet another gem found in HN comments.

Re:Moving 25TB data from one S3 bucket to another took 7 eng... by rsync on Monday September 14, 2020 @02:00AM (#24467244)
Don't thank us, thank Hurricane Electric (he.net).

20 years ago, I was on irc.lightning.net and thought that was the best run efnet server. The MOTD advertised their IP transit services. They became he.net and that is why rsync.net does (most) of their IP transit with them.

Re:Moving 25TB data from one S3 bucket to another took 7 eng... by throwaway9d0291 on Monday September 14, 2020 @04:41AM (#24468090)
No, the tradeoff is that even with volume, rsync.net storage costs are $15/TBmonth [0], which is ~3x managed alternatives [1,2] and ~10x DIY alternatives [3]. To be fair, ZFS snapshots are "free" but whether that's worth 3x cost will depend on your data.

The lack of bandwidth charges sounds really nice but [1,3] have that too and unlike [1,3], Rsync.net doesn't support protocols that are suited for bandwidth-intensive applications (like serving large files to end-users). It only supports SSH-based transfers [4].

[0]: https://www.rsync.net/pricing.html

[1]: https://wasabi.com/cloud-storage-pricing/

[2]: https://www.backblaze.com/b2/cloud-storage-pricing.html

[3]: https://www.hetzner.de/dedicated-rootserver/matrix-sx?countr...

[4]: https://www.rsync.net/products/platform.html

Re:Moving 25TB data from one S3 bucket to another took 7 eng... by rsync on Monday September 14, 2020 @12:47PM (#24472259)
It is true that our service is more expensive.

If you look at the pricing on that rclone page[1] you'll see that at quantity it is as low as 0.5 Cents Per GB / Month.

As for bandwidth intensive protocols, we have HPN-SSH[2] patches built into our environment which allow for high bandwidth transfers, over SSH, over long WAN links.

[1] https://www.rsync.net/products/rclone.html

[2] https://www.psc.edu/hpn-ssh

Re:Moving 25TB data from one S3 bucket to another took 7 eng... by throwaway9d0291 on Tuesday September 15, 2020 @03:03AM (#24478590)
> If you look at the pricing on that rclone page[1] you'll see that at quantity it is as low as 0.5 Cents Per GB / Month.

That's good but at the volume needed to reach it, I imagine that you're in the realm of "contact us and get a special deal" at other providers (e.g. AWS, GCP, Azure) too.

Plus, we haven't even got to the "you have to pay for capacity, not usage" aspect of rsync.net pricing.

Pricing is the big thing I wish you'd fix. Your service has a bunch of cool features but they're just not worth that price, not when I can get most of the same features from Hetzner for a fraction of the cost.

> As for bandwidth intensive protocols, we have HPN-SSH[2] patches built into our environment which allow for high bandwidth transfers, over SSH, over long WAN links.

That's cool (honestly, not being condescending) but my point was that for most of the reasons you'd be excited about free bandwidth, rsync.net isn't a viable solution. For example you can't host images, videos, software updates, machine learning datasets or other large binaries and serve them over HTTP on the public internet.

Re:Moving 25TB data from one S3 bucket to another took 7 eng... by rsync on Thursday September 17, 2020 @12:09AM (#24501103)
"rsync.net isn't a viable solution. For example you can't host images, videos, software updates, machine learning datasets or other large binaries and serve them over HTTP on the public internet."

Correct. We don't do these things and we never will.

When you 'nmap' an rsync.net storage array, you get:

22 TCP

... and that's it. There are no other services running, or offered. There are no interpreters in the environment. The filesystems are mounted noexec,nosuid.

We do one very simple thing and that's it.

Re:Moving 25TB data from one S3 bucket to another took 7 eng... by throwaway9d0291 on Thursday September 17, 2020 @05:11AM (#24502565)
And were you to do that simple thing at a competitive price, it'd be great.

But you don't.

To be competitive you either need to drop prices or do more stuff to be worth the money.

Re:Moving 25TB data from one S3 bucket to another took 7 eng... by mekster on Sunday September 20, 2020 @09:06PM (#24538813)
To be fair, storage cost is their only pricing, meaning lowering it will have a great impact on their income when others charge for bandwidth and extra support.

But having no other cost than the storage itself is relieving and having the service running for nearly 20 years gives you a peace of mind on their reliability. I also hear their support is good

I would want a bit more modern web interface though. BorgBase does look interesting to me, except only 2 years of operation can't tell about its reliability and longevity.

Re:Moving 25TB data from one S3 bucket to another took 7 eng... by chromedev on Monday September 14, 2020 @02:40AM (#24467452)
Google Cloud doesn't charge for egress to Google Drive as well. If you use GCP to transfer files to Google Drive via rclone, then you can download them elsewhere without any charges.
Re:Moving 25TB data from one S3 bucket to another took 7 eng... by vitaliyf on Sunday September 13, 2020 @08:20PM (#24465217)
+1 on rclone - one of my favorite tools in the toolbox.

With sufficient --transfers and --checkers values you can easily saturate 10-20 gigabit/second links, so with a handful of machines you can transfer 25TB in about an hour, no engineers required.

Worth noting that rclone also supports many other storage providers or even plain SSH, so it pretty much obsoletes rsync. It also has many other nifty features useful outside of the "sync files" use case.

Re:Moving 25TB data from one S3 bucket to another took 7 eng... by fctorial on Monday September 14, 2020 @01:09AM (#24466962)
The source bucket had a ton of small files and most of the time was spent making network requests (O(<number of files>)). The suggested solution was to do a batch operation (open a ticket for a batch operation). Would rclone have helped in this scenario?
Re:Moving 25TB data from one S3 bucket to another took 7 eng... by darthShadow on Monday September 14, 2020 @01:48AM (#24467185)
Yep, as mentioned in the other comment, with configurable `--transfers` & `--checkers`, the only bottleneck is the amount of CPU you have available and can allocate.
Re:Moving 25TB data from one S3 bucket to another took 7 eng... by fctorial on Tuesday September 15, 2020 @11:17AM (#24482152)
> the only bottleneck is the amount of CPU you have available and can allocate.

In this case S3 will be the bottleneck. 25 TB will have around 700M files (assuming it's as dense a linux installation). S3 can do 5000 operations per second. It'll take at least 40 hrs (assuming everything works at peak speed during the whole process).

Re:Moving 25TB data from one S3 bucket to another took 7 eng... by oarsinsync on Monday September 14, 2020 @01:39AM (#24467130)
rclone lets you specify how many files to handle in parallel. It defaults to 4, and auto retries in the event of failures.

Ramp up the parallelism, and don’t make 7 people monitor it round the clock.

Re:Moving 25TB data from one S3 bucket to another took 7 eng... by HenryBemis on Monday September 14, 2020 @05:10AM (#24468217)
Silly question.. can't one just cut off/limit access to the "previous"? And then let it the time it needs to Delete?

I saw in the Reddit discussion that one can set up role/privileges (as expected), use the (new) user/role/group X for the move, and cut all others.

I understand that the original planning went bust 2h --> 48h, but that it buffled me was the "It sounds more like you had 2 hours for the delete part of the operation."

Re:Moving 25TB data from one S3 bucket to another took 7 eng... by pdimitar on Sunday September 13, 2020 @07:55PM (#24464991)
Agreed, I regularly sync with servers that have >1M files and rclone makes the whole thing a joy. Used it once with S3 and it performed admirably there as well.
Re:Moving 25TB data from one S3 bucket to another took 7 eng... by kureikain on Monday September 14, 2020 @04:18PM (#24474642)
Doesn't RClone still need to download files to the server from the source bucket, before syncing to dest bucket. That means it still has some upper limit(CPU, network of where we run that).

S3 replication and email to AWS supports to apply replication for existing object(per reddit discussion) seems a better method.

Re:Moving 25TB data from one S3 bucket to another took 7 eng... by thejosh on Monday September 14, 2020 @12:17AM (#24466699)
Yep, and it "just works" with Google Drive, which is amazing.
Re:Moving 25TB data from one S3 bucket to another took 7 eng... by reincarnate0x14 on Monday September 14, 2020 @12:49AM (#24466867)
I have noticed rclone deletes sometimes don't ever get cleared out of Google Drive's trash cache, but that's something you can work around with some periodic check scripts.

That trash behavior isn't specific to rclone and probably something on Google's end, but rclone is what I notice it with most.

Re:Moving 25TB data from one S3 bucket to another took 7 eng... by darthShadow on Monday September 14, 2020 @02:18AM (#24467341)
I did get an update from Google recently that they are implementing automatic clearing of trash after 30 days which may help you.

The exact wording of the relevant section of the mail:

We are writing to let you know that starting October 13, 2020, Google Drive is making a change so that its trash behaves more consistently with the rest of our G Suite services with regards to automatic deletion. This means that any file that is put into Google Drive’s ‘My Drive’ trash will be automatically deleted after 30 days. Items in trash will still continue to consume quota.

Please note that starting October 13, 2020 any files already in a user’s trash will remain there for 30 days. After the 30-day-period files that have been in the trash for longer than 30 days will begin to be automatically deleted.

What does this mean for my organization?

Any file that has been in the trash for longer than 30 days after October 13, 2020 will be automatically deleted. We will be showing in-app messaging in Drive starting September 15, 2020 and in our Editors products (such as Google Docs and Google Forms) starting September 29, 2020.

A few things to note:

* Files in shared drives trash are already automatically deleted after 30 days. * These changes affect items that are trashed from any device and any platform. * Files deleted from Drive File Stream will be purged from the system trash after 30 days. There is no impact to Backup and Sync behavior. * G Suite administrators can still restore items from any emptied trash on behalf of their users for up to 25 days. * Retention policies set by G Suite administrators in Google Vault are not affected by this change. * These changes apply to all G Suite editions and end-users.

Re:Moving 25TB data from one S3 bucket to another took 7 eng... by aloknnikhil on Monday September 14, 2020 @04:32AM (#24468044)
I can vouch for this too. I have a nightly cron job that uses rclone to sync my Apple Time Machine disk to Google Drive and I have yet to see it fail. Particularly, the Time Machine disk is a bunch of tiny (8 MB) files.