Tools
Rsync
Preview and synchronize directory trees locally or over SSH.
Local sync
rsync -av source/ destination/Copy the contents of source into destinationrsync -avn source/ destination/Dry-run without writing filesrsync -av --exclude=node_modules source/ destination/Exclude a directoryrsync -av --progress source/ destination/Show transfer progressRemote sync
rsync -av source/ user@host:/srv/app/Upload using SSHrsync -av user@host:/srv/app/ backup/Download a remote treersync -av -e 'ssh -p 2222' source/ user@host:/srv/app/Use a custom SSH portrsync -avz source/ user@host:/srv/app/Compress data during transferSafer mirroring
rsync -avn --delete source/ destination/Preview deletions; inspect carefullyrsync -av --backup --backup-dir=../previous source/ destination/Keep replaced destination filesrsync -av --ignore-existing source/ destination/Leave existing destination files unchangedrsync -av --itemize-changes source/ destination/Show which files and attributes differ