#!/bin/bash
## This is auto-sync.sh
logger "auto-sync called to sync $1 with origin"## Commit origin and sync to $1
cd ~/annex
git-annex sync $1## Now, accept what origin pushes.
cd ~/$1/annex
git-annex sync origin
## That was the _records_ of the files. Now, get _content_ of new files that is not
## satisfactory backed up
git-annex --auto get .
logger "$1 is now in sync with origin"