initial support for annexobjects=yes
Works but some commands may need changes to support special remotes configured this way.
This commit is contained in:
parent
169fd414eb
commit
28b29f63dc
14 changed files with 163 additions and 41 deletions
|
@ -14,8 +14,7 @@ Normally files are stored on a git-annex special remote named by their
|
|||
keys. That is great for reliable data storage, but your filenames are
|
||||
obscured. Exporting replicates the tree to the special remote as-is.
|
||||
|
||||
Mixing key/value storage and exports in the same remote would be a mess and
|
||||
so is not allowed. You have to configure a special remote with
|
||||
To use this, you have to configure a special remote with
|
||||
`exporttree=yes` when initially setting it up with
|
||||
[[git-annex-initremote]](1).
|
||||
|
||||
|
|
|
@ -92,8 +92,8 @@ See [[git-annex-preferred-content]](1).
|
|||
|
||||
This option can be repeated multiple times with different paths.
|
||||
|
||||
Note that this option is ignored when syncing with "exporttree=yes"
|
||||
remotes.
|
||||
Note that this option does not prevent exporting other files to an
|
||||
"exporttree=yes" remote.
|
||||
|
||||
* `--all` `-A`
|
||||
|
||||
|
|
|
@ -37,8 +37,8 @@ do so by using eg `approxlackingcopies=1`.
|
|||
|
||||
This option can be repeated multiple times with different paths.
|
||||
|
||||
Note that this option is ignored when syncing with "exporttree=yes"
|
||||
remotes.
|
||||
Note that this option does not prevent exporting other files to an
|
||||
"exporttree=yes" remote.
|
||||
|
||||
* `--jobs=N` `-JN`
|
||||
|
||||
|
|
|
@ -125,6 +125,11 @@ the S3 remote.
|
|||
When versioning is not enabled, this risks data loss, and so git-annex
|
||||
will not let you enable a remote with that configuration unless forced.
|
||||
|
||||
* `annexobjects` - When set to "yes" along with "exporttree=yes",
|
||||
this allows storing other objects in the remote along with the
|
||||
exported tree. They will be stored under .git/annex/objects/ in the
|
||||
remote.
|
||||
|
||||
* `publicurl` - Configure the URL that is used to download files
|
||||
from the bucket. Using this with a S3 bucket that has been configured
|
||||
to allow anyone to download its content allows git-annex to download
|
||||
|
|
|
@ -32,6 +32,11 @@ the adb remote.
|
|||
by [[git-annex-import]]. When set in combination with exporttree,
|
||||
this lets files be imported from it, and changes exported back to it.
|
||||
|
||||
* `annexobjects` - When set to "yes" along with "exporttree=yes",
|
||||
this allows storing other objects in the remote along with the
|
||||
exported tree. They will be stored under .git/annex/objects/ in the
|
||||
remote.
|
||||
|
||||
* `oldandroid` - Set to "yes" if your Android device is too old
|
||||
to support `find -printf`. Enabling this will make importing slower.
|
||||
If you see an error like "bad arg '-printf'", you can enable this
|
||||
|
|
|
@ -41,6 +41,11 @@ remote:
|
|||
by [[git-annex-import]]. It will not be usable as a general-purpose
|
||||
special remote.
|
||||
|
||||
* `annexobjects` - When set to "yes" along with "exporttree=yes",
|
||||
this allows storing other objects in the remote along with the
|
||||
exported tree. They will be stored under .git/annex/objects/ in the
|
||||
directory.
|
||||
|
||||
* `ignoreinodes` - Usually when importing, the inode numbers
|
||||
of files are used to detect when files have changed. Since some
|
||||
filesystems generate new inode numbers each time they are mounted,
|
||||
|
|
|
@ -32,6 +32,9 @@ for a list of known working combinations.
|
|||
Setting this does not allow trees to be exported to the httpalso remote,
|
||||
because it's read-only. But it does let exported files be downloaded
|
||||
from it.
|
||||
* `annexobjects` - If the other special remote has `annexobjects=yes`
|
||||
set (along with `exporttree=yes`), it also needs to be set when
|
||||
initializing the httpalso remote.
|
||||
|
||||
Configuration of encryption and chunking is inherited from the other
|
||||
special remote, and does not need to be specified when initializing the
|
||||
|
|
|
@ -26,6 +26,11 @@ These parameters can be passed to `git annex initremote` to configure rsync:
|
|||
by [[git-annex-export]]. It will not be usable as a general-purpose
|
||||
special remote.
|
||||
|
||||
* `annexobjects` - When set to "yes" along with "exporttree=yes",
|
||||
this allows storing other objects in the remote along with the
|
||||
exported tree. They will be stored under .git/annex/objects/ in the
|
||||
remote.
|
||||
|
||||
* `shellescape` - Optional. This has no effect when using rsync 3.2.4 or
|
||||
newer. Set to "no" to avoid shell escaping
|
||||
normally done when using older versions of rsync over ssh. That escaping
|
||||
|
|
|
@ -33,6 +33,11 @@ the webdav remote.
|
|||
by [[git-annex-export]]. It will not be usable as a general-purpose
|
||||
special remote.
|
||||
|
||||
* `annexobjects` - When set to "yes" along with "exporttree=yes",
|
||||
this allows storing other objects in the remote along with the
|
||||
exported tree. They will be stored under .git/annex/objects/ in the
|
||||
remote.
|
||||
|
||||
* `chunk` - Enables [[chunking]] when storing large files.
|
||||
|
||||
* `chunksize` - Deprecated version of chunk parameter above.
|
||||
|
|
|
@ -52,6 +52,13 @@ surprising for an existing user!
|
|||
|
||||
Perhaps this should not be "exportree=yes", but something else.
|
||||
|
||||
> Currently, if a remote is configured with "exporttree=foo", that
|
||||
> is treated the same as "exporttree=no". So this will need to be
|
||||
> a config added to exporttree=yes in order to interoperate
|
||||
> with old git-annex.
|
||||
>
|
||||
> Call it "exporttree=yes annexobjects=yes" --[[Joey]]
|
||||
|
||||
----
|
||||
|
||||
Consider two repositories A and B that both have access to the same
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue