Ací es mostren les diferències entre la revisió seleccionada i la versió actual de la pàgina.
| Següent revisió | Revisió prèvia |
| linux:utils:lftp [05/07/2025 11:13] – creat mate | linux:utils:lftp [31/10/2025 10:54] (actual) – [conn] mate |
|---|
| = lftp | = lftp |
| | == info |
| | * [[https://lftp.yar.ru/]] |
| | * [[https://linux.overshoot.tv/wiki/lftp]] |
| * [[https://serverfault.com/questions/135618/is-it-possible-to-use-rsync-over-sftp-without-an-ssh-shell]] | * [[https://serverfault.com/questions/135618/is-it-possible-to-use-rsync-over-sftp-without-an-ssh-shell]] |
| * [[https://stackoverflow.com/questions/27635292/transfer-files-using-lftp-in-a-bash-script]] | * [[https://stackoverflow.com/questions/27635292/transfer-files-using-lftp-in-a-bash-script]] |
| | |
| | == conn |
| | <code bash>lftp -u <user>,<pass> ftp://<site> << EOF |
| | mirror [OPS] <REMOTE_DIR> <LOCAL_DIR> |
| | bye |
| | EOF |
| | </code> |
| | |
| | <code bash>lftp -p XXXXX -u <user>,<pass> sftp://<site> << EOF |
| | mirror [OPS] <REMOTE_DIR> <LOCAL_DIR> |
| | bye |
| | EOF |
| | </code> |
| | |
| | OPS: |
| | * ''-e'' : elimina en destino lo que no existe en origen |
| | * ''-p'' : no cambia los permisos del archivo (si no, dr-x------, -r--------) |