#!/opt/local/bin/dash # public2iCloud.dash - sync changes from public_html to ~/Documents/ltuuri (iCloud) # # 2020-06-03, LTu echo "\nYou did kinit and did mount smb://webhome.org.aalto.fi/ltuuri ? [y] " read tmp if [ -d /Volumes/ltuuri ] then echo /opt/local/bin/rsync -asv /Volumes/ltuuri /Users/ltuuri/Documents else echo Source not found! Not mounted? fi