aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Joey Hess <joeyh@joeyh.name>2017-08-29 13:25:48 -0400
committerGravatar Joey Hess <joeyh@joeyh.name>2017-08-29 13:25:48 -0400
commit119f951d4b91fef9cad0d1ce76d3a430510bfdc1 (patch)
treed7f86e0209955ba2e98f3924d6f1638373fb4922
parentffcea3cdab00f2d2f5e8352ee1a97a71c684e626 (diff)
documentation for export
This commit was sponsored by Ole-Morten Duesund on Patreon.
-rw-r--r--doc/git-annex-export.mdwn37
-rw-r--r--doc/git-annex-import.mdwn2
-rw-r--r--doc/git-annex.mdwn6
-rw-r--r--doc/special_remotes/directory.mdwn4
4 files changed, 49 insertions, 0 deletions
diff --git a/doc/git-annex-export.mdwn b/doc/git-annex-export.mdwn
new file mode 100644
index 000000000..96a09dc9b
--- /dev/null
+++ b/doc/git-annex-export.mdwn
@@ -0,0 +1,37 @@
+# NAME
+
+git-annex export - export content to a remote
+
+# SYNOPSIS
+
+git annex export `treeish --to remote`
+
+# DESCRIPTION
+
+Use this command to export a tree of files from a git-annex repository.
+
+Normally files are stored on a git-annex special remote named by their
+keys. That is great for data storage, but your filenames are obscured.
+Exporting replicates the tree to the special remote as-is.
+
+Mixing key/value and exports in the same remote would be a mess and so is
+not allowed. So, you have to configure a remote with `exporttree=true`
+when initially setting it up with [[git-annex-initremote]](1).
+
+Repeated exports are done efficiently, by diffing the old and new tree,
+and transferring only the changed files.
+
+Exports can be interrupted and resumed. However, partially uploaded files
+will be re-started from the beginning.
+
+# SEE ALSO
+
+[[git-annex]](1)
+
+[[git-annex-export]](1)
+
+# AUTHOR
+
+Joey Hess <id@joeyh.name>
+
+Warning: Automatically converted into a man page by mdwn2man. Edit with care.
diff --git a/doc/git-annex-import.mdwn b/doc/git-annex-import.mdwn
index 22b3c3941..3684505b6 100644
--- a/doc/git-annex-import.mdwn
+++ b/doc/git-annex-import.mdwn
@@ -96,6 +96,8 @@ instead of to the annex.
[[git-annex-add]](1)
+[[git-annex-export]](1)
+
# AUTHOR
Joey Hess <id@joeyh.name>
diff --git a/doc/git-annex.mdwn b/doc/git-annex.mdwn
index 14a787219..544baafa1 100644
--- a/doc/git-annex.mdwn
+++ b/doc/git-annex.mdwn
@@ -158,6 +158,12 @@ subdirectories).
See [[git-annex-importfeed]](1) for details.
+* `export treeish --to remote`
+
+ Export content to a remote.
+
+ See [[git-annex-export]](1) for details.
+
* `undo [filename|directory] ...`
Undo last change to a file or directory.
diff --git a/doc/special_remotes/directory.mdwn b/doc/special_remotes/directory.mdwn
index 5584f31f3..e3f7f1e45 100644
--- a/doc/special_remotes/directory.mdwn
+++ b/doc/special_remotes/directory.mdwn
@@ -31,6 +31,10 @@ remote:
Do not use for new remotes. It is not safe to change the chunksize
setting of an existing remote.
+* `exporttree` - Set to "true" to make this special remote usable
+ by [[git-annex-export]]. It will not be usable as a general-purpose
+ special remote.
+
Setup example:
# git annex initremote usbdrive type=directory directory=/media/usbdrive/ encryption=none