git-annex/doc/special_remotes/directory.mdwn

40 lines
1.7 KiB
Text
Raw Normal View History

2011-03-30 19:32:34 +00:00
This special remote type stores file contents in directory.
2011-03-30 17:18:46 +00:00
2011-04-16 23:30:31 +00:00
One use case for this would be if you have a removable drive that
2014-02-02 19:26:33 +00:00
you want to use to sneakernet files between systems (possibly with
2011-04-16 23:30:31 +00:00
[[encrypted|encryption]] contents). Just set up both systems to use
2011-03-30 17:18:46 +00:00
the drive's mountpoint as a directory remote.
2014-02-02 19:26:33 +00:00
Note that directory remotes have a special directory structure
(by design, the same as the \[[rsync|rsync]] remote).
If you just want two copies of your repository with the files "visible"
in the tree in both, the directory special remote is not what you want.
Instead, you should use a regular `git clone` of your git-annex repository.
## configuration
These parameters can be passed to `git annex initremote` to configure the
remote:
2014-02-02 19:26:33 +00:00
* `directory` - The path to the directory where the files should be stored
for the remote. The directory must already exist. Typically this will
be an empty directory, or a directory already used as a directory remote.
* `encryption` - One of "none", "hybrid", "shared", or "pubkey".
See [[encryption]].
* `keyid` - Specifies the gpg key to use for [[encryption]].
* `chunksize` - Avoid storing files larger than the specified size in the
directory. For use on directories on mount points that have file size
2012-03-04 14:51:25 +00:00
limitations. The default is to never chunk files.
The value can use specified using any commonly used units.
2012-03-04 14:51:25 +00:00
Example: `chunksize=100 megabytes`
Note that enabling chunking on an existing remote with non-chunked
files is not recommended.
2011-03-30 17:18:46 +00:00
Setup example:
# git annex initremote usbdrive type=directory directory=/media/usbdrive/ encryption=none
# git annex describe usbdrive "usb drive on /media/usbdrive/"