rsync.sh 2.6 KB

1234567891011121314151617181920212223242526272829303132333435
  1. #!/bin/bash
  2. find . -type d -exec \cp -rf *.lsf {} \;
  3. find . -type d -exec \cp -rf *.bat {} \;
  4. #remote="/run/user/1000/gvfs/smb-share\:server\=192.168.5.18\,share\=hpc_d/k.ladutenko/0-tig-smuthi"
  5. #remote="/run/user/1000/gvfs/smb-share\:server\=192.168.5.30\,share\=users/z.ladutenko/0-tig-smuthi"
  6. echo $remote/setup.py
  7. mounted=`ls /run/user/1000/gvfs/ | wc -l`
  8. # if [ $mounted = 0 ]; then
  9. # echo Mounting SMB share:
  10. gio mount smb://192.168.5.30/users
  11. # gio mount smb://192.168.5.18/hpc_d
  12. # echo Done!
  13. # fi
  14. if [ ! -f /run/user/1000/gvfs/smb-share\:server\=192.168.5.30\,share\=users/z.ladutenko/0-tig-smuthi/setup.py ]; then
  15. echo "Mounting SMB share failed! If no other errors, you can try to mount it again."
  16. # exit 1
  17. fi
  18. # if [ ! -f /run/user/1000/gvfs/smb-share\:server\=192.168.5.30\,share\=users/z.ladutenko/0-tig-smuthi/setup.py ]; then
  19. # echo "Mounting SMB share failed! If no other errors, you can try to mount it again."
  20. # # exit 1
  21. # fi
  22. # rsync -auz --progress --no-perms --no-owner --no-group --no-times --exclude .git --exclude docs --exclude build_docs --exclude *~ /home/tig/KOsty/Documents/Simulations/Belov/Bogdanov/T-matrix/smuthi/tig-smuthi/ $remote
  23. #rsync -auz --progress --no-perms --no-owner --no-group --exclude .git --exclude docs --exclude build_docs --exclude *~ --exclude '*.lock' --exclude *results* --exclude smuthi_nfmds_bin /home/tig/KOsty/Documents/Simulations/Belov/Bogdanov/dipole-on-surf/ /run/user/1000/gvfs/smb-share\:server\=192.168.5.30\,share\=users/z.ladutenko/dipole-on-surf
  24. echo Ok
  25. rsync -auz --progress --no-perms --no-owner --no-group --exclude .git --exclude docs --exclude build_docs --exclude *~ --exclude '*.lock' --exclude '*results*' /home/tig/KOsty/Documents/Simulations/Belov/Bogdanov/dipole-on-surf/ /run/user/1000/gvfs/smb-share\:server\=192.168.5.30\,share\=users/z.ladutenko/dipole-on-surf
  26. #gio mount smb://192.168.5.30/users
  27. #ls /run/user/1000/gvfs/smb-share\:server\=192.168.5.30\,share\=users/z.ladutenko/
  28. rsync -auz --progress --no-perms --no-owner --no-group --exclude .git --exclude docs --exclude build_docs --exclude *~ --exclude '*.lock' --exclude '*results*' /run/user/1000/gvfs/smb-share\:server\=192.168.5.30\,share\=users/z.ladutenko/dipole-on-surf/ /home/tig/KOsty/Documents/Simulations/Belov/Bogdanov/dipole-on-surf
  29. #rsync -auz --progress --no-perms --no-owner --no-group --exclude .git --exclude docs --exclude build_docs --exclude *~ --exclude *results* /run/user/1000/gvfs/smb-share\:server\=192.168.5.30\,share\=users/z.ladutenko/dipole-on-surf/ /home/tig/KOsty/Documents/Simulations/Belov/Bogdanov/dipole-on-surf