I'm using git-annex
in version 7.20190129
as it is provided on my Debian Stable (Buster)
machine to keep big files under version control and have them distributed over multiple machines and drives. This works well as long as I have at least one "real" git-annex
repository (not a special remote
).
What I'd be interested in is using just one git annex
repository on my local machine and additionally special remotes
(e.g. the bup
special remote
or the rsync
special remote
or, as soon as it lands on Debian Stable
, the borg
special remote
).
My workflow is as follows:
cd /path/to/my/local/folder
git init
git annex init
git annex add myawesomefile
git commit -m 'this works on my local repository'
git annex initremote mybupbackuprepo type=bup encryption=none buprepo=/path/to/my/special/remote/location
git annex sync
git annex copy files --to mybupbackuprepo
Then I'm able to use my bup
special remote
as I would use an additional repository.
But now I'd like to access my bup
repo without using the first, local repo (e.g. in case my local machine would break down). As far as I understood (from following the official guide
, the following should work:
cd /path/to/new/folder/to/extract/the/backup
git init
git annex init
git annex initremote mybupbackuprepo type=bup encryption=none buprepo=/path/to/my/special/remote
git annex enableremote mybupbackuprepo
git annex sync
But I'm still not able to see any files (or even some broken symlinks) and, obviously, also not able to get any of my data when using git annex sync --content
or git annex get myawesomefile
.
Any ideas? What am I missing?