2011-04-08 18:56:57 +00:00
|
|
|
Another [[special_remote|special_remotes]] that git-annex can use is
|
|
|
|
a [[special_remotes/bup]] repository. Bup stores large file contents
|
|
|
|
in a git repository of its own, with deduplication. Combined with
|
|
|
|
git-annex, you can have git on both the frontend and the backend.
|
|
|
|
|
|
|
|
Here's how to create a bup remote, and describe it.
|
|
|
|
|
2011-04-09 00:47:23 +00:00
|
|
|
[[!template id=note text="""
|
2011-04-09 00:44:52 +00:00
|
|
|
Instead of specifying a remote system, you could choose to make a bup
|
|
|
|
remote that is only accessible on the current system, by passing
|
2011-04-09 16:41:17 +00:00
|
|
|
"buprepo=/big/mybup".
|
2011-04-09 00:46:40 +00:00
|
|
|
"""]]
|
2011-04-09 00:44:52 +00:00
|
|
|
|
2011-04-09 16:41:17 +00:00
|
|
|
# git annex initremote mybup type=bup encryption=none buprepo=example.com:/big/mybup
|
2011-04-08 20:44:43 +00:00
|
|
|
initremote bup (bup init)
|
|
|
|
Initialized empty Git repository in /big/mybup/
|
|
|
|
ok
|
2011-04-08 18:56:57 +00:00
|
|
|
# git annex describe mybup "my bup repository at example.com"
|
|
|
|
describe mybup ok
|
|
|
|
|
|
|
|
Now the remote can be used like any other remote.
|
|
|
|
|
|
|
|
# git annex move my_cool_big_file --to mybup
|
2011-04-08 20:44:43 +00:00
|
|
|
move my_cool_big_file (to mybup...)
|
|
|
|
Receiving index from server: 1100/1100, done.
|
|
|
|
ok
|
2011-04-08 18:56:57 +00:00
|
|
|
|
2011-04-08 20:51:49 +00:00
|
|
|
Note that, unlike other remotes, bup does not really support removing
|
|
|
|
content from its git repositories. This is a feature. :)
|
|
|
|
|
|
|
|
# git annex move my_cool_big_file --from mybup
|
2011-04-08 20:54:53 +00:00
|
|
|
move my_cool_big_file (from mybup...)
|
2011-04-08 20:51:49 +00:00
|
|
|
content cannot be removed from bup remote
|
|
|
|
failed
|
|
|
|
git-annex: 1 failed
|
|
|
|
|
2011-04-08 18:56:57 +00:00
|
|
|
See [[special_remotes/bup]] for details.
|