Live data from Hacker News

How Tarsnap uses Amazon Web Services

daemonology.net

11–17 of 17 posts

Re: How Tarsnap uses Amazon Web Services

#12
post #9

I'm just curious, do all the people using these kinds of paid services just have really tiny hard drives? To back up 1TB of data via this system would cost around $250 a month in storage and transfer charges, and that's assuming very good compression is happening. What am I missing? Or maybe I'm just not rich enough for $3,000 / year? Or maybe you're just doing a subset of your data, in which case I don't see how sna…

> My other concern with this is that if the tarsnap server ever goes away, customers risk losing their data, since the server maintains the mapping of S3 objects to blobs. That's worrying. Assurances are not mechanisms.

Agreed. I use duplicity instead, which is a Free program that is similar to tarsnap. It backs up to S3, but uses many fewer PUTs (since archives are several megabytes).

Anyway, a full backup of my homedir (minus music) costs me about $1.40 a month to store (with incremental backups every night). A small price to pay knowing that if my laptop blows up, I can be right back where I started in just a few hours. (Or if I delete a file accidentally, it is back in seconds.)

http://duplicity.nongnu.org/

Re: How Tarsnap uses Amazon Web Services

#13
post #6
post #2

Great post! I don't understand the paragraph about the cost of the PUTs and GETs though. The saving you get by batching writes seems marginal. Can you give some numbers?

The average block size the tarsnap server sees is about 30 kB (the tarsnap client tries to produce blocks of 64 kB on average, but then it compresses them individually before sending them to the server). This means that for every GB uploaded, there are about 33 thousand blocks. S3 PUTs cost $0.01 per thousand PUTs, so writing each of the blocks as an individual S3 object would cost $0.33 / GB for PUTs (plus the norma…

Just out of curiosity, why such small blocks?

Re: How Tarsnap uses Amazon Web Services

#14
post #6

Earlier quoted context omitted.

The average block size the tarsnap server sees is about 30 kB (the tarsnap client tries to produce blocks of 64 kB on average, but then it compresses them individually before sending them to the server). This means that for every GB uploaded, there are about 33 thousand blocks. S3 PUTs cost $0.01 per thousand PUTs, so writing each of the blocks as an individual S3 object would cost $0.33 / GB for PUTs (plus the norma…

Just out of curiosity, why such small blocks?

There are several advantages and disadvantages to different block sizes; but most significantly, larger blocks would make tarsnap less efficient at identifying duplicate data in the (very common) case where part of a file is modified. In the end it came down to weighing all the factors and picking a value which worked well.

Re: How Tarsnap uses Amazon Web Services

#15
post #11

You mention that it's more expensive than JungleDisk, but you don't say why it's better.

You mention that it's more expensive than JungleDisk

No I don't. Tarsnap isn't more expensive than JungleDisk overall -- yes, the bandwidth and storage costs more, but tarsnap doesn't have per-request costs, a fixed monthly service charge, or an up-front cost for the software. For some people, tarsnap will be more expensive, certainly; but for many others tarsnap will be cheaper.

you don't say why it's better

Not in this blog post, no -- this post was about how tarsnap uses Amazon Web Services. :-)

Details about why I think tarsnap is an amazingly superior backup system are at http://www.daemonology.net/blog/2008-11-10-tarsnap-public-be...

Re: How Tarsnap uses Amazon Web Services

#16
post #9

I'm just curious, do all the people using these kinds of paid services just have really tiny hard drives? To back up 1TB of data via this system would cost around $250 a month in storage and transfer charges, and that's assuming very good compression is happening. What am I missing? Or maybe I'm just not rich enough for $3,000 / year? Or maybe you're just doing a subset of your data, in which case I don't see how sna…

> My other concern with this is that if the tarsnap server ever goes away, customers risk losing their data, since the server maintains the mapping of S3 objects to blobs. That's worrying. Assurances are not mechanisms. Agreed. I use duplicity instead, which is a Free program that is similar to tarsnap. It backs up to S3, but uses many fewer PUTs (since archives are several megabytes). Anyway, a full backup of my hom…

[deleted]

Re: How Tarsnap uses Amazon Web Services

#17
post #9

I'm just curious, do all the people using these kinds of paid services just have really tiny hard drives? To back up 1TB of data via this system would cost around $250 a month in storage and transfer charges, and that's assuming very good compression is happening. What am I missing? Or maybe I'm just not rich enough for $3,000 / year? Or maybe you're just doing a subset of your data, in which case I don't see how sna…

> My other concern with this is that if the tarsnap server ever goes away, customers risk losing their data, since the server maintains the mapping of S3 objects to blobs. That's worrying. Assurances are not mechanisms. Agreed. I use duplicity instead, which is a Free program that is similar to tarsnap. It backs up to S3, but uses many fewer PUTs (since archives are several megabytes). Anyway, a full backup of my hom…

I also won't store my backups in anything but my own S3 buckets (they are encrypted, privacy is not the issue). Is duplicity stable in your opinion? I am usually one to use alpha/beta software etc. but this is a long term need. I am a big rdiff-backup fan, this looks like a good alternative to my current strategy.

My current strategy is a little lame but works quite well: rsync daily to my home server and about once or twice a week an EC2 instance is fired up with elastic block store attachment and the home server does rdiff-backup to it.

Post reply on HN