diff options
Diffstat (limited to 'doc/tips/publishing_your_files_to_the_public/old_method')
5 files changed, 55 insertions, 0 deletions
diff --git a/doc/tips/publishing_your_files_to_the_public/old_method/comment_1_48f545ce26dbec944f96796ed3b9204d._comment b/doc/tips/publishing_your_files_to_the_public/old_method/comment_1_48f545ce26dbec944f96796ed3b9204d._comment new file mode 100644 index 000000000..6ee85367e --- /dev/null +++ b/doc/tips/publishing_your_files_to_the_public/old_method/comment_1_48f545ce26dbec944f96796ed3b9204d._comment @@ -0,0 +1,21 @@ +[[!comment format=mdwn + username="joey" + subject="""nice tip""" + date="2014-12-01T22:59:58Z" + content=""" +Thanks Giovanni for that nice tip! + +You can additionally publish the whole git repository +by eg pushing it to github. (Not if it contains private files +or if you have embedded encryption keys or credentials though.) + +You can tell git-annex the public url for the files too, and then others +can just clone the git repository and use git-annex to download the files +from S3. + +You could set that up by running something like this: + + for filename in $(git annex find --in public-s3); do + git annex addurl --file "$filename" https://public-annex.s3.amazonaws.com/"$(git annex lookupkey $filename)" + done +"""]] diff --git a/doc/tips/publishing_your_files_to_the_public/old_method/comment_2_27a40806d009d617b3ad56873197bf87._comment b/doc/tips/publishing_your_files_to_the_public/old_method/comment_2_27a40806d009d617b3ad56873197bf87._comment new file mode 100644 index 000000000..9cca4e2fa --- /dev/null +++ b/doc/tips/publishing_your_files_to_the_public/old_method/comment_2_27a40806d009d617b3ad56873197bf87._comment @@ -0,0 +1,7 @@ +[[!comment format=mdwn + username="BojanNikolic" + subject="Publishing using rsync/directory layout" + date="2015-02-16T10:04:41Z" + content=""" +Is it possible to easily do the same with rsync/directory layout of the special remote? These have prefixes which are not shown when doing git annex lookupkey +"""]] diff --git a/doc/tips/publishing_your_files_to_the_public/old_method/comment_3_2f5045629e40e8d881725876190c7846._comment b/doc/tips/publishing_your_files_to_the_public/old_method/comment_3_2f5045629e40e8d881725876190c7846._comment new file mode 100644 index 000000000..c76d3a30c --- /dev/null +++ b/doc/tips/publishing_your_files_to_the_public/old_method/comment_3_2f5045629e40e8d881725876190c7846._comment @@ -0,0 +1,9 @@ +[[!comment format=mdwn + username="joey" + subject="""comment 3""" + date="2015-02-25T19:44:40Z" + content=""" +You can look up the hash directories for a key using: + +git annex examinekey $key --format '${hashdirlower}\n' +"""]] diff --git a/doc/tips/publishing_your_files_to_the_public/old_method/comment_4_37405f20da790141187e9f780c999448._comment b/doc/tips/publishing_your_files_to_the_public/old_method/comment_4_37405f20da790141187e9f780c999448._comment new file mode 100644 index 000000000..2855c3fdd --- /dev/null +++ b/doc/tips/publishing_your_files_to_the_public/old_method/comment_4_37405f20da790141187e9f780c999448._comment @@ -0,0 +1,11 @@ +[[!comment format=mdwn + username="BojanNikolic" + subject="comment 4" + date="2015-02-27T09:55:15Z" + content=""" +Many thanks. The command line I ended up using is: + + fname=\"2015/01/04/myfile.pdf\" ; git annex copy --to pubweb $fname; key=`git annex lookupkey \"$fname\"`; git annex examinekey $key --format 'https://www.myweb.com/d/${hashdirlower}${key}/${key}\n' + +to publish selected documents in my git-annex repository onto the web via a rsync special remote on a conventional http server. +"""]] diff --git a/doc/tips/publishing_your_files_to_the_public/old_method/comment_5_29c3ee4aed6a5b53b6767a96a7b85ad9._comment b/doc/tips/publishing_your_files_to_the_public/old_method/comment_5_29c3ee4aed6a5b53b6767a96a7b85ad9._comment new file mode 100644 index 000000000..bd77d03ce --- /dev/null +++ b/doc/tips/publishing_your_files_to_the_public/old_method/comment_5_29c3ee4aed6a5b53b6767a96a7b85ad9._comment @@ -0,0 +1,7 @@ +[[!comment format=mdwn + username="https://id.koumbit.net/anarcat" + subject="comment 5" + date="2015-05-27T21:50:10Z" + content=""" +[registerurl](http://source.git-annex.branchable.com/?p=source.git;a=blobdiff;f=doc/git-annex.mdwn;h=c33633e03378b0125a3feb5d1a9fa61ce9bfa9cc;hp=3af9bbb8c1d2e84506f3db80ad7253a7cd8de1d4;hb=abfe3c09b2caac0827a2196076c9bd9185451b9f;hpb=b24bb6b435ddc91510163c7b22db2ba52703724c) may provide a faster version of the above. i've also creted a [[feature request|todo/credentials-less_access_to_s3]] to make this easier with s3 (so that we don't have to setup urls for each individual file). --[[anarcat]] +"""]] |