Skip to content

Instantly share code, notes, and snippets.

@zarza
Created November 9, 2022 00:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zarza/5f64cdbc832651fddfcf5f2f97b379de to your computer and use it in GitHub Desktop.
Save zarza/5f64cdbc832651fddfcf5f2f97b379de to your computer and use it in GitHub Desktop.
Multi-thread rsync
# Remember to setup your ssh-copy-id first
# https://www.ssh.com/academy/ssh/copy-id
# And then
ls --indicator-style=none /home/admin/web/ | xargs -n1 -P4 -I% rsync -avzhP % root@xx.21.xx.233:/root/OLD_CLOUDSTORAGE/
# Just replace your SERVER_IP and setup the destination folder.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment