NAME

Amazon::S3::FastUploader - fast uploader to Amazon S3

SYNOPSIS

By this module, you can upload many files to Amazon S3 at the same time (in another word, in parallel) . The module uses Parallel::ForkManager internally.

use Amazon::S3::FastUploader;

my $local_dir = '/path/to/dir/';
my $bucket_name = 'myubcket';
my $remote_dir '/path/to/dir/';
my $uploader = Amazon::S3::FastUploader->new({
    aws_access_key_id => 'your_key_id',
    aws_secret_access_key => 'your_secre_key',
    process => 10, # num of proccesses in parallel
    secure  => 1,  # use SSL
    encrypt => 1,  # use ServerSide Encryption
    retry   => 5,
    verbose => 1,  # print log to stdout
    acl_short => 'public-read',  # private if ommited
});

$uploader->upload($local_dir, $bucket_name, $remote_dir);

METHODS

new

Instaniates a new object.

Requires a hashref

upload $local_dir $bucket_name $remote_dir

upload recursively $local_dir to $remote_dir

AUTHOR

DQNEO, <dqneoo at gmail.com>

Github Repository

https://github.com/DQNEO/Amazon-S3-FastUploader

Forks & Pull Requests are wellcome!

BUGS

Please report any bugs or feature requests to bug-amazon-s3-fastuploader at rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Amazon-S3-FastUploader. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.

SUPPORT

You can find documentation for this module with the perldoc command.

perldoc Amazon::S3::FastUploader

You can also look for information at:

SEE ALSO

Amazon::S3 Parallel::ForkManager

LICENSE AND COPYRIGHT

Copyright 2012 DQNEO.

This program is free software; you can redistribute it and/or modify it under the terms of either: the GNU General Public License as published by the Free Software Foundation; or the Artistic License.

See http://dev.perl.org/licenses/ for more information.