[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Duplicity-talk] FTP not working
From: |
Kenneth Loafman |
Subject: |
Re: [Duplicity-talk] FTP not working |
Date: |
Fri, 03 Apr 2009 07:32:50 -0500 |
User-agent: |
Thunderbird 2.0.0.21 (X11/20090318) |
Tim Riemenschneider wrote:
> Tim Riemenschneider schrieb:
>> Hi,
>>
>> I think I have a problem with the ftp-backend. collection-status shows
>> as empty, but there are backups on the server. I think ncftpls is not
>> working correctly.
>>
> Ok, trying further revealed the problem: the ftp-server seems to choke
> on the default options of ls, since the first call of ls (long listing)
> works, but the second doesn't:
> So, after hacking ftpbackend.py:
> --- ftpbackend.py.orig 2009-04-02 17:51:52.000000000 +0200
> +++ ftpbackend.py 2009-04-03 13:33:50.000000000 +0200
> @@ -109,7 +109,7 @@
> if not l:
> return l
> # if long list is not empty, get short list of names only
> - commandline = "ncftpls %s '%s'" % \
> + commandline = "ncftpls %s -x '' '%s'" % \
> (self.flags, self.url_string)
> l = self.popen_persist(commandline).split('\n')
> l = [x.split()[-1] for x in l if x]
>
> Can my change break something? (Otherwise it could probably go into the
> source?)
No, it looks like the removal of "-x ''" from the original source broke
duplicity for your case, and fixed it in others. There was a bug this
closed, but it looks like another solution is needed now.
Oh, what I wouldn't give for standardization in FTP servers...
...Ken
signature.asc
Description: OpenPGP digital signature