Hi! I need use rsync for incremental backup, but i need save that incremental data on diferent directory, for example I have a Full backup on directory ./FULL, and carpets for ./monday ... I need to compare the sources with ./FULL and the diferents files save on ../monday .. but not in ./FULL ---------- ----------- SERVER A | | SERVER B | ---------- ------------ DATA + x ./FULL/DATA <----with---rsync--> ./monday/x Some can help me, using only rsync? Thanks!
On Fri, Mar 18, 2005 at 10:44:53AM +0100, Alejandro Feij?o wrote:> I have a Full backup on directory ./FULL, and carpets for ./monday ... I > need to compare the sources with ./FULL and the diferents files save on > ../monday .. but not in ./FULLSounds like you want --compare-dest=../FULL: rsync -av --compare-dest=../FULL host:/src/ monday That gives you all the changed files between FULL and the current data on the source system and no other files. If you want hard-links to all the unchanged files to be put into "monday", use --link-dest=../FULL instead. If you want only changed files that don't appear in prior day dirs, you'll need to use 2.6.4 because it allows you to use multiple --link-dest or --compare-dest options, allowing you to only copy files that haven't been received yet (however, I recommend using --link-dest with multiple dirs, since it preserves the information on what version of the file was identical on that given day). ..wayne..
> > Sounds like you want --compare-dest=../FULL: > > rsync -av --compare-dest=../FULL host:/src/ mondayThat not make any god :( BEFORE CLIENT SERVER -fich1 -/FULL/fich1 -fich2 -/BACKUP/monday/ AFTER (cd /BACKUP and rsync -av --compare-dest=../FULL/ CLIENT:/ monday/) CLIENT SERVER -fich1 -/FULL/fich1 -fich2 -/BACKUP/monday/fich1 -/BACKUP/monday/fich2 ------------- And i need CLIENT SERVER -fich1 -/FULL/fich1 -fich2 -/BACKUP/monday/fich2 look! fich1 not do any because was on FULL before. Can Help me? ++-------------------------++ Alejandro Feij?o Fraga Tecnico de Sistemas. Centro de supercomputaci?n de Galicia Avda. de Vigo s/n. Campus Sur. 15705 - Santiago de Compostela. Spain Tlfn.: +34 981 56 98 10 Extension: 274 Fax: +34 981 59 46 16
> > Sounds like you want --compare-dest=../FULL: > > rsync -av --compare-dest=../FULL host:/src/ mondayThat not make any god :( BEFORE CLIENT SERVER -fich1 -/FULL/fich1 -fich2 -/BACKUP/monday/ AFTER (cd /BACKUP and rsync -av --compare-dest=../FULL/ CLIENT:/ monday/) CLIENT SERVER -fich1 -/FULL/fich1 -fich2 -/BACKUP/monday/fich1 -/BACKUP/monday/fich2 ------------- And i need CLIENT SERVER -fich1 -/FULL/fich1 -fich2 -/BACKUP/monday/fich2 look! fich1 not do any because was on FULL before. Can Help me? ++-------------------------++ Alejandro Feij?o Fraga Tecnico de Sistemas. Centro de supercomputaci?n de Galicia Avda. de Vigo s/n. Campus Sur. 15705 - Santiago de Compostela. Spain Tlfn.: +34 981 56 98 10 Extension: 274 Fax: +34 981 59 46 16
> > Sounds like you want --compare-dest=../FULL: > > rsync -av --compare-dest=../FULL host:/src/ mondayThat not make any god :( BEFORE CLIENT SERVER -fich1 -/FULL/fich1 -fich2 -/BACKUP/monday/ AFTER (cd /BACKUP and rsync -av --compare-dest=../FULL/ CLIENT:/ monday/) CLIENT SERVER -fich1 -/FULL/fich1 -fich2 -/BACKUP/monday/fich1 -/BACKUP/monday/fich2 ------------- And i need CLIENT SERVER -fich1 -/FULL/fich1 -fich2 -/BACKUP/monday/fich2 look! fich1 not do any because was on FULL before. Can Help me? ++-------------------------++ Alejandro Feij?o Fraga Tecnico de Sistemas. Centro de supercomputaci?n de Galicia Avda. de Vigo s/n. Campus Sur. 15705 - Santiago de Compostela. Spain Tlfn.: +34 981 56 98 10 Extension: 274 Fax: +34 981 59 46 16
On Tue, Mar 29, 2005 at 06:39:50PM +0200, Alejandro Feij?o wrote:> AFTER (cd /BACKUP and rsync -av --compare-dest=../FULL/ CLIENT:/ > monday/)The --compare-dest directory is relative to the destination, so since FULL is not in the parent dir of "monday", "../FULL" is not the right way to refer to it. You should use --compare-dest=../../FULL instead (or just --compare-dest=/FULL, if appropriate). ..wayne..