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/

Published 7th Feb 2011 // #debian #tips




comments powered by Disqus