2018-03-27 16:41:57 +00:00
|
|
|
This special remote stores files on an Android device.
|
|
|
|
|
|
|
|
The `adb` program is used to access the Android device, which
|
|
|
|
allows connecting to it in various ways like a USB cable or wifi.
|
|
|
|
|
2018-03-27 20:10:28 +00:00
|
|
|
## example
|
|
|
|
|
2019-04-10 13:46:27 +00:00
|
|
|
To add a remote for the /sdcard/DCIM directory
|
|
|
|
on the Android device, allowing to import and export photos:
|
2018-03-27 20:10:28 +00:00
|
|
|
|
2019-04-10 13:46:27 +00:00
|
|
|
git annex initremote android type=adb androiddirectory=/sdcard/DCIM encryption=none exporttree=yes importtree=yes
|
2018-03-27 20:10:28 +00:00
|
|
|
git annex export master --to android
|
|
|
|
|
2018-03-27 16:41:57 +00:00
|
|
|
## configuration
|
|
|
|
|
|
|
|
A number of parameters can be passed to `git annex initremote` to configure
|
|
|
|
the adb remote.
|
|
|
|
|
|
|
|
* `androiddirectory` - Set to the location on the Android device where
|
|
|
|
files for the special remote are stored.
|
|
|
|
|
|
|
|
* `androidserial` - Normally this is not needed, but if multiple Android
|
|
|
|
devices are accessible, you'll be prompted to use it to specify which
|
|
|
|
one to use.
|
|
|
|
|
|
|
|
* `exporttree` - Set to "yes" to make this special remote usable
|
|
|
|
by [[git-annex-export]]. It will not be usable as a general-purpose
|
|
|
|
special remote. Since this makes the exported files easily browsable
|
|
|
|
on the Android device, you will almost always want to enable this.
|
|
|
|
|
2019-04-10 13:46:27 +00:00
|
|
|
* `importtree` - Set to "yes" to make this special remote usable
|
|
|
|
by [[git-annex-import]]. When set in combination with exporttree,
|
|
|
|
this lets files be imported from it, and changes exported back to it.
|
|
|
|
|
2022-01-11 01:15:30 +00:00
|
|
|
* `ignorefinderror` - Set to "yes" to ignore errors when running "adb find"
|
|
|
|
on the Android device. This can be useful eg, if some subdirectories are
|
|
|
|
not readable, to let it import the other things that are readable.
|
|
|
|
|
2018-03-27 16:41:57 +00:00
|
|
|
* `encryption` - One of "none", "hybrid", "shared", or "pubkey".
|
|
|
|
See [[encryption]].
|
|
|
|
|
|
|
|
* `keyid` - Specifies the gpg key to use for [[encryption]].
|
|
|
|
|
|
|
|
* `chunk` - Enables [[chunking]] when storing large files.
|