Live data from Hacker News

S3sync – Tool belt for managing your S3 buckets

github.com

11–20 of 22 posts

Re: S3sync – Tool belt for managing your S3 buckets

#11
post #6
post #4

How does this compare to the existing s3cmd [1] tool? One issue I've had with s3cmd is it tends to use a lot of memory when syncing two large buckets. I'd love to see a tool that was faster / more memory efficient than s3cmd. Would be awesome to see some benchmarks and feature comparison in the README! [1] http://s3tools.org/s3cmd

So, basically, the main difference is the language they're implemented in. I started working on s3sync cause I found its code easier to read and I really needed to practice my ruby skills. Although s3cmd is older and has more features, s3sync was designed to grow stable and well tested. I'm definitely planning to write benchmarks to s3sync and improve its performance as much as I can.

Thank you. Does this support IAM Roles?

Re: S3sync – Tool belt for managing your S3 buckets

#13

A tool that could do parallel downloads of small files would be a winner. We have a lot of small files and use s3cmd. It downloads one at a time. You can finagle it with some xargs magic, but it would be nice to have it built in.

Totally expecting to see someone build this in go in a couple weeks to do exactly that sort of thing. :)

Wish I had the time, I just realized it would be a fun project to learn Go with.

Re: S3sync – Tool belt for managing your S3 buckets

#14

A tool that could do parallel downloads of small files would be a winner. We have a lot of small files and use s3cmd. It downloads one at a time. You can finagle it with some xargs magic, but it would be nice to have it built in.

I use this tool extensively and it's awesome: http://sprightlysoft.com/s3sync/ It has the same name. Check out -TransferThreads parameter for paralel uploads/downloads (see Documentation link). I use it for syncing dozens of buckets each containing tens of thousands of small files and it works without a glitch.

Re: S3sync – Tool belt for managing your S3 buckets

#15
post #6

Earlier quoted context omitted.

So, basically, the main difference is the language they're implemented in. I started working on s3sync cause I found its code easier to read and I really needed to practice my ruby skills. Although s3cmd is older and has more features, s3sync was designed to grow stable and well tested. I'm definitely planning to write benchmarks to s3sync and improve its performance as much as I can.

Thank you. Does this support IAM Roles?

Not currently! Please feel free to open a ticket about that! Thank you! :)

Re: S3sync – Tool belt for managing your S3 buckets

#16
post #13

A tool that could do parallel downloads of small files would be a winner. We have a lot of small files and use s3cmd. It downloads one at a time. You can finagle it with some xargs magic, but it would be nice to have it built in.

Totally expecting to see someone build this in go in a couple weeks to do exactly that sort of thing. :) Wish I had the time, I just realized it would be a fun project to learn Go with.

You could just modify s3cmd to use threads during uploads? Problem is IO bound so the Gil isn't an issue and you wouldn't have to go through the trouble of implementing s3's auth header.

Re: S3sync – Tool belt for managing your S3 buckets

#17
post #10

What does this provide that isn't already provided by the official AWS CLI? http://docs.aws.amazon.com/cli/latest/reference/s3/index.htm...

Hi, thanks for asking! I definitely tried this guy before putting more effort on s3sync. Unfortunately their cli experience is really poor and its error report didn't help me understand why synchronizing my stuff with s3 was not working.

In the end of the day, I had an unreadable file inside of the directory that I was trying to back up. I found that out using `--debug` option of the official client, but I couldn't actually continue copying the files cause of that error.

When I tried with s3sync, as I expected, it just yielded a warning about the single file I had with problems and kept working until my backup was done!

Sorry for the wall of text, I just think it's funny cause this exact question came to my mind a couple days ago and that's how I answered my self! :)

Re: S3sync – Tool belt for managing your S3 buckets

#18
post #3

What are the pros and cons of using s3sync versus s3cmd?

First things that come to my mind:

s3cmd: * might be considered more robust and battle tested as people already commented here; * is written in python, so if you have a python environment running, you might be more comfortable with it;

s3sync * Smaller codebase, might be easier to keep things simpler and well tested, achieving the same stability with less time/effort; * Error reporting. One of my main reasons to keep working on s3sync was its better error reporting. I just go crazy when something wrong happens and I don't know why. * It's in ruby, if you have a ruby environment and you don't want to add any python dependencies, you might choose it

Re: S3sync – Tool belt for managing your S3 buckets

#19

A tool that could do parallel downloads of small files would be a winner. We have a lot of small files and use s3cmd. It downloads one at a time. You can finagle it with some xargs magic, but it would be nice to have it built in.

I wrote a simple tool for syncing an S3 bucket to local disk:

https://github.com/newspaperclub/hank

I found the existing s3 syncing tools used lots of memory when dealing with many small files, so I wrote this in Go, trying to carefully manage memory usage by concurrently listing and downloading the files.

We use it for backing up 500GB across 800k files, from an S3 bucket to a ZFS filesystem for snapshotting. It does the job well, usually taking just a few minutes when there are minimal changes.

Re: S3sync – Tool belt for managing your S3 buckets

#20
post #15

Earlier quoted context omitted.

Thank you. Does this support IAM Roles?

Not currently! Please feel free to open a ticket about that! Thank you! :)

Ok here you go.

https://github.com/clarete/s3sync/issues/15

Wish I could help, but I don't know ruby :)

Post reply on HN