groundnuty
9/21/2016 - 11:28 PM

git-annex rsync ssh synology

git-annex rsync ssh synology

# server
if [[ $(hostname) == 'OrzechStation' ]]; then
  rm -rf ~/a
  mkdir ~/a
  cd ~/a
  git init
  git annex init 'server'
  dd if=/dev/zero of=test bs=1024 count=0 seek=$[1024*10]
  git annex add test
  git commit -am 'first!'
elif [[ $(hostname) == 'HACKPRO' ]]; then
  rm -rf /tmp/b
  mkdir /tmp/b
  cd /tmp/b
  git init
  git annex init 'laptop'
  git annex initremote server type=rsync rsyncurl="syno:a" encryption=none
  git annex sync server
fi