rsync
to have mirror copies of your code in Vulcan and the other lab machines. Next we provide a typical example of how to use this command (type man rsync
for the Unix help on this command).
Suppose your code is kept in the directory ~/my-code/
in glare
. In order to mirror this code to the one in Vulcan you will do:
$ cd my-code $ rsync -avz -e ssh . vulcan:/home/.../my-codewhere
...
is your home directory. The options -avz
will mirror the directory my-code
with the corresponding one in Vulcan; rsync will create any files/subdirectories needed so that both directories have the same files/subdirectories.
In case of doubt, typing
$ rsync -avzn -e ssh . vulcan:/home/.../my-codewill give you the list of things rsync plans to do.