osx - How do I use rsync to sync my repo on my mac to university server where I have ssh access?
2013-09
I need to use my university's ssh access and run my programs there for testing. I don't have sudo access there. It doesn't have vncserver there either. I would work with vim and make but I need git at least. Now I am looking into rsync to sync my current source directory into a remote directory and I'll ssh into the directory and run my make file to test it. I am looking at the man page of rsync and it looks very complicated. Can anyone please help me with this? I have googled in superuser and all commands seem different for different cases.
Can anyone please help me with this?
I use something like rsync -a --delete ~/Sites/site/ [email protected]:public_html
to upload my website.
-a, --archive archive mode; same as -rlptgoD (no -H)
--delete delete extraneous files from dest dirs
-r, --recursive recurse into directories
-l, --links copy symlinks as symlinks
-p, --perms preserve permissions
-t, --times preserve times
-g, --group preserve group
-o, --owner preserve owner (super-user only)
-D same as --devices --specials
--devices preserve device files (super-user only)
--specials preserve special files
I have MobaSSH installed on two Windows (XP and Vista) machines. When I do rsync over ssh it often hangs. I've read this happens with cygwin/rsync/ssh (MobaSSH is cygin based). Is there any known fix or alternate ssh/rsync server I could use?
I use rsync + ssh on Cygwin 1.7 (the beta release) and haven't encountered this problem yet. Most of my rsync is a Windows machine pulling via rsync from a Linux machine.
There are articles out there discussing possible issues.
http://marc-abramowitz.com/archives/2007/10/14/solving-rsync-hangs-with-cygwin/ - this links to a rsync daemon setup
A relatively recent thread on the Cygwin list offers some alternatives, and again they iterate using the rsyncd.
Here's another walkthrough of setting up rsyncd.
Between 2 Windows machines I've always found it easier to use Windows File Sharing to copy the files.