Hi there,
Let's say I have a Pictures repo in my laptop. I want to have a local copy in an external backup drive and an offsite copy in google-drive. I set numcopies to 3. Is it possible to require that files in a repository have a copy in an offsite repo e.g. a google-drive special remote? So that when I run e.g. git annex fsck, I will be reminded that some local files are not yet backed up in an offsite repo. Probably via .git/config, I can declare a remote repo as an "offsite" repo. Something like:
remote.repo_name.offsite = true
Eric
What you're looking for is probably the required content settings.
However,
git annex fsck
did not perform any checks that required content was present. Now it does. Enjoy!Hi,
I first tried messing around with required content settings in a test repo in direct mode. This is what I did to initialize a test repo:
Then I run fsck:
And I get this output:
I expected the fsck command to complain that the required jpg files are not present in the current repo and fail. However, that is not what I'm getting.
Is this the expected behavior for a direct-mode repository? If not, is there something I missed?
It seems likely that you have not upgraded git-annex to a version where fsck checks the required content yet, especially since that change has not yet made it into a release of git-annex. It will be in the next release, or you can download a daily build to get it now.
Ok I'll just wait for the next version. Btw I'm using the latest version: 6.20180112. Thanks!