Skip to content

Instantly share code, notes, and snippets.

@nnzo
Last active May 19, 2020 11:06
Show Gist options
  • Save nnzo/d3ad52463474a1f3d4188f8936f538d4 to your computer and use it in GitHub Desktop.
Save nnzo/d3ad52463474a1f3d4188f8936f538d4 to your computer and use it in GitHub Desktop.
rsync
rsync -avzm --stats --safe-links --ignore-existing --dry-run \
--human-readable .ethereum root@IP:.ethereum > /tmp/transfer.log
cat /tmp/transfer.log | \
parallel --will-cite -j 5 rsync -avzm --relative \
--stats --safe-links --ignore-existing \
--human-readable {} root@IP:.ethereum > /tmp/result.log
split -l 3000 backup.list backups. ls backups.* | parallel --line-buffer --verbose -j 5 rsync --progress -av --files-from {} /LOCAL/PARENT/PATH/ REMOTE_HOST:REMOTE_PATH/
sed -i -e 's/^/~\//' segmentaa
rsync -avP -e ssh `cat segmentaa` .ethereum root@IP:.ethereum
When it's all done:
rsync --ignore-existing -zarvh -e "ssh -x -T -o Compression=no" .ethereum/ root@IP:.ethereum/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment