Skip to content

Instantly share code, notes, and snippets.

@groundnuty
Last active September 21, 2016 23:41
Show Gist options
  • Save groundnuty/d68a29953bdd8801497fe24b078700e4 to your computer and use it in GitHub Desktop.
Save groundnuty/d68a29953bdd8801497fe24b078700e4 to your computer and use it in GitHub Desktop.
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment