duplicity-talk
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Duplicity-talk] restore a single Directory


From: Andre Dieball
Subject: Re: [Duplicity-talk] restore a single Directory
Date: Sat, 5 Sep 2009 14:28:05 +0200

Hi Ede

---cut---
address@hidden ~]# duplicity --version
duplicity 0.5.06
Traceback (most recent call last):
  File "/usr/bin/duplicity", line 583, in ?
    with_tempdir(main)
  File "/usr/bin/duplicity", line 577, in with_tempdir
    fn()
  File "/usr/bin/duplicity", line 504, in main
    action = "">
  File "/usr/lib64/python2.4/site-packages/duplicity/commandline.py", line 510, in ProcessCommandLine
    args = parse_cmdline_options(cmdline_list)
  File "/usr/lib64/python2.4/site-packages/duplicity/commandline.py", line 284, in parse_cmdline_options
    sys.exit(0)
SystemExit: 0

address@hidden ~]# 
---cut---

Basically /var/www/WebSite is a symlink to /var/www/clients/client4/web3

Andre


Am 05.09.2009 um 14:04 schrieb address@hidden:

your list command shows

var/www/clients/client4/web3/web/Films

probably thats what you should ask duplicity for ;) ...

sorry, my mistake .. I need the output of 'duplicity --version' , please send again

... ede
ftplicity.sourceforge.net

--
On 05.09.2009 13:03, Andre Dieball wrote:
Hi Ede

thanks for your reply. I tried as suggested:

--- Start running command FETCH (13:01:57.737) ---
Running duplicity - FAILED (code 30)
Output: NcFTP version is 3.2.2
Last full backup date: Tue Sep  1 03:00:02 2009
var/www/WebSite/web/Films not found in archive, no files restored.
Traceback (most recent call last):
  File "/usr/bin/duplicity", line 583, in ?
    with_tempdir(main)
  File "/usr/bin/duplicity", line 577, in with_tempdir
    fn()
  File "/usr/bin/duplicity", line 540, in main
    restore(col_stats)
  File "/usr/bin/duplicity", line 304, in restore
    log.ErrorCode.restore_dir_not_found)
  File "/usr/lib64/python2.4/site-packages/duplicity/log.py", line 164, in FatalError
    sys.exit(code)
SystemExit: 19
--- Finished (13:02:21.037) - Runtime 00:00:23.300 ---
address@hidden ~]#

address@hidden ~]# duplicity version
Command line error: Expected 2 args, got 1
Enter 'duplicity --help' for help screen.
Traceback (most recent call last):
  File "/usr/bin/duplicity", line 583, in ?
    with_tempdir(main)
  File "/usr/bin/duplicity", line 577, in with_tempdir
    fn()
  File "/usr/bin/duplicity", line 504, in main
    action = ""
  File "/usr/lib64/python2.4/site-packages/duplicity/commandline.py", line 510, in ProcessCommandLine
    args = parse_cmdline_options(cmdline_list)
  File "/usr/lib64/python2.4/site-packages/duplicity/commandline.py", line 296, in parse_cmdline_options
    command_line_error("Expected %d args, got %d" % (num_expect, len(args)))
  File "/usr/lib64/python2.4/site-packages/duplicity/commandline.py", line 304, in command_line_error
    log.ErrorCode.command_line)
  File "/usr/lib64/python2.4/site-packages/duplicity/log.py", line 164, in FatalError
    sys.exit(code)
SystemExit: 2

address@hidden ~]#



Andre
Am 05.09.2009 um 12:10 schrieb address@hidden:

As you try to restore a folder I would suggest leaving the trailing slash ... try
ftplicity mordac fetch var/www/WebSite/web/Films /root/backupWebSite 30D

I doublechecked and obviously duplicity uses the path name that you can also see with the list command. Without a trailing slash I didn't get the 'not found' error.

also .. what does 'duplicity version' output? .. there seems to be an error. Seems not to be critical but, could you please send it, so I can improve ftplicity...

.. ede


On 04.09.2009 23:56, Andre Dieball wrote:
Hi Ede

basically, this is what I tried ....

I did:
ftplicity mordac fetch var/www/Website/web/Films/ /root/backupWebsite/ 30D --preview

which returns the following duplicity command:
/usr/bin/duplicity   --verbosity 4 --encrypt-key 12345678 --sign-key 12345678 --gpg-options=""  --restore-time 30D --file-to-restore var/www/WebSite/web/Films/ ftp://address@hidden/mordac/ /root/backupWebSite/

But runnign this via ftplicity returns the following:

address@hidden web]# ftplicity mordac fetch var/www/WebSite/web/Films/ /root/backupWebSite/ 30D
Start ftplicity v1.4.2.1, time is 09/04/09 23:47:55.
Using profile '/etc/ftplicity/mordac'.
Using installed Attention: Could not interpret your duplicity version string ((most
"/usr/bin/duplicity",

"/usr/bin/duplicity",

"/usr/bin/duplicity",
=
"/usr/lib64/python2.4/site-packages/duplicity/commandline.py",
=
"/usr/lib64/python2.4/site-packages/duplicity/commandline.py",

0

0.5.06)., gpg 1.4.5 (Home: ~/.gnupg)
Test - Encryption with key 12345678 (OK)
Test - Decryption with key 12345678 (OK)
Test - Compare Original w/ Decryption (OK)
Cleanup - Delete '/tmp/ftplicity.18003.1252100875_*'(OK)

--- Start running command FETCH (23:50:40.485) ---
Running duplicity - FAILED (code 30)
Output: NcFTP version is 3.2.2
Last full backup date: Tue Sep  1 03:00:02 2009
/var/www/WebSite/web/Films/ not found in archive, no files restored.
Traceback (most recent call last):
 File "/usr/bin/duplicity", line 583, in ?
   with_tempdir(main)
 File "/usr/bin/duplicity", line 577, in with_tempdir
   fn()
 File "/usr/bin/duplicity", line 540, in main
   restore(col_stats)
 File "/usr/bin/duplicity", line 304, in restore
   log.ErrorCode.restore_dir_not_found)
 File "/usr/lib64/python2.4/site-packages/duplicity/log.py", line 164, in FatalError
   sys.exit(code)
SystemExit: 19
--- Finished (23:51:00.698) - Runtime 00:00:20.213 ---



But that directory does exist:

address@hidden web]# ftplicity mordac list | grep Films
Thu Aug 27 13:34:39 2009 var/www/clients/client4/web3/web/Films
Wed Jul  1 19:04:07 2009 var/www/clients/client4/web3/web/Films/Kind560x320.flv
Tue Jul 21 10:16:24 2009 var/www/clients/client4/web3/web/Films/Kindergarten560x320.flv
address@hidden web]#


That is waht is confusing me :-)

BTW: I also tried without the leading slah for the restore directory (as in the ftplicity manual) without any success

Thanks a lot in advance

Andre





Am 30.08.2009 um 19:38 schrieb address@hidden:



Basically I'm using ftplicity


Then why aren't you using the corresponding ftplicity command? In recent versions this would be ...

ftplicity <profile> fetch /srcpath /trgpath [<age>]

... ede
ftplicity.sourceforge.net





_______________________________________________
Duplicity-talk mailing list
address@hidden
http://lists.nongnu.org/mailman/listinfo/duplicity-talk


_______________________________________________ Duplicity-talk mailing list address@hidden http://lists.nongnu.org/mailman/listinfo/duplicity-talk

_______________________________________________
Duplicity-talk mailing list
address@hidden
http://lists.nongnu.org/mailman/listinfo/duplicity-talk

Attachment: smime.p7s
Description: S/MIME cryptographic signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]