You are not logged in.

#1 2010-07-23 20:16:43

lang2
Member
Registered: 2006-02-10
Posts: 386

rsync problem

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

#2 2010-07-23 20:26:10

enedene
Member
From: Zagreb
Registered: 2010-07-13
Posts: 25
Website

Re: rsync problem

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

#3 2010-07-23 20:29:01

lang2
Member
Registered: 2006-02-10
Posts: 386

Re: rsync problem

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

#4 2010-07-23 20:33:27

enedene
Member
From: Zagreb
Registered: 2010-07-13
Posts: 25
Website

Re: rsync problem

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

#5 2010-07-24 06:07:22

a_neutrino
Member
From: Montreal, Canada
Registered: 2010-03-14
Posts: 50
Website

Re: rsync problem

-C is your problem. It auto-excludes these types of files. Check man rsync.

Offline

#6 2010-07-24 06:08:31

a_neutrino
Member
From: Montreal, Canada
Registered: 2010-03-14
Posts: 50
Website

Re: rsync problem

Also: -a implies -r.

Offline

#7 2010-07-24 06:36:28

JackH79
Member
From: Australia
Registered: 2009-06-18
Posts: 663
Website

Re: rsync problem

Also:

lang2 wrote:

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

#8 2010-07-24 07:18:07

jocheem67
Member
Registered: 2009-11-09
Posts: 243

Re: rsync problem

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

#9 2010-07-24 08:32:53

lang2
Member
Registered: 2006-02-10
Posts: 386

Re: rsync problem

Thanks for all the input. I believe -C is my problem. I'll try --exclude.
smile

Offline

Board footer

Powered by FluxBB