Last active
February 13, 2017 15:54
-
-
Save real666maverick/da675ae520761dd644e688b6d1a9f8d9 to your computer and use it in GitHub Desktop.
lftp similarity rsync for using mirroring
This file contains 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
#!/usr/bin/lftp -f | |
set mirror:parallel-directories true | |
set net:timeout 180 | |
set cmd:parallel 10 | |
set cmd:queue-parallel 15 | |
set mirror:parallel-transfer-count 10 | |
set mirror:use-pget-n 5 | |
# set cmd:show-status false | |
open -u LOGIN:PASSWORD FTP:URI | |
mirror --reverse --skip-noaccess --continue --reverse /SRC/ /DEST/ | |
# for rsync similarity | |
# mirror --reverse --delete --skip-noaccess --continue --reverse /SRC/ /DEST/ | |
quit |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment