I have the following setup on my work computer. The /home folder has limited space, but excellent backups, so I would like to keep my main repository there. The /scratch/ folder has no backup, but has faster read/write speed, and more storage space. Is there a way to keep the main repo in /home, but somehow store the large annexed files on /scratch. I am open to making a remote repository, but the standard "git annex get" workflow will simply copy large files into the /home directory, which is what i want to avoid altogther. Can I just make a symlink from "/home//repo/.git/annex" to "/scratch/repodata" somehow? Thanks!
You should avoid making two repositories that share the same .git/annex or .git/annex/objects directories. Doing that can get git-annex confused, and let it drop a file that is only located in one place .. because it sees it existing in 2 places due to the symlink!
IIRC, git-annex supports making .git/annex a symlink to some directory elsewhere, that is not itself used by another git repository.
Or, you can use standard
GIT_DIR
settings to make git (and git-annex) look for the .git directory elsewhere.