Last active
February 8, 2023 15:19
-
-
Save IgorVaryvoda/f2fbbc825b6af38ac4e8ae2c1c3469e8 to your computer and use it in GitHub Desktop.
LFTP mirror options
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
-c, --continue continue a mirror job if possible | |
-e, --delete delete files not present at the source | |
--delete-excluded delete files excluded at the target | |
--delete-first delete old files before transferring new ones | |
--depth-first descend into subdirectories before transferring | |
files | |
--scan-all-first scan all directories recursively before transfer‐ | |
ring files | |
-s, --allow-suid set suid/sgid bits according to the source | |
--allow-chown try to set owner and group on files | |
--ascii use ascii mode transfers (implies --ignore-size) | |
--ignore-time ignore time when deciding whether to download | |
--ignore-size ignore size when deciding whether to download | |
--only-missing download only missing files | |
--only-existing download only files already existing at target | |
-n, --only-newer download only newer files (-c won't work) | |
--upload-older upload even files older than the target ones | |
--transfer-all transfer all files, even seemingly the same at the | |
target site | |
--no-empty-dirs don't create empty directories (implies | |
--depth-first) | |
-r, --no-recursion don't go to subdirectories | |
--recursion=MODE go to subdirectories on a condition | |
--no-symlinks don't create symbolic links | |
-p, --no-perms don't set file permissions | |
--no-umask don't apply umask to file modes | |
-R, --reverse reverse mirror (put files) | |
-L, --dereference download symbolic links as files | |
--overwrite overwrite plain files without removing them first | |
--no-overwrite remove and re-create plain files instead of over‐ | |
writing | |
-N, --newer-than=SPEC download only files newer than specified time | |
--older-than=SPEC download only files older than specified time | |
--size-range=RANGE download only files with size in specified range | |
-P, --parallel[=N] download N files in parallel | |
--use-pget[-n=N] use pget to transfer every single file | |
--on-change=CMD execute the command if anything has been changed | |
--loop repeat mirror until no changes found | |
-i RX, --include=RX include matching files | |
-x RX, --exclude=RX exclude matching files | |
-I GP, --include-glob=GP include matching files | |
-X GP, --exclude-glob=GP exclude matching files | |
--include-rx-from=FILE | |
--exclude-rx-from=FILE | |
--include-glob-from=FILE | |
--exclude-glob-from=FILE load include/exclude patterns from the file, one | |
per line | |
-f FILE, --file=FILE mirror a single file or globbed group (e.g. | |
/path/to/*.txt) | |
-F DIR, --directory=DIR mirror a single directory or globbed group (e.g. | |
/path/to/dir*) | |
-O DIR, --target-directory=DIR target base path or URL | |
-v, --verbose[=level] verbose operation | |
--log=FILE write lftp commands being executed to FILE | |
--script=FILE write lftp commands to FILE, but don't execute | |
them | |
--just-print, --dry-run same as --script=- | |
--max-errors=N stop after this number of errors | |
--skip-noaccess don't try to transfer files with no read access. | |
--use-cache use cached directory listings | |
--Remove-source-files remove source files after transfer (use with cau‐ | |
tion) | |
--Remove-source-dirs remove source files and directories after transfer | |
(use with caution). Top level directory is not | |
removed if it's name ends with a slash. | |
--Move same as --Remove-source-dirs | |
-a same as --allow-chown --allow-suid --no-umask | |
RX is an extended regular expression, just like in egrep(1). | |
GP is a glob pattern, e.g. `*.zip'. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment