Skip to content

Instantly share code, notes, and snippets.

@TheBoroer
Created July 1, 2022 04:33
Show Gist options
  • Save TheBoroer/e2aac8aa6e54cf8528c792c4388092fc to your computer and use it in GitHub Desktop.
Save TheBoroer/e2aac8aa6e54cf8528c792c4388092fc to your computer and use it in GitHub Desktop.
rsync commands to sync sparse files (vmware thin provisioned vmdk) via SSH
# Update existing sparse files inplace (edit file instead of creating a new file).
rsync -v -z -r --existing --inplace --progress -e ssh /source/path user@host:/destination/path/
# Then sync new sparse files (ignoring existing files we previously updated)
rsync -v -z -r --ignore-existing --sparse --progress -e ssh /source/path user@host:/destination/path/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment