tigrish / redmine_s3

Uses Amazon S3 for storing attachments
50 stars 84 forks source link

Added script that I used to move files from files folder up to S3 #6

Closed benasher44 closed 12 years ago

benasher44 commented 12 years ago

I used this rake task to upload my files to S3, so I thought I'd share. This should also close issue #2. I made it multi-threaded because I originally used it to upload 2GB+ worth of files to S3, and it worked out pretty well performance-wise.

rake redmine_s3:files_to_s3

It does a one-way sync. It can be run multiple times, and it won't do extra work uploading files that are already on S3.