Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Amazon S3 Backup Serialize

by p6steve (Sexton)
on Nov 26, 2006 at 11:43 UTC ( #586092=perlquestion: print w/replies, xml ) Need Help??

p6steve has asked for the wisdom of the Perl Monks concerning the following question:

I use rsync/cron/perl/smb on my home Linux box to automate backups (as disk copies). I want to add a remote backup channel using Net::Amazon::S3. What are my options for serializing about 2G of files (jpgs / mp4s / docs) in a directory tree to replace 'T' in the following???
# store a key with a content-type and some optional metadata my $keyname = 'testing.txt'; my $value = 'T'; $bucket_obj->add_key( $keyname, $value, { content_type => 'text/plain', 'x-amz-meta-colour' => 'orange', } );

Replies are listed 'Best First'.
Re: Amazon S3 Backup Serialize
by shmem (Chancellor) on Nov 27, 2006 at 09:05 UTC
    The documentation of Net::Amazon::S3 reads for add_key thusly:
    add_key
    DEPRECATED. DO NOT USE

    So, you shouldn't use that.

    What are my options for serializing about 2G of files (jpgs / mp4s / docs) in a directory tree to replace 'T' in the following???

    I took two question signs off your question to stick them over my eyebrows. I just can't figure what you are asking for. Replace 'T'? easy:

    $value =~ s/T/A/;

    Why would you need 2G of data for that?

    --shmem

    _($_=" "x(1<<5)."?\n".q·/)Oo.  G°\        /
                                  /\_¯/(q    /
    ----------------------------  \__(m.====·.(_("always off the crowd"))."·
    ");sub _{s./.($e="'Itrs `mnsgdq Gdbj O`qkdq")=~y/"-y/#-z/;$e.e && print}

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://586092]
Approved by Arunbear
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (5)
As of 2022-05-18 09:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you prefer to work remotely?



    Results (70 votes). Check out past polls.

    Notices?