Newer
Older
LbLcsFormFactors / eos-toys / send_to_zurich.sh
@Elena Graverini Elena Graverini on 4 Jul 2017 624 bytes [eos-toys] Update plotting and backup script
# @Author: Elena Graverini
# @Date:   2017-03-21 13:55:51
# @Last Modified by:   Elena Graverini
# @Last Modified time: 2017-05-17 11:46:24
#!/bin/bash
#!/bin/bash

# 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:/disk/data1/hep/LbLcsFF $zurich_cluster_mountpoint
cd ..
rsync -rd eos-toys $zurich_cluster_mountpoint/eos-toys
cd eos-toys
fusermount -u $zurich_cluster_mountpoint || sudo umount -l $zurich_cluster_mountpoint