BTW, just got this:

mirror: Access failed: Directory location is undefined (PATH/DIRNAME)

Situation: 'queue mirror -R -v -p' issued earlier in PATH cwd.
In PATH there were 2 dirs, DIRNAME and DIRNAME2. DIRNAME2 was uploaded 
ok, and after that i got the error message. The DIRNAME dir is still
there of course


On Tue, 06 Aug 2002, Glenn Maynard wrote:

> Your original question:
> 
> > The other feature i need is disabling 'remove remote file if local is
> > newer'.
> 
> I'm not sure what you really want: normally, lftp will only delete a
> destination file if it doesn't exist *at all* in the source (and only if
> --delete is used).  Otherwise, it'll either re-download it from scratch,
> continue it or, if it think it's the same file and complete, leave it alone.
> 
> I'm guessing you mean "don't resend the destination file if the source is
> newer"; in other words, only send files that don't already exist.  It'd
> help if you could give a real scenario, though, along with what you'd
> like to happen, preferably including continue semantics (how do we know
> if we're allowed to continue or not?)  

I messed a bit previously. I hope this lftp session will be clearer ;)

I had to reformat it a little bit, but hopefully nothing was lost then.

Unnecessary stuff is cut off

lftp user@host:/> !ls -l testfile-do_not_download
-rw-------   1 piotr    piotr           6 Jan  1  2003 testfile-do_not_download
lftp user@host:/> put testfile-do_not_download 
[the file is being uploaded]
6 bytes transferred in 3 seconds (2b/s)
lftp user@host:/> ls testfile-do_not_download 
-rwxrw-rw- 1 root  root        6 Aug  9  6:32 testfile-do_not_download
lftp user@host:/> !echo "more data" >> testfile-do_not_download 
lftp user@host:/> !touch --date="2003-01-1" testfile-do_not_download
lftp user@host:/> !ls -l testfile-do_not_download 
-rw-------   1 piotr    piotr          16 Jan  1  2003 testfile-do_not_download
lftp user@host:/> mirror -R -v -c -p 
---> PASV
Getting directory contents (0) [Waiting for response...]
<--- 227 Entering Passive Mode (host,14,100)
---- Connecting data socket to (host) port 3684
---> LIST
<--- 150 Opening ASCII mode data connection for /bin/ls (8015 bytes).
<--- 226 Transfer successful.
---- Closing data socket
---> TYPE I
<--- 200 Type set to I.
---> MDTM (AC) Jungle Wa Itsumo Hale Nochi Guu EP 16.SFV
<--- 500 'MDTM': command not understood.
[and this is part i don't want:]
Removing old file `testfile-do_not_download'
Transferring file `testfile-do_not_download'
---> DELE testfile-do_not_download
<--- 550 testfile-do_not_download: Permission denied.
---> PASV
<--- 227 Entering Passive Mode (host,14,101)
---- Connecting data socket to (host) port 3685
---> STOR testfile-do_not_download
---- Closing data socket
<--- 425 Permission Denied. File Exists.
---> QUIT
<--- 221 Goodbye.  Control connection closed.
---- Closing control socket
[connecting to the server again]
---> TYPE I
<--- 200 Type set to I.
---> SIZE testfile-do_not_download
<--- 213 6
---> PASV
copy: put rolled back to 6, seeking get accordingly
<--- 227 Entering Passive Mode (host,14,102)
---- Connecting data socket to (host) port 3686
---> REST 6
<--- 350 Restarting at byte offset 6.  Send RETR to initiate transfer.
---> STOR testfile-do_not_download
[btw. the server want us to send RETR not STOR]
<--- 150 Opening binary mode data connection for /testfile-do_not_download.
---- Closing data socket
<--- 226 Transfer complete. 16 bytes in 0 sec. (0.00 Kb/s).
Total: 1 directory, 1 file, 0 symlinks
Modified: 1 file, 0 symlinks
To be removed: 73 directories, 38 files, 0 symlinks


-- 
Piotrek
irc: #debian.pl
Mors Drosophilis melanogastribus!

Reply via email to