At 01:00 AM 2/16/2005, Alexander V. Lukyanov wrote:

On Tue, Feb 15, 2005 at 10:27:25AM -0600, Steve Buehler wrote:
> The manual says that "-s" was to "set suid/sgid bits according to
> remote site". I am trying to mirror 80 gigs of data. One of the files is
> 755 on the remote server that I am backing up from, but is only 666 on the
> local server that I am backing up to. Because the remote server doesn't
> have ssh I have to run this from the local backup server. Some of the
> other files are 777 on the remote and 664 on the local system. Some of the
> files are correct and some aren't. There are a couple of files that might
> have been backed up before I put the "-s" in the "mirror" command and so
> might not be correct because of that. But not as many files as are
> incorrect. Does it set the file permissions as it backs them up? Or does
> it go back later and get/set the permissions after ALL of the files have
> been backed up?


mirror sets permissions after all files in a directory has been transferred.
If you want to copy all file attributes, use mirror -a (it is equivalent to
--allow-chown --allow-suid --no-umask).

>         On another note.  How can I tell it to run multiple instances so
> that it backs up files quicker? Do I need to put "set net:connection-limit
> 5" in the /etc/lftp.conf file and restart my backup? Do I have to run the
> backup program multiple times at once?  ummmm....I just noticed a command
> that I didn't see before for "mirror".  Is "--parallel[=N]" what I am
> looking for?

Yes, exactly. There is also --use-pget=N option to transfer a single file
with several connections. You can use both options at once.

--

Thank You. I have now changed my settings to:
mirror -a -e --parallel=10 --use-pget=10
and have "set net:connection-limit 20" in my /etc/lftp.conf file. Is there anyway to actually see how many connections it has open? I tried setting -v -v -v, but that didn't actually tell me. On the other end (the server I am mirroring), it can be seen, but not on my end.
That is faster, but still not as much as I was hoping for. That doesn't mean that the program is not working correctly and it doesn't mean that it is any better or any worse that ncftp. I found out that the other end of my mirror (the server that I am mirroring from) is kind of slow now for some reason other than it being ftp'd into to get the files. Even if it is lftp that is slow, it is still much better than ncftp because it will work with the server I am trying to download. It also has a few other mirror options that ncftp does not. So in my opinion, it is better than ncftp. Plus the programmer for lftp will actually help people. :)


Thanks Alexander
Steve




Reply via email to