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
|
|
|
|
you want to use it to sneakernet files between systems (possibly with
|
|
|
|
[[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.
|
|
|
|
|
2012-03-03 22:05:55 +00:00
|
|
|
## configuration
|
|
|
|
|
|
|
|
These parameters can be passed to `git annex initremote` to configure the
|
|
|
|
remote:
|
|
|
|
|
2012-11-19 21:32:58 +00:00
|
|
|
* `encryption` - Required. Either "none" to disable encryption,
|
2012-03-03 22:05:55 +00:00
|
|
|
or a value that can be looked up (using gpg -k) to find a gpg encryption
|
2012-11-19 21:32:58 +00:00
|
|
|
key that will be given access to the remote, or "shared" which allows
|
|
|
|
every clone of the repository to decrypt the encrypted data.
|
|
|
|
|
|
|
|
Note that additional gpg keys can be given access to a remote by
|
2013-04-26 22:22:44 +00:00
|
|
|
running enableremote with the new key id. See [[encryption]].
|
2012-11-19 21:32:58 +00:00
|
|
|
|
2012-03-03 22:05:55 +00:00
|
|
|
* `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.
|
2012-03-03 22:05:55 +00:00
|
|
|
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.
|
2012-03-03 22:05:55 +00:00
|
|
|
|
2011-03-30 17:18:46 +00:00
|
|
|
Setup example:
|
|
|
|
|
2011-04-28 00:06:07 +00:00
|
|
|
# git annex initremote usbdrive type=directory directory=/media/usbdrive/ encryption=none
|
2011-04-29 15:16:54 +00:00
|
|
|
# git annex describe usbdrive "usb drive on /media/usbdrive/"
|