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: edgar . soldin
Subject: Re: [Duplicity-talk] restore a single Directory
Date: Mon, 07 Sep 2009 17:06:49 +0200
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.1) Gecko/20090715 Thunderbird/3.0b3

Regarding the problem. Just browsed the duplicity changelog and found this

New in v0.6.03 (2009/07/29)
---------------------------
<...>
Bugs fixed this release:
377528  --file-to-restore doesn't work with trailing slash

... ede


On 06.09.2009 21:06, Andre Dieball wrote:
Ede

that did it, sorry.


Thanks for all your help


Andre


Am 06.09.2009 um 20:21 schrieb address@hidden:

Again leave the slash at the _end_ away ...

you did
address@hidden backuptest]# ftplicity mordac fetch
var/www/clients/client4/web3/web/Films/ /root/backuptest
and
address@hidden backuptest]# ftplicity mordac fetch
/var/www/clients/client4/web3/web/Films/ /root/backuptest

you should
address@hidden backuptest]# ftplicity mordac fetch
var/www/clients/client4/web3/web/Films /root/backuptest

no slash at the END nor BEGINNING ... if unsure do a 'list' first and
then enter the path a listed

... ede



On 06.09.2009 19:35, Andre Dieball wrote:

Ede

so bizarr .....

address@hidden backuptest]# ftplicity mordac fetch
var/www/clients/client4/web3/web/Films/ /root/backuptest
Start ftplicity v1.4.2.1, time is 09/06/09 19:33:18.
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 88A9D944 (OK)
Test - Decryption with key 88A9D944 (OK)
Test - Compare Original w/ Decryption (OK)
Cleanup - Delete '/tmp/ftplicity.4284.1252258398_*'(OK)

--- Start running command FETCH (19:33:18.725) ---
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/clients/client4/web3/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 (19:33:53.988) - Runtime 00:00:35.262 ---
address@hidden backuptest]#




smae with a slash at the beginning:

address@hidden backuptest]# ftplicity mordac fetch
/var/www/clients/client4/web3/web/Films/ /root/backuptest
Start ftplicity v1.4.2.1, time is 09/06/09 19:34:58.
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 88A9D944 (OK)
Test - Decryption with key 88A9D944 (OK)
Test - Compare Original w/ Decryption (OK)
Cleanup - Delete '/tmp/ftplicity.4440.1252258498_*'(OK)

--- Start running command FETCH (19:34:58.476) ---
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/clients/client4/web3/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 (19:35:23.428) - Runtime 00:00:24.952 ---
address@hidden backuptest]#



Andre



Am 05.09.2009 um 14:57 schrieb address@hidden:

duplicity saves symlinks as symlinks ..

did you try
ftplicity mordac fetch var/www/clients/client4/web3/web/Films
/root/backupWebSite
?

what was the output .. thanks for the version out .. ede


On 05.09.2009 14:28, Andre Dieball wrote:

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 = commandline.ProcessCommandLine(sys.argv[1:])
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 = commandline.ProcessCommandLine(sys.argv[1:])
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



_______________________________________________
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


_______________________________________________
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




reply via email to

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