Created
July 17, 2018 10:17
-
-
Save hatarist/e511cba9b8e38c193aa3d58973cd20d4 to your computer and use it in GitHub Desktop.
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
#!/bin/bash | |
export threads=10 | |
export src="/home/local/stuff/" | |
export dest="scp@govno:/home/remote/stuff/" | |
rsync -aL -f"+ */" -f"- *" $src $dest && (cd $src && find . -type f | xargs -n1 -P$threads -I% rsync -av % $dest/% ) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment