People, My backup script has lines: dt=`date ''+%Y%m%d''` . . DELETE="--delete" . . rsync -av $DELETE --backup --backup-dir /delmod/$dt /etc /backup/ rsync -av $DELETE --backup --backup-dir /delmod/$dt /root /backup/ - only the changes to /root get backed up but ALL of /etc gets backed up everytime! - why should this happen? Thanks, Phil. -- Philip Rhoades Pricom Pty Limited (ACN 003 252 275 ABN 91 003 252 275) GPO Box 3411 Sydney NSW 2001 Australia Mobile: +61:0411-185-652 Fax: +61:2:8923-5363 E-mail: phil@chu.com.au -- To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html
Philip Rhoades schrieb:> People, > > My backup script has lines: > > dt=`date ''+%Y%m%d''` > . > . > DELETE="--delete" > . > . > rsync -av $DELETE --backup --backup-dir /delmod/$dt /etc /backup/ > > rsync -av $DELETE --backup --backup-dir /delmod/$dt /root /backup/ > > - only the changes to /root get backed up but ALL of /etc gets backed up > everytime! - why should this happen?isn''t it because you use --delete, and after /etc is backed up, the /etc backup is removed by /root backup? -- Tomek http://wpkg.org WPKG - software management with Samba
On Wed, Dec 28, 2005 at 07:13:27PM +1100, Philip Rhoades wrote:> - only the changes to /root get backed up but ALL of /etc gets backed up > everytime! - why should this happen?I don''t see any reason why that should happen in what you''ve presented: you should be ending up with /backup/etc and a /backup/root directories after the two rsync commands have completed. You can use the --itemize (-i) option in newer rsync versions to ask rsync to tell you why it is updating files (e.g. if the files are missing or differ in size and/or time). That may give you a clue as to what is happening. ..wayne..
Wayne, I was using: rh8 & rsync-2.5.5-1.i386.rpm I upgraded to: rsync-2.6.6-1.0.rh9.rf.i386.rpm (on RH8) and added the "-i" switch and it worked! - only /etc/crontab was backed up (which is correct). Maybe there was a problem with the older version that behaved differently on /etc compared to /root for some odd reason? Many thanks, Phil. On Wed, 2005-12-28 at 10:29 -0800, Wayne Davison wrote:> On Wed, Dec 28, 2005 at 07:13:27PM +1100, Philip Rhoades wrote: > > - only the changes to /root get backed up but ALL of /etc gets backed up > > everytime! - why should this happen? > > I don''t see any reason why that should happen in what you''ve presented: > you should be ending up with /backup/etc and a /backup/root directories > after the two rsync commands have completed. You can use the --itemize > (-i) option in newer rsync versions to ask rsync to tell you why it is > updating files (e.g. if the files are missing or differ in size and/or > time). That may give you a clue as to what is happening. > > ..wayne.. >-- Philip Rhoades Pricom Pty Limited (ACN 003 252 275 ABN 91 003 252 275) GPO Box 3411 Sydney NSW 2001 Australia Mobile: +61:0411-185-652 Fax: +61:2:8923-5363 E-mail: phil@chu.com.au