File Transfer

From CLSP Wiki
Revision as of 13:05, 1 September 2017 by Cmay (Talk | contribs)

(diff) ←Older revision | view current revision (diff) | Newer revision→ (diff)
Jump to: navigation, search

Rsync With Resume

 rsync -avz --progress --partial-dir=/tmp/rsync-partial


Diff between File on CLSP and File on Local Computer

 function remotediff () {
   # Diff between local and remote file.                       
   localf=${1-makefile}
   remotef=${2-~/projects/kbvn/src/kbmvlsa/makefile}
   remote=${3-"prastog3@clsp"}
   ssh $remote "cat $remotef" | diff - $localf
 }