--- /root/downloads/duplicity-0.4.4.RC2/build/lib.linux-x86_64-2.4/duplicity/backends.py 2007-09-26 20:19:21.000000000 +0200 +++ /usr/lib/python2.4/site-packages/duplicity/backends.py 2007-09-27 10:38:35.000000000 +0200 @@ -532,8 +532,12 @@ self.conn_opt = '-E' else: self.conn_opt = '-F' - self.flags = "%s -t %s -u '%s' -p '%s'" % \ - (self.conn_opt, globals.timeout, parsed_url.user, self.password) + if parsed_url.port != None and parsed_url.port != 21: + self.flags = "%s -t %s -u '%s' -p '%s' -P '%s'" % \ + (self.conn_opt, globals.timeout, parsed_url.user, self.password, parsed_url.port) + else: + self.flags = "%s -t %s -u '%s' -p '%s'" % \ + (self.conn_opt, globals.timeout, parsed_url.user, self.password) def put(self, source_path, remote_filename = None): """Transfer source_path to remote_filename"""