Last active
May 19, 2020 11:06
-
-
Save nnzo/d3ad52463474a1f3d4188f8936f538d4 to your computer and use it in GitHub Desktop.
rsync
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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