diff --git a/eos-toys/send_to_zurich.sh b/eos-toys/send_to_zurich.sh index 9aebbc7..b59d533 100755 --- a/eos-toys/send_to_zurich.sh +++ b/eos-toys/send_to_zurich.sh @@ -1,11 +1,15 @@ # @Author: Elena Graverini # @Date: 2017-03-21 13:55:51 # @Last Modified by: Elena Graverini -# @Last Modified time: 2017-03-21 16:22:06 +# @Last Modified time: 2017-03-21 16:39:12 #!/bin/bash -mkdir -p /home/elena/Desktop/PhD_Work/zurich-cluster -sshfs egraveri@grid-ui.physik.uzh.ch: /home/elena/Desktop/PhD_Work/zurich-cluster + +# Needs the following environment variables: +# - $zurich_cluster_mountpoint pointing to the desired mountpoint +# - $zurich_user with your username on the Zurich cluster +mkdir -p $zurich_cluster_mountpoint +sshfs ${zurich_user}@grid-ui.physik.uzh.ch: $zurich_cluster_mountpoint cd .. -rsync -rd eos-toys /home/elena/Desktop/PhD_Work/zurich-cluster/Public/eos-toys +rsync -rd eos-toys $zurich_cluster_mountpoint/Public/eos-toys cd eos-toys -fusermount -u /home/elena/Desktop/PhD_Work/zurich-cluster || sudo umount -l /home/elena/Documents/University/PhD/UZH/zurich-cluster +fusermount -u $zurich_cluster_mountpoint || sudo umount -l $zurich_cluster_mountpointrich-cluster