Last active
September 21, 2016 23:41
-
-
Save groundnuty/d68a29953bdd8801497fe24b078700e4 to your computer and use it in GitHub Desktop.
git-annex rsync ssh synology
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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