Log in

No account? Create an account
Brackup; updated Amazon code - brad's life — LiveJournal [entries|archive|friends|userinfo]
Brad Fitzpatrick

[ website | bradfitz.com ]
[ userinfo | livejournal userinfo ]
[ archive | journal archive ]

Brackup; updated Amazon code [Mar. 22nd, 2006|11:39 pm]
Brad Fitzpatrick
[Tags|, ]

Get Brackup 0.71 (just uploaded to CPAN too):

$ svn co http://code.sixapart.com/svn/brackup/trunk brackup

Then get my useful-return-value modifications to Net::Amazon::S3:

$ svn co http://code.sixapart.com/svn/Net-Amazon-S3

(I put them up there with svk, so hopefully it's easy for Leon to smerge.)

Setup your ~/.brackup.conf target:

type = Amazon
aws_access_key_id = 196XAExxxxxxxPG2
aws_secret_access_key = IkNxxxxxxxxU8G0
exist_cache = /home/bradfitz/.amazon_chunks.db

path = /raid/bradfitz/proj/
chunk_size = 5m
#gpg_recipient = 5E1B3EC5

The exist_cache makes "do you have this chunk already?" requests cached, so it flies now.

Then backup!

$ brackup --from=proj --to=amazon


Except occasionally Amazon gives you internal server errors. Not yay.

[User Picture]From: cudddly
2006-03-23 05:46 pm (UTC)


Looking good! Finished with the hacking? Want me to merge and release?
(Reply) (Thread)
[User Picture]From: brad
2006-03-23 06:19 pm (UTC)

Re: Done?

I didn't finish going through all the functions, just the ones I needed. Your choice: release now and in a day or two, or just in a day or two. I haven't documented the return values yet.

I always wanted to make Net::Amazon::S3::Bucket and ::Object object, hashwards-compatible with the existing conventions, if that's cool with you?

Not sure how much hacking you're still doing on it and didn't want to step on toes.
(Reply) (Parent) (Thread)