[MontelLUG] Copia file (cartelle e sottocartelle) se diversi

viper vipertechnology a hotmail.it
Mar 19 Lug 2011 22:43:54 CEST


Il giorno mar, 19/07/2011 alle 22.18 +0200, Samuele ha scritto:
> Il 19/07/2011 22:03, viper ha scritto:
> > Buonasera,
> > ho due cartelle contenenti varie altre cartelle, file ecc...
> > Devo tenerle allineate copiando i file nuovi/modificati dalla cartella
> > master alla cartella slave.
> Rsync pare brutto?
> Te lo avevo anche mostrato a suo tempo.
> Fidate che quando hai i due tera di dati va benone.

Non me ricordo sempre tutto!!
Ok...
rsync master/* slave -r -v -u

-u -> This forces rsync to skip any files which exist on the destination
and have a modified time that is newer than the source file.

Peṛ mi serve che se esiste un slavefile diverso dal master, il primo
viene sovrascritto senza pietà, mentre in questo caso viene solo
ignorato..

Sto cercando un'opzione adatta.. per ora non ne ho trovate..

Viper








More information about the montellug mailing list