Skip to main content

Basic use of rsync

·47 words·1 min

Basic use of rsync
#

  • Mirror two directories :
rsync -av --progress SourceDir/ DestinationDir/
  • Mirror two directories with compression :
rsync -avz --progress SourceDir/ DestinationDir/
  • Mirro two directories and delete in destination what’s been deleted in source (real mirroring) :
rsync -avz --progress --delete --delete-after SourceDir/ DestinationDir/