Transferring code over the network - GarethG/ProjectRinzler GitHub Wiki
sudo rsync -azvv -e ssh /home/garethg/testcode/ [email protected]:/home/james/uwetest --exclude-from 'exclude.txt'
To exclude directories set up a file on your machine called exclude.txt.
Within enter bin build .git ros_tutorials
etc.
https://help.ubuntu.com/community/rsync
- -a keeps all the permissions and times and dates of the files the same
- -z allows for compression
- -vv puts on verbosity
- --exclude 'build' ignores any files or folders called build
- -e specifies the remote shell to use (ssh in our case)