Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am running this from my command prompt: rsync -rltz --executability -C --filter=':- .gitignore' -e "ssh -i /cygdrive/c/Users/dstein/.ssh/id_rsa" myfolder/ root@site.local:/path/to/place

I have my PATH environment avriable pointing to cygwin/bin so I can use rsync without being in cygwin, which was causing a number of other issues.

I finally got it working so if I change a file in myfolder it uploads to place. However if I edit any files that are further nested in myfolder the above command is not working for those.

EDIT It turns out that it's not the depth, but this specific folder with the name core It has the same permissions as all the other folders that are syncing fine.

share|improve this question
Also tried -a to kicks to no avail – Dave Stein Jun 6 '13 at 21:54
Is your directory named core by any chance? – Aintaer Jun 6 '13 at 23:08
You missed my edit ;) – Dave Stein Jun 7 '13 at 2:46
up vote 0 down vote accepted

It appears that your issue is with the -C flag. rsync's -C flag is the cvs exclude rule. It automatically ignores files that matches CVS's internal rules for excluding files.

These excludes are, from man rsync(1):

RCS SCCS CVS CVS.adm RCSLOG cvslog.* tags TAGS .make.state .nse_depinfo *~ #* .#*  ,*  _$*  *$
*.old *.bak *.BAK *.orig *.rej .del-* *.a *.olb *.o *.obj *.so *.exe *.Z *.elc *.ln core 
.svn/ .git/ .hg/ .bzr/

The rule your directory fell afoul of was the core at the end of line 2.

share|improve this answer

Let me delete all and insert as we crossed posted. If you remove the trailing / from myfolder/ the whole directory will be copied. But you will have myfolder inside place. I don't get why -r is not working.

Bung in -vv to get more info.

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .