summaryrefslogtreecommitdiff
path: root/doc/tips/publishing_your_files_to_the_public.mdwn
diff options
context:
space:
mode:
Diffstat (limited to 'doc/tips/publishing_your_files_to_the_public.mdwn')
-rw-r--r--doc/tips/publishing_your_files_to_the_public.mdwn13
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]].