diff options
author | Joey Hess <joeyh@joeyh.name> | 2015-05-28 11:54:45 -0400 |
---|---|---|
committer | Joey Hess <joeyh@joeyh.name> | 2015-05-28 11:54:45 -0400 |
commit | 219725b5ff610ce9fefd584c1b1b5e8086fc203b (patch) | |
tree | d0429652c7c9b6037ec3420f80c5c9d47d841415 /doc/tips/publishing_your_files_to_the_public.mdwn | |
parent | d32c379d09f1648f27933cd33fd2a4b90f3efe44 (diff) | |
parent | 56d65a425c9461c88587d070cc732dc49a1d674f (diff) |
Merge branch 'master' of ssh://git-annex.branchable.com5.20150528
Diffstat (limited to 'doc/tips/publishing_your_files_to_the_public.mdwn')
-rw-r--r-- | doc/tips/publishing_your_files_to_the_public.mdwn | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/doc/tips/publishing_your_files_to_the_public.mdwn b/doc/tips/publishing_your_files_to_the_public.mdwn index ae65263a7..d2c074503 100644 --- a/doc/tips/publishing_your_files_to_the_public.mdwn +++ b/doc/tips/publishing_your_files_to_the_public.mdwn @@ -61,3 +61,16 @@ To enable use a private S3 bucket for the remotes and then pre-sign actual URL w Example: key=`git annex lookupkey "$fname"`; sign_s3_url.bash --region 'eu-west-1' --bucket 'mybuck' --file-path $key --aws-access-key-id XX --aws-secret-access-key XX --method 'GET' --minute-expire 10 + +## Adding the S3 URL as a source + +Assuming all files in the current directory are available on S3, this will register the public S3 url for the file in git-annex, making it available for everyone *through git-annex*: + +<pre> +git annex find --in public-s3 | while read file ; do + key=$(git annex lookupkey $file) + echo $key https://public-annex.s3.amazonaws.com/$key +done | git annex registerurl +</pre> + +`registerurl` was introduced in `5.20150317`. There's a todo open to ensure we don't have to do this by hand: [[todo/credentials-less access to s3]]. |