This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
cluster:136 [2015/06/17 17:39] hmeij |
cluster:136 [2020/07/28 17:21] (current) hmeij07 |
||
---|---|---|---|
Line 1: | Line 1: | ||
\\ | \\ | ||
**[[cluster: | **[[cluster: | ||
+ | |||
+ | ''/ | ||
+ | |||
+ | --- // | ||
==== HomeDir & Storage Options ==== | ==== HomeDir & Storage Options ==== | ||
Line 28: | Line 32: | ||
* details can be found at [[cluster: | * details can be found at [[cluster: | ||
- | ==== How do I ..? ==== | + | ==== Moving Content |
- | Well, move stuff around? | + | Our file server |
- | With rsync you can: | ||
- | | + | Do not use any type of copy tool with a GUI or cp/scp or s/ftp. Especially the GUI (drag& |
+ | |||
+ | **Check it out:** | ||
+ | |||
+ | * '' | ||
+ | * is the server busy ('' | ||
+ | * is there memory available ('' | ||
+ | * is anybody else using rsync ('' | ||
+ | * is the server busy writing ('' | ||
+ | |||
+ | Three scenarios are depicted below. When crossing the vertical boundaries you are not dealing with local content anymore, thus the content needs to flow over the network. '' | ||
+ | |||
+ | < | ||
+ | |||
+ | | / | ||
+ | some lab location | ||
+ | < | ||
+ | some other college | ||
+ | | / | ||
+ | |||
+ | </ | ||
+ | |||
+ | **Some feature examples** | ||
+ | |||
+ | | ||
* '' | * '' | ||
- | * delete files on destination not present on source | + | * delete files on destination not present on source |
* '' | * '' | ||
- | * throttle the rate of traffic generated, make your sysadmin happy, use | + | * throttle the rate of traffic generated, make your sysadmin happy, use <5000 |
* '' | * '' | ||
- | * and much more ... | + | * do not look inside files |
+ | * '' | ||
+ | * use a remote shell from host to host (crossing those vertical boundaries above) | ||
+ | * '' | ||
+ | |||
+ | Note the use of trailing slashes, it means update everything inside source '' | ||
+ | |||
+ | ** Putting it all together ** | ||
+ | |||
+ | < | ||
+ | |||
+ | # copy the dir stuff from lab or remote college to my home on HPCC in tmp area | ||
+ | # (first log in to remote location) | ||
+ | |||
+ | rsync -vac --bwlimit=2500 --whole-files / | ||
+ | |||
+ | # sync my HPCC dir stuff folder into /archives locally on sharptail, then clean up | ||
+ | # (first log in to sharptail) | ||
+ | |||
+ | rsync -vac --bwlimit=2500 / | ||
+ | rm -rf / | ||
- | So to put it all together, for example move my directory in my home directory named stuff elsewhere | + | # generate a copy of content on Rstore disk array outside of HPCC but within wesleyan.edu |
+ | # (get paths and share names from faculty member, on sharptail do) | ||
- | '' | + | rsync -vac --bwlimit=2500 /home/user/ |
- | Is output ok? Then run again the '' | + | # you can also do this in reverse, log in to sharptail first |
- | Note the lack of source trailing slash but present destination trailing slash; meaning put source inside destination location. If both had a trailing slash it would mean; update source and target at these locations. Beware. '' | + | rsync -vac --bwlimt=2500 user@rstoresrv0.wesleyan.edu:/ |
- | Once contents have been migrated '' | + | </code> |