git-annex/doc/walkthrough/using_ddar.mdwn

33 lines
1.2 KiB
Text
Raw Normal View History

2014-05-15 18:44:00 +00:00
Another [[special_remote|special_remotes]] that git-annex can use is
a [[special_remotes/ddar]] repository. ddar stores large file contents
in a directory structure of its own, with deduplication. For remote
repositories, ddar requires that ssh is available on the remote, with ddar also
installed remotely. When copying files to the remote, ddar only needs to send
over the network the parts of the files that are not already present remotely.
Unlike bup, ddar uses its own storage format, which allows for both creation
and deletion of de-deduplicated files.
Here's how to create a ddar remote, and describe it.
[[!template id=note text="""
2014-05-15 20:42:37 +00:00
Instead of specifying a remote system, you could choose to make a ddar
2014-05-15 18:44:00 +00:00
remote that is only accessible on the current system, by passing
"ddarrepo=/big/myddar".
"""]]
# git annex initremote myddar type=ddar encryption=none ddarrepo=example.com:/big/myddar
2014-05-15 23:26:04 +00:00
initremote ddar (ddar init)
2014-05-15 18:44:00 +00:00
Initialized empty Git repository in /big/myddar/
ok
2014-05-15 23:26:04 +00:00
# git annex describe myddar "my ddar repository at example.com"
2014-05-15 18:44:00 +00:00
describe myddar ok
Now the remote can be used like any other remote.
# git annex move my_cool_big_file --to myddar
move my_cool_big_file (to myddar...)
ok
2014-05-15 20:43:05 +00:00
See [[special_remotes/ddar]] for details.