Skip to content

Instantly share code, notes, and snippets.

@real666maverick
Last active February 13, 2017 15:54
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 real666maverick/da675ae520761dd644e688b6d1a9f8d9 to your computer and use it in GitHub Desktop.
Save real666maverick/da675ae520761dd644e688b6d1a9f8d9 to your computer and use it in GitHub Desktop.
lftp similarity rsync for using mirroring
#!/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