Hi, I want to keep the home-Directorys of 2 machines in sync. Therefor I start rsync every hour with cron. In the Beginning all worked fine, but now ... I searched, but can't see the problem. The home-directorys on the "master" change very often, but the changes are no longer replicated to the "slave". Both run Linux and rsync 2.5.5. The master calls (the long line may be wrapped here) rsync -auvxz --delete --exclude-from /root/.rsync/home-daily.exc /home slave:/ once a hour and after building the filelist it says "home is uptodate". But when I make a "ls -rtl" on both machines .. its definitly not. master: ... (just the last few lines) drwxrwxrwx 5 root root 143 Dec 9 14:51 DRKURSCH4722 drwxrwxrwx 5 root root 250 Dec 9 15:16 TESTBMZ2 drwxrwxrwx 5 root root 143 Dec 9 15:51 DRSTIEH1443 drwxrwxrwx 5 root root 2647 Dec 9 16:15 KRHBRUCHSAL3140 drwxrwxrwx 4 root root 124 Dec 9 16:17 NERESHEIM7059 drwxrwxrwx 5 root root 143 Dec 9 16:18 KURPFALZKHD4560 drwxrwxrwx 5 root root 143 Dec 9 16:18 DRREIFER1740 drwxrwxrwx 5 root root 143 Dec 9 16:25 DRFETTIG0690 master:/home # slave: ... drwxrwxrwx 5 root root 118 Oct 19 00:15 DRHAEBER7009 drwxrwxrwx 5 root root 118 Oct 19 00:15 DRELSER1847 drwxrwxrwx 5 root root 118 Oct 19 00:15 DRDIEDRP2878 drwxr-xr-x 299 root root 8146 Oct 21 11:56 . drwxr-xr-x 3 welte users 948 Oct 22 00:15 welte drwxr-xr-x 13 oracle oinstall 1444 Nov 11 17:11 oracle drwxrwxrwx 5 root root 193 Nov 29 15:37 RECHSHGVOELKLINGEN4300 drwxrwxrwx 26 horras users 2981 Nov 29 15:45 horras drwxrwxrwx 11 szyman users 1500 Dec 9 11:08 szyman drwxrwxrwx 13 labtimer users 13030 Dec 9 13:10 labtimer slave:/home # The date on both is the same. Any hints wants going wrong here ? Thanks and kind regards, Markus Lamers -- Markus Lamers <lamers@seelig.de> Labor Prof. Seelig & Kollegen
On Mon, Dec 09, 2002 at 04:36:41PM +0100, Markus Lamers wrote:> rsync -auvxz --delete --exclude-from /root/.rsync/home-daily.exc /home > slave:/I suspect the home-daily.exc file is at fault. What does it contain? ..wayne..
Am Mon, 2002-12-09 um 18.37 schrieb Wayne Davison: Hi Wayne,> On Mon, Dec 09, 2002 at 04:36:41PM +0100, Markus Lamers wrote: > > rsync -auvxz --delete --exclude-from /root/.rsync/home-daily.exc /home > > slave:/ > > I suspect the home-daily.exc file is at fault. What does it contain?As I already said .. it worked in the beginning. The file only contains the following two lines: oracle/ labtimer/bin/> ..wayne..kind regards Markus -- Markus Lamers <lamers@seelig.de> Labor Prof. Seelig & Kollegen
Is /home now a symlink? The fact that the "is uptodate" message is only appearing on a single file ("home") makes me think it is not recursing into the directory. If so, just change the end of your command line to ... /home/ slave:/home/ - Dave On Mon, Dec 09, 2002 at 04:36:41PM +0100, Markus Lamers wrote:> Hi, > > I want to keep the home-Directorys of 2 machines in sync. > Therefor I start rsync every hour with cron. > In the Beginning all worked fine, but now ... > I searched, but can't see the problem. > > The home-directorys on the "master" change very often, but the > changes are no longer replicated to the "slave". Both run Linux and > rsync 2.5.5. > The master calls (the long line may be wrapped here) > > rsync -auvxz --delete --exclude-from /root/.rsync/home-daily.exc /home > slave:/ > > once a hour and after building the filelist it says "home is uptodate". > But when I make a "ls -rtl" on both machines .. its definitly not. > master: > .... (just the last few lines) > drwxrwxrwx 5 root root 143 Dec 9 14:51 DRKURSCH4722 > drwxrwxrwx 5 root root 250 Dec 9 15:16 TESTBMZ2 > drwxrwxrwx 5 root root 143 Dec 9 15:51 DRSTIEH1443 > drwxrwxrwx 5 root root 2647 Dec 9 16:15 KRHBRUCHSAL3140 > drwxrwxrwx 4 root root 124 Dec 9 16:17 NERESHEIM7059 > drwxrwxrwx 5 root root 143 Dec 9 16:18 KURPFALZKHD4560 > drwxrwxrwx 5 root root 143 Dec 9 16:18 DRREIFER1740 > drwxrwxrwx 5 root root 143 Dec 9 16:25 DRFETTIG0690 > master:/home # > > slave: > .... > drwxrwxrwx 5 root root 118 Oct 19 00:15 DRHAEBER7009 > drwxrwxrwx 5 root root 118 Oct 19 00:15 DRELSER1847 > drwxrwxrwx 5 root root 118 Oct 19 00:15 DRDIEDRP2878 > drwxr-xr-x 299 root root 8146 Oct 21 11:56 . > drwxr-xr-x 3 welte users 948 Oct 22 00:15 welte > drwxr-xr-x 13 oracle oinstall 1444 Nov 11 17:11 oracle > drwxrwxrwx 5 root root 193 Nov 29 15:37 > RECHSHGVOELKLINGEN4300 > drwxrwxrwx 26 horras users 2981 Nov 29 15:45 horras > drwxrwxrwx 11 szyman users 1500 Dec 9 11:08 szyman > drwxrwxrwx 13 labtimer users 13030 Dec 9 13:10 labtimer > slave:/home # > > The date on both is the same. > > Any hints wants going wrong here ? > > Thanks and kind regards, > Markus Lamers > -- > Markus Lamers <lamers@seelig.de> > Labor Prof. Seelig & Kollegen > > -- > To unsubscribe or change options: http://lists.samba.org/mailman/listinfo/rsync > Before posting, read: http://www.tuxedo.org/~esr/faqs/smart-questions.html
Hi Dave, Am Mit, 2002-12-11 um 22.08 schrieb Dave Dykstra:> Is /home now a symlink? The fact that the "is uptodate" message is only > appearing on a single file ("home") makes me think it is not recursing > into the directory. If so, just change the end of your command line to > ... /home/ slave:/home/thanks alot .. this exactly was the problem.> - Davekind regards, Markus -- Markus Lamers <lamers@seelig.de> Labor Prof. Seelig & Kollegen