From 803722bb2de3e0b19bc36c4a158ae9d3dd0540ce Mon Sep 17 00:00:00 2001 From: yarikoptic Date: Mon, 13 Jan 2020 19:01:11 +0000 Subject: [PATCH] Added a comment: preferred way to automate population of the cache upon `get` --- ...22_b047ea1c6b9247a42b560a111d4fdeae._comment | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 doc/tips/local_caching_of_annexed_files/comment_22_b047ea1c6b9247a42b560a111d4fdeae._comment diff --git a/doc/tips/local_caching_of_annexed_files/comment_22_b047ea1c6b9247a42b560a111d4fdeae._comment b/doc/tips/local_caching_of_annexed_files/comment_22_b047ea1c6b9247a42b560a111d4fdeae._comment new file mode 100644 index 0000000000..7c24be4fe8 --- /dev/null +++ b/doc/tips/local_caching_of_annexed_files/comment_22_b047ea1c6b9247a42b560a111d4fdeae._comment @@ -0,0 +1,17 @@ +[[!comment format=mdwn + username="yarikoptic" + avatar="http://cdn.libravatar.org/avatar/f11e9c84cb18d26a1748c33b48c924b4" + subject="preferred way to automate population of the cache upon `get`" + date="2020-01-13T19:01:07Z" + content=""" +``` +# Populating the cache +For the cache to be used, you need to get file contents into it somehow. A simple way to do that is, in a git-annex repository that already contains the content of files: + + git annex copy --to cache + +You could run that anytime after you get content. There are also ways to automate it, but getting some files into the cache manually is a good enough start. +``` + +Hi Joey. What would be the preferred way you would advise to use (ideally with minimal manual configuration) to make it happen? I.e. whenever user(s) `get` some load, it gets automagically `annex copied` to the cache? +"""]]