Ftp/sftp Vacuum
FTP:
lftp -c 'open FTPSERVER_ADRESS;user USERNAME PASSWORD;mirror / /LOCAFOLDER; quit'
ex:
lftp -c 'open 88.88.88.88;user paludia secret123;mirror / /home/paludia; quit'
SFTP:
lftp -c 'open sftp://FTPSERVER_ADRESS;user USERNAME PASSWORD;set sftp:auto-confirm yes;mirror / /LOCAFOLDER; quit'
ex:
lftp -c 'open sftp://ftp01.didou.com;user paludia secret123;set sftp:auto-confirm yes;mirror / /home/paludia; quit'
Leave a comment