Originariamente inviata da
giuseppe500
scusa MItaly un altra cosa , ho trovato questo:
https://github.com/git-ftp/git-ftp
potrebbe esssere molto utile a persone come me che fanno dei piccoli/medi siti su piccoli host , è facile da installare e dalla documentazione sembra molto promettente.
solo, ho provato questo comando da esempio:
codice:
sudo git ftp init --user 'giuseppe500' --passwd 'xxxxxx' ftp://xx.xx.xx.xxx
solo che non so cosa mettere nell ' ftp perchè ho un host composto da stringhe , sono poco pratico di linux cosa devo metterci?
cosi non va , mi da quest errore
There are 1 files to sync:
fatal: Could not upload file: '.git-ftp.log'., exiting...
fatal: Could not upload., exiting...
grazie
ho messo il verbose, lo posto:
codice:
mar 17 dic 2013, 19.01.25, CET: Host is 'xx2xx6xxx'.
mar 17 dic 2013, 19.01.25, CET: User is 'giuseppe500'.
mar 17 dic 2013, 19.01.25, CET: Password is set.
mar 17 dic 2013, 19.01.25, CET: Protocol not set, using default protocol ftp://.
mar 17 dic 2013, 19.01.25, CET: Path is ''.
mar 17 dic 2013, 19.01.25, CET: Syncroot is ''.
mar 17 dic 2013, 19.01.25, CET: CACert is ''.
mar 17 dic 2013, 19.01.25, CET: Insecure is ''.
mar 17 dic 2013, 19.01.25, CET: Check if ftp://xxxxxxxxx/ is clean.
* About to connect() to 94.23.67.247 port 21 (#0)
* Trying xxxxxxxxxxx...
* Adding handle: conn: 0xd8d7f0
* Adding handle: send: 0
* Adding handle: recv: 0
* Curl_addHandleToPipeline: length: 1
* - Conn 0 (0xd8d7f0) send_pipe: 1, recv_pipe: 0
* Connected to xxxxxxxxxxx (xxxxxxxxxx) port 21 (#0)
< 220 ProFTPD 1.3.4c Server (ProFTPD) [xxxxxxxxxxx]
> USER giuseppe500
< 331 Password required for giuseppe500
> PASS Pixel197750
< 230 User giuseppe500 logged in
> PWD
< 257 "/" is the current directory
* Entry path is '/'
> EPSV
* Connect data stream passively
* ftp_perform ends with SECONDARY: 0
< 229 Entering Extended Passive Mode (|||57020|)
* Trying 94.23.67.247...
* Connecting to 94.23.67.247 (94.23.67.247) port 57020
* Connected to 94.23.67.247 (94.23.67.247) port 21 (#0)
> TYPE I
< 200 Type set to I
> SIZE .git-ftp.log
< 213 1
> RETR .git-ftp.log
< 150 Opening BINARY mode data connection for .git-ftp.log (1 bytes)
* Maxdownload = -1
* Getting file with size: 1
{ [data not shown]
* Remembering we are in dir ""
< 226 Transfer complete
######################################################################## 100,0%* Connection #0 to host xx.xx.xx.xxx left intact
fatal: bad default revision 'HEAD'
mar 17 dic 2013, 19.01.27, CET: Sync all files.
mar 17 dic 2013, 19.01.27, CET: There are 1 files to sync:
mar 17 dic 2013, 19.01.27, CET: Uploading commit log to ftp://94.23.67.247/.git-ftp.log.
* About to connect() to 94.23.67.247 port 21 (#0)
* Trying xx.xx.xx.xxx...
* Adding handle: conn: 0x121d830
* Adding handle: send: 0
* Adding handle: recv: 0
* Curl_addHandleToPipeline: length: 1
* - Conn 0 (0x121d830) send_pipe: 1, recv_pipe: 0
* Connected to xx.xxx.xxx2(xxxxxxx247) port 21 (#0)
< 220 ProFTPD 1.3.4c Server (ProFTPD) [94.23.67.247]
> USER giuseppe500
< 331 Password required for giuseppe500
> PASS Pixel197750
< 230 User giuseppe500 logged in
> PWD
< 257 "/" is the current directory
* Entry path is '/'
> EPSV
* Connect data stream passively
* ftp_perform ends with SECONDARY: 0
< 229 Entering Extended Passive Mode (|||38856|)
* Trying xx.xx.xx.xxx...
* Connecting to xx.xx.xx.xxx (xx.xx.xx.xxx) port 38856
* Connected to 94.23.67.247 (xx.xx.xx.xxxx) port 21 (#0)
> TYPE I
< 200 Type set to I
> STOR .git-ftp.log
< 150 Opening BINARY mode data connection for .git-ftp.log
} [data not shown]
* Remembering we are in dir ""
< 226 Transfer complete