[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

quesito su rsync



leggo nel man di rsync:

--compare-dest=DIR
This option instructs rsync to use DIR on the destination machine as an 
additional  hierarchy  to  compare destination  files  against  doing
transfers (if the files are missing in the destination directory).  If a
file is found in DIR that is identical to the sender’s file, the file will
NOT be transferred to the desti‐ nation directory.  This is useful for
creating a sparse backup of just files that have changed from an ear‐lier
backup.

 se ho ben capito, posso usare una directory supplementare da dare in
pasto a rsync in modo che lui possa fare un ulteriore confronto sui file 
da includere nella copia.

un po' come dire:

prima copia: tutti i file vengono copiati da A a B
rsync A/* B

secondo giro:
rsync --compare-dir=B A/* C

se la logica e' giusta, posso usare rsync per fare backup differenziali o
incrementali in base a come organizzo lo script.

qualcuno ci ha mai giocato?


Reply to: