Unable to fetch single file or specific file via duply

Asked by satish kumar

Start duply v1.5.5.4, time is 2015-05-28 17:10:14.
Using profile '/root/.duply/usr-www'.
Using installed duplicity version 0.6.18, python 2.7.3, gpg 1.4.11 (Home: ~/.gnupg), awk 'GNU Awk 3.1.8', bash '4.2.25(1)-release (x86_64-pc-linux-gnu)'.
Signing disabled. Not GPG_KEY entries in config.
Test - Encryption with passphrase (OK)
Test - Decryption with passphrase (OK)
Test - Compare (OK)
Cleanup - Delete '/tmp/duply.17258.1432833014_*'(OK)

--- Start running command FETCH at 17:10:15.044 ---
Command line error: Expected 2 args, got 4
Enter 'duplicity --help' for help screen.
17:10:15.197 Task 'FETCH' failed with exit code '2'.
--- Finished state FAILED 'code 2' at 17:10:15.197 - Runtime 00:00:00.153 ---

My command is : duply (backup folder) src file target file age

Please sugges I'm missing something with my command.

Thanks in advance.

--Satish

Question information

Language:
English Edit question
Status:
Answered
For:
Duplicity Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Aaron Whitehouse (aaron-whitehouse) said :
#1

See:
http://duply.net/wiki/index.php/Duply-documentation

fetch <src_path> <target_path> [<age>]
             fetch single file/folder from backup [as it was at <age>]

You said that your command was:
duply (backup folder) src file target file age

You want:
$ duply profile fetch backed_up_file /target/filename [age]

For example, I just tested with:
$ duply photos fetch img_4957.jpg /tmp/img_restored.jpg

The filename that you use for the source (in my example "img_4957.jpg") should match a file from
$ duply profile list
This should tell you, for example, if you need to put the full path into your source file name.

Revision history for this message
edso (ed.so) said :
#2

On 28.05.2015 19:26, satish kumar wrote:
> New question #267504 on Duplicity:
> https://answers.launchpad.net/duplicity/+question/267504
>
> Start duply v1.5.5.4, time is 2015-05-28 17:10:14.
> Using profile '/root/.duply/usr-www'.
> Using installed duplicity version 0.6.18, python 2.7.3, gpg 1.4.11 (Home: ~/.gnupg), awk 'GNU Awk 3.1.8', bash '4.2.25(1)-release (x86_64-pc-linux-gnu)'.
> Signing disabled. Not GPG_KEY entries in config.
> Test - Encryption with passphrase (OK)
> Test - Decryption with passphrase (OK)
> Test - Compare (OK)
> Cleanup - Delete '/tmp/duply.17258.1432833014_*'(OK)
>
> --- Start running command FETCH at 17:10:15.044 ---
> Command line error: Expected 2 args, got 4
> Enter 'duplicity --help' for help screen.
> 17:10:15.197 Task 'FETCH' failed with exit code '2'.
> --- Finished state FAILED 'code 2' at 17:10:15.197 - Runtime 00:00:00.153 ---
>
> My command is : duply (backup folder) src file target file age
>
> Please sugges I'm missing something with my command.
>

try the latest duply 1.9.1.. your's is nearly 4 years old.

..ede/duply.net

Can you help with this problem?

Provide an answer of your own, or ask satish kumar for more information if necessary.

To post a message you must log in.