You are not logged in.
Pages: 1
Hi all,
I'm having a unexpected behavior from rsync. So I have dir_a and dir_b and would like to sync them (dir_a -> dir_b) by
rsync --progress -a -r -I --delete -C dir_a dir_b
However, after the command, there are always some .a, .so, and ,ko file that are still different between the two tree. Why?
Last edited by lang2 (2010-07-23 20:42:44)
Offline
Try this:
rsync -r -v --delete /path_to_dir_a/ /path_to_dir_b/
Last edited by enedene (2010-07-23 20:26:32)
Offline
It's the same as my command line isn't it? Of course, I forgot posting the -r option but I did use it.
Offline
I really don't know, I'm using this with crontab for last year for backuping my data and it works perfectly. Perhaps full path is needed or maybe these extra switches are doing something that is producing this error.
Offline
-C is your problem. It auto-excludes these types of files. Check man rsync.
Offline
Also: -a implies -r.
Offline
Also:
It's the same as my command line isn't it?
No it isn't. There is a difference between
path_to_dir
and
path_to_dir/
Again, see: man rsync for details
Last edited by JackH79 (2010-07-24 06:36:48)
Offline
You could try to use grsync, not because graphical is better...You do get a graphical representation of most of the options and after selecting and simulating your actions, you can see the CLI commands for those actions.
You' re happy then? Just use rsync again....
It's a nice way to learn rsync ( or just keep using grsync ).....
Offline
Thanks for all the input. I believe -C is my problem. I'll try --exclude.
Offline
Pages: 1