{"id":270,"date":"2009-06-28T09:13:01","date_gmt":"2009-06-28T07:13:01","guid":{"rendered":"http:\/\/www.newstechnology.eu\/it\/?p=270"},"modified":"2015-02-22T18:28:28","modified_gmt":"2015-02-22T17:28:28","slug":"comando-wput","status":"publish","type":"post","link":"https:\/\/www.newstechnology.eu\/it\/software\/open-source\/comando-wput.html","title":{"rendered":"Upload File su FTP col Comand WPUT"},"content":{"rendered":"<p align=\"justify\">Avete mai provato ad inserire tramite l&#8217;<a href=\"http:\/\/it.wikipedia.org\/wiki\/File_Transfer_Protocol\" target=\"_blank\">FTP (File Transfer Protocolo)<\/a> una cartella o diversi files?<\/p>\n<p align=\"justify\">Solitamente esistono software grafici come:<\/p>\n<p align=\"justify\">&#8211; <a href=\"http:\/\/filezilla-project.org\/\" target=\"_blank\">FileZillaFTP<\/a><\/p>\n<p align=\"justify\">&#8211; <a href=\"http:\/\/www.smartftp.com\/\" target=\"_blank\">SmartFTP<\/a><\/p>\n<p align=\"justify\">e tanti altri ancora.<\/p>\n<p align=\"justify\">Tuttavia, i tools da linea di comando sono molto pi\u00f9 veloci e solitamente non crashano come possono fare quelli grafici.<\/p>\n<p align=\"justify\"><!--more-->Quindi, se avete qualche problema con i tools grafici ftp, continuate a leggere.<\/p>\n<p align=\"justify\">Tempo fa avevo parlato di come utilizzare <a href=\"Software\/Open-Source\/Backup-Dati-Tramite-Wget.html\" target=\"_blank\">WGET per fare un backup da linea di comando<\/a>.<\/p>\n<p align=\"justify\">Esiste una utility che si chiama WPUT reperibile sia per windows che per linux.<\/p>\n<p align=\"justify\">Con sistema operativo Linux basta digitare da terminale<\/p>\n<p align=\"justify\"><em>sudo apt-get install wput <\/em><\/p>\n<p align=\"justify\">e vedrete installata questa semplicissima utility.<\/p>\n<p align=\"justify\">Per il sistema operativo Windows si pu\u00f2 scaricare il <a href=\"http:\/\/wput.sourceforge.net\/\" target=\"_blank\">wput in sourceforge<\/a> e piazzarlo in C:\/Windows\/system32 che consentir\u00e0 di poterlo eseguire da qualsiasi punto dell&#8217;hard disk in cui siete.<\/p>\n<h3 align=\"justify\">Come Funziona<\/h3>\n<p>Il funzonamento \u00e8 semplice:<\/p>\n<ol>\n<li>Andate sulla cartella che volte uploadare.<\/li>\n<li>Scrivete\u00a0 <em>wput -u [cartella locale o file]\u00a0 ftp:\/\/[utente_ftp]:[password_ftp]@[indirizzo_server_ftp]\/[percorso cartella ftp]<\/em><\/li>\n<\/ol>\n<p>Baster\u00e0 aspettare che l&#8217;upload sia terminato, per avere la propria cartella a disposizione sul server FTP.<\/p>\n<p align=\"justify\">Potete vedere tutte le opzioni di wput tramite:<\/p>\n<p align=\"justify\"><em>wput &#8211;help<\/em><\/p>\n<blockquote>\n<p align=\"justify\"><em>\u00a0Usage: wput [options] [file]&#8230; [url]&#8230;<br \/>\nurl\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 ftp:\/\/[username[:password]@]hostname[:port][\/[path\/][file]]<\/em><\/p>\n<p>Startup:<br \/>\n-V, &#8211;version\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Display the version of wput and exit.<br \/>\n-h, &#8211;help\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Print this help-screen<br \/>\n-b, &#8211;background\u00a0\u00a0\u00a0\u00a0\u00a0 go to background after startup<\/p>\n<p>Logging and input file:<br \/>\n-o,\u00a0 &#8211;output-file=FILE\u00a0\u00a0\u00a0\u00a0\u00a0 log messages to FILE<br \/>\n-a,\u00a0 &#8211;append-output=FILE\u00a0\u00a0\u00a0 append log messages to FILE<br \/>\n-q,\u00a0 &#8211;quiet\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 quiet (no output)<br \/>\n-v,\u00a0 &#8211;verbose\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 be verbose<br \/>\n-d,\u00a0 &#8211;debug\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 debug output<br \/>\n-nv, &#8211;less-verbose\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 be less verbose<br \/>\n-i,\u00a0 &#8211;input-file=FILE\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 read the URLs from FILE<br \/>\n-s,\u00a0 &#8211;sort\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 sorts all input URLs by server-ip and path<br \/>\n&#8211;basename=PATH\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 snip PATH off each file when appendig to an URL<br \/>\n-I,\u00a0 &#8211;input-pipe=COMMAND\u00a0\u00a0\u00a0 take the output of COMMAND as data-source<br \/>\n-R,\u00a0 &#8211;remove-source-files\u00a0\u00a0 unlink files upon successful upload<\/p>\n<p>Upload:<br \/>\n&#8211;bind-address=ADDR\u00a0\u00a0\u00a0\u00a0 bind to ADDR (hostname or IP) on local host<br \/>\n-t,\u00a0 &#8211;tries=NUMBER\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 set retry count to NUMBER (-1 means infinite)<br \/>\n-nc, &#8211;dont-continue\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 do not resume partially-uploaded files<br \/>\n-u,\u00a0 &#8211;reupload\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 do not skip already completed files<br \/>\n&#8211;skip-larger\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 do not upload files if remote size is larger<br \/>\n&#8211;skip-existing\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 do not upload files that exist remotely<br \/>\n-N,\u00a0 &#8211;timestamping\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 don&#8217;t re-upload files unless newer than remote<br \/>\n-T,\u00a0 &#8211;timeout=10th-SECONDS\u00a0 set various timeouts to 10th-SECONDS<br \/>\n-w,\u00a0 &#8211;wait=10th-SECONDS\u00a0\u00a0\u00a0\u00a0 wait 10th-SECONDS between uploads. (default:0)<br \/>\n&#8211;random-wait\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 wait from 0&#8230;2*WAIT secs between uploads.<br \/>\n&#8211;waitretry=SECONDS\u00a0\u00a0\u00a0\u00a0 wait SECONDS between retries of an upload<br \/>\n-l,\u00a0 &#8211;limit-rate=RATE\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 limit upload rate to RATE<br \/>\n-nd, &#8211;no-directories\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 do not create any directories<br \/>\n-Y,\u00a0 &#8211;proxy=http\/socks\/off\u00a0 set proxy type or turn off<br \/>\n&#8211;proxy-user=NAME\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 set the proxy-username to NAME<br \/>\n&#8211;proxy-pass=PASS\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 set the proxy-password to PASS<\/p>\n<p>FTP-Options:<br \/>\n-p,\u00a0 &#8211;port-mode\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 no-passive, turn on port mode ftp (def. pasv)<br \/>\n-A,\u00a0 &#8211;ascii\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 force ASCII\u00a0 mode-transfer<br \/>\n-B,\u00a0 &#8211;binary\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 force BINARY mode-transfer<br \/>\n&#8211;force-tls\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 force the useage of TLS<\/p>\n<p>See wput(1) for more detailed descriptions of the options.<br \/>\nReport bugs and suggestions via SourceForge at<br \/>\nhttp:\/\/sourceforge.net\/tracker\/?group_id=141519<\/p><\/blockquote>\n<p align=\"justify\">\n<p align=\"justify\">Fonte: <a href=\"..\/\" target=\"_blank\">www.newstechnology.eu<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p align=\"justify\">Avete mai provato ad inserire tramite l&#8217;<a href=\"http:\/\/it.wikipedia.org\/wiki\/File_Transfer_Protocol\" target=\"_blank\">FTP (File Transfer Protocolo)<\/a> una cartella o diversi files?<\/p>\n<p align=\"justify\">Solitamente esistono software grafici come:<\/p>\n<p align=\"justify\">&#8211; <a href=\"http:\/\/filezilla-project.org\/\" target=\"_blank\">FileZillaFTP<\/a><\/p>\n<p align=\"justify\">&#8211; <a href=\"http:\/\/www.smartftp.com\/\" target=\"_blank\">SmartFTP<\/a><\/p>\n<p align=\"justify\">e tanti altri ancora.<\/p>\n<p align=\"justify\">Tuttavia, i tools da linea di comando sono molto pi\u00f9 veloci e solitamente non crashano come possono fare quelli grafici. <\/p>\n<p align=\"justify\">Quindi, se avete qualche problema con i tools grafici ftp, continuate a leggere. <\/p>\n<p align=\"justify\">Tempo fa avevo parlato di come utilizzare <a href=\"Software\/Open-Source\/Backup-Dati-Tramite-Wget.html\" target=\"_blank\">WGET per fare un backup da linea di comando<\/a>. <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"wpai_meta_description":"","footnotes":""},"categories":[14],"tags":[740,739,738,45,737,736],"class_list":["post-270","post","type-post","status-publish","format-standard","hentry","category-open-source","tag-comando","tag-file-transfer-protocol","tag-ftp","tag-linux","tag-upload-file","tag-wput"],"_links":{"self":[{"href":"https:\/\/www.newstechnology.eu\/it\/wp-json\/wp\/v2\/posts\/270","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.newstechnology.eu\/it\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.newstechnology.eu\/it\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.newstechnology.eu\/it\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.newstechnology.eu\/it\/wp-json\/wp\/v2\/comments?post=270"}],"version-history":[{"count":1,"href":"https:\/\/www.newstechnology.eu\/it\/wp-json\/wp\/v2\/posts\/270\/revisions"}],"predecessor-version":[{"id":402,"href":"https:\/\/www.newstechnology.eu\/it\/wp-json\/wp\/v2\/posts\/270\/revisions\/402"}],"wp:attachment":[{"href":"https:\/\/www.newstechnology.eu\/it\/wp-json\/wp\/v2\/media?parent=270"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.newstechnology.eu\/it\/wp-json\/wp\/v2\/categories?post=270"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.newstechnology.eu\/it\/wp-json\/wp\/v2\/tags?post=270"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}