Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > HOWTO-Related Questions

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 24th May 2008, 18:23
sjau sjau is offline
Local Meanie
 
Join Date: Apr 2006
Location: Switzerland
Posts: 1,138
Thanks: 4
Thanked 54 Times in 50 Posts
Default Encrypted FTP backups with duplicity

http://www.howtoforge.com/ftp-backup...ty-debian-etch

Hmmm, I already fail at step 3.

Code:
cp:/backup# FTP_PASSWORD=secred duplicity /path/to/some/folder ftp://ftpuser@ftpserver/
Traceback (most recent call last):
  File "/usr/bin/duplicity", line 373, in ?
    if __name__ == "__main__": main()
  File "/usr/bin/duplicity", line 349, in main
    globals.archive_dir).set_values()
  File "/usr/lib/python2.4/site-packages/duplicity/collections.py", line 406, in set_values
    backend_filename_list = self.backend.list()
  File "/usr/lib/python2.4/site-packages/duplicity/backends.py", line 365, in list
    try: return self.error_wrap('nlst')
  File "/usr/lib/python2.4/site-packages/duplicity/backends.py", line 335, in error_wrap
    except ftplib.all_errors, e: raise BackendException(e)
duplicity.backends.BackendException: 226 Transfer complete.
any idea?
__________________
"Common sense is not as common as commonly believed" by sjau

Auto-Install Script for ISPConfig and Horde on a Vanilla Debian Stable

Need more Repos for Ubuntu? Repository Generator
Need more Repos for Debian? Debian Repository Generator
Reply With Quote
Sponsored Links
  #2  
Old 25th May 2008, 18:26
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,735 Times in 2,571 Posts
Default

http://www.howtoforge.com/forums/showthread.php?t=9013

Unfortunately I have no idea what's causing the problem...
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #3  
Old 28th May 2008, 19:33
sjau sjau is offline
Local Meanie
 
Join Date: Apr 2006
Location: Switzerland
Posts: 1,138
Thanks: 4
Thanked 54 Times in 50 Posts
Default

Hi falko

I added a comment on how to make it work it was very simple actually - just you need to know how
__________________
"Common sense is not as common as commonly believed" by sjau

Auto-Install Script for ISPConfig and Horde on a Vanilla Debian Stable

Need more Repos for Ubuntu? Repository Generator
Need more Repos for Debian? Debian Repository Generator
Reply With Quote
The Following User Says Thank You to sjau For This Useful Post:
falko (29th May 2008)
  #4  
Old 10th July 2012, 18:04
n6pfk n6pfk is offline
Junior Member
 
Join Date: Jul 2012
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default Failure with non-standard ftp port

i have tried :xxxx after the host name and it is recognized but the ort part is dropped by various ncftp commands so I receive an error from the remote ftp server. I have sarched for alternative methods of specifying the port number but they either fail immediately or eventually drop the port number in the host string sent to the remote server.

FTP_PASSWORD=???????? duplicity -v 9 .local/share/evolution ftp://mike@"host_name:1976"/evolution
Using archive dir: /home/mike/.cache/duplicity/464f3be00fbc0c5469e19252420b3a43
Using backup name: 464f3be00fbc0c5469e19252420b3a43
Import of duplicity.backends.u1backend Succeeded
Import of duplicity.backends.gdocsbackend Succeeded
Import of duplicity.backends.rsyncbackend Succeeded
Import of duplicity.backends.giobackend Succeeded
Import of duplicity.backends.webdavbackend Succeeded
Import of duplicity.backends.cloudfilesbackend Succeeded
Import of duplicity.backends.ftpsbackend Succeeded
Import of duplicity.backends.sshbackend Succeeded
Import of duplicity.backends.ftpbackend Succeeded
Import of duplicity.backends.botobackend Succeeded
Import of duplicity.backends.localbackend Succeeded
Import of duplicity.backends.hsibackend Succeeded
Import of duplicity.backends.tahoebackend Succeeded
Import of duplicity.backends.imapbackend Succeeded
NcFTP version is 3.2.5
Using temporary directory /tmp/duplicity-0Oi7nA-tempdir
Registering (mkstemp) temporary file /tmp/duplicity-0Oi7nA-tempdir/mkstemp-5POKud-1
Main action: inc
================================================== ==============================
duplicity 0.6.15 (August 19, 2011)
Args: /usr/bin/duplicity -v 9 .local/share/evolution ftp://mike@host_name:1976/evolution
Linux HP-Mini 3.0.0-22-generic #36-Ubuntu SMP Tue Jun 12 17:13:04 UTC 2012 i686 i686
/usr/bin/python 2.7.2+ (default, Oct 4 2011, 20:03:08)
[GCC 4.6.1]
================================================== ==============================
Registering (mkstemp) temporary file /tmp/duplicity-0Oi7nA-tempdir/mkstemp-ZCLE2z-2
Temp has 19117944832 available, backup will use approx 34078720.
Reading results of 'ncftpls -f /tmp/duplicity-0Oi7nA-tempdir/mkstemp-5POKud-1 -F -t 30 -o useCLNT=0,useHELP_SITE=0 -P '1976' -l 'ftp://host_name:1976/evolution/''
Running 'ncftpls -f /tmp/duplicity-0Oi7nA-tempdir/mkstemp-5POKud-1 -F -t 30 -o useCLNT=0,useHELP_SITE=0 -P '1976' -l 'ftp://nost_name:1976/evolution/'' failed with code 1 (attempt #1)
Error is:
Invalid reply: "SSH-2.0-OpenSSH_5.1"
ncftpls: cannot open host_name: invalid reply from server.

^CRemoving still remembered temporary file /tmp/duplicity-0Oi7nA-tempdir/mkstemp-5POKud-1
Removing still remembered temporary file /tmp/duplicity-0Oi7nA-tempdir/mkstemp-ZCLE2z-2
INT intercepted...exiting.

As you can see it drops the port number.

Any ideas on this problem?
Reply With Quote
  #5  
Old 11th July 2012, 18:03
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,735 Times in 2,571 Posts
Default

You can specify the port with the -P switch - see http://www.ncftp.com/ncftp/doc/ncftp.html
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #6  
Old 11th July 2012, 19:44
n6pfk n6pfk is offline
Junior Member
 
Join Date: Jul 2012
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default Several other port attemps fail.

FTP_PASSWORD=???????? duplicity -v 9 -P 1976 .local/share/evolution ftp://mike@hostname/evolution

duplicity: error: no such option: -P
Reply With Quote
  #7  
Old 12th July 2012, 10:21
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,735 Times in 2,571 Posts
Default

According to http://duplicity.nongnu.org/duplicity.1.html , the format is:

scheme://user[:password]@host[:port]/[/]path
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #8  
Old 12th July 2012, 16:51
n6pfk n6pfk is offline
Junior Member
 
Join Date: Jul 2012
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
 
Default port number

I can do a successful back and restore to a local machine that uses port 22 without using hostname:22. If I use hostname:22 if fails in the same way as using hostname:1976 to my remote server?

Something is wrong with the documentation?

It recognizes ":22" as "-P 22" but then the server refuses to respond.

Try using hostname:22 to the server you backup to and let me know if it works?
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
proFTPd passive mode problems bisbell Server Operation 8 6th August 2008 21:12
Question about Virtual Hosting With Proftpd And MySQL (Incl. Quota) On Debian Etch ikkem HOWTO-Related Questions 30 26th February 2008 19:38
FTP Error joshabts Installation/Configuration 3 4th November 2006 16:19
ftp problems tgansert Installation/Configuration 20 27th May 2006 19:06
Website users? ctroyp General 25 6th January 2006 18:02


All times are GMT +2. The time now is 14:42.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.