Index: /trunk/lib/Brackup/Target/Amazon.pm
===================================================================
--- /trunk/lib/Brackup/Target/Amazon.pm (revision 165)
+++ /trunk/lib/Brackup/Target/Amazon.pm (revision 167)
@@ -3,5 +3,5 @@
 use warnings;
 use base 'Brackup::Target';
-use Net::Amazon::S3 0.37;
+use Net::Amazon::S3 0.41;
 
 # fields in object:
@@ -10,4 +10,5 @@
 #   sec_access_key_id
 #   prefix
+#   location
 #   chunk_bucket : $self->{prefix} . "-chunks";
 #   backup_bucket : $self->{prefix} . "-backups";
@@ -23,4 +24,5 @@
         or die "No 'aws_secret_access_key'";
     $self->{prefix} = $confsec->value("aws_prefix") || $self->{access_key_id};
+    $self->{location} = $confsec->value("aws_location") || undef;
 
     $self->_common_s3_init;
@@ -30,10 +32,10 @@
 
     unless (grep { $_->{bucket} eq $self->{chunk_bucket} } @{ $buckets->{buckets} }) {
-        $s3->add_bucket({ bucket => $self->{chunk_bucket} })
+        $s3->add_bucket({ bucket => $self->{chunk_bucket}, location_constraint => $self->{location} })
             or die "Chunk bucket creation failed\n";
     }
 
     unless (grep { $_->{bucket} eq $self->{backup_bucket} } @{ $buckets->{buckets} }) {
-        $s3->add_bucket({ bucket => $self->{backup_bucket} })
+        $s3->add_bucket({ bucket => $self->{backup_bucket}, location_constraint => $self->{location} })
             or die "Backup bucket creation failed\n";
     }
@@ -238,4 +240,14 @@
 Brackup. If not specified it defaults to the AWS access key id.
 
+=item B<aws_location>
+
+Sets the location constraint of the new buckets. If left unspecified, the
+default S3 datacenter location will be used. Otherwise, you can set it
+to 'EU' for an AWS European data center - note that costs are different.
+This has only effect when your backup environment is initialized in S3 (i.e.
+when buckets are created). If you want to move an existing backup environment
+to another datacenter location, you have to delete its buckets before or create
+a new one by specifing a different I<aws_prefix>.
+
 =back
 
Index: /trunk/Changes
===================================================================
--- /trunk/Changes (revision 166)
+++ /trunk/Changes (revision 167)
@@ -1,2 +1,6 @@
+  - added the aws_location option to set the datacenter location for
+    S3 targets. from Alessandro Ranellucci <aar@cpan.org>.
+    The Amazon S3 target now depends on version 0.41 of Net::Amazon::S3.
+
   - fixed tempfile creation in gc (orphaned files were left in the 
     working directory). from Alessandro Ranellucci <aar@cpan.org>.
