I'm transferring a bunch of files to Dreamhost servers from S3. The transfer fails because it's consuming too much memory (using sync or get). Can anyone suggest a way around this?

Yikes! One of your processes (python, pid 18430) was just killed because your
processes are, as a whole, consuming too much memory. If you believe you've
received this message in error, please contact Support.