Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the ad-inserter domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /var/www/vhosts/blog.webeats.it/httpdocs/wp-includes/functions.php on line 6114

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the cookie-law-info domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /var/www/vhosts/blog.webeats.it/httpdocs/wp-includes/functions.php on line 6114
Caricare file con FTP in modo ricorsivo su linux

Caricare più file presenti in cartelle su linux con lftp in modo ricorsivo

prima di tutto è necessario installare lftp con il comando (nel nostro caso siamo su Ubuntu)

apt-get install lftp

ora con il comando

lftp -e "set ftp:ssl-allow no; mirror -R /path-locale/ path-remota/" -u username ftp.dominio.it

verrà richiesta la password e verrà caricato tutto il contenuto di /path-locale/ sull’FTP ftp.dominio.it nella path-remota/

in caso di errore
mirror: Fatal error: Certificate verification: Not trusted
1 error detected

Dovremo aggiungere set ftp:ssl-allow no; e la stringa diventerà quindi

lftp -e "set ftp:ssl-allow no; mirror -R /path-locale/ path-remota/" -u username ftp.dominio.it