duplicity-talk
[Top][All Lists]
Advanced

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

Re: [Duplicity-talk] Restoring from Duplicity -- frustration.


From: Tom Johnson
Subject: Re: [Duplicity-talk] Restoring from Duplicity -- frustration.
Date: Mon, 17 Mar 2014 02:02:22 +0000

Hi,

The file-to-restore needs to be relative to the location you backed it up in; if I wanted to restore /home/tom/foo/bar and I had originally backed up using

$ duplicity /home/tom file:///thud

I would restore using

$ duplicity --file-to-restore ./foo/bar file:///thud /path/to/restore

Note that you've also missed /path/to/restore in your command – duplicity needs to know where to restore to! I think you may have specified this, in which case, drop the file:// from the start and put the path to your backup location in front.

If that doesn't make sense, provide me with:
* the original backup command, if you can
* the URI of the backup archives
And I'll give you a command to run.

Tom

On 17 Mar 2014 01:04, "Bill Case" <address@hidden> wrote:
On Sun, 2014-03-16 at 20:40 -0400, Bill Case wrote:
> On Sun, 2014-03-16 at 23:51 +0000, Tom Johnson wrote:
> > Hi Bill,
> >
> >
> > From the man page:
> > duplicity [restore] [options] [--file-to-restore <relpath>] [--time
> > time] source_url target_directory
> >
> >
> > So for your purposes I would think the command is:
> > duplicity restore --file-to-restore
> > relative/path/to/home/bill/.local/share/gnote
> > file:///path/to/backup /home/bill/.local/share/gnote
> >
> >
> > where relative/path/to/home/ is the path relative to the original
> > backup location.
> >
> >
> > Let me know if you're confused.
> >
> >
> > Tom
> >
> >
> > On Sun, Mar 16, 2014 at 11:19 PM, Bill Case <address@hidden>
> > wrote:
>
> >         The particular files I want are :
> >         /home/bill/.local/share/gnote
> >         especially those saved after Mar 11, 2013
> >
> >         I want to restore them to 1 of 2 files, it doesn't matter
> >         which :
> >
> >         1) /home/bill/.local/share/gnote    or
> >         2) /run/media/wcase/LinuxBUb/bill-20Restored
> >
> >         ]# duplicity --restore  -> "Command line error: Expected 2
> >         args, got 1"
> >         I don't understand what argument I am missing.
> >
> >         I suppose I am asking either how to write the duplicity
> >         command because
> >         I have missed something simple.  OR, some other suggestions on
> >         how to
> >         extract those files I need by some other means.
> >         --
> >         Regards William Case,
> >         Fedora 20, Gnome 3.10.1,
> >         Evo 3.10.4, Emacs 24x.
> >
> >
> >         _______________________________________________
> >         Duplicity-talk mailing list
> >         address@hidden
> >         https://lists.nongnu.org/mailman/listinfo/duplicity-talk
> >
> >
> > _______________________________________________
> > Duplicity-talk mailing list
> > address@hidden
> > https://lists.nongnu.org/mailman/listinfo/duplicity-talk
>
> Thanks Tom;
>
> Following your advice I got for my command
> ~]# duplicity restore
> --file-to-restore /run/media/wcase/LinuxBUb/bill19BU/home/bill/.local/share/gnote file:/// /run/media/wcase/LinuxBUb/bill-20Restored/home/bill/.local/share/gnote
>
> My return was:
> Import of duplicity.backends.dpbxbackend Failed: No module named
> pkg_resources
> Local and Remote metadata are synchronized, no sync needed.
> Last full backup date: none
> GnuPG passphrase:
> Traceback (most recent call last):
>   File "/bin/duplicity", line 1466, in <module>
>     with_tempdir(main)
>   File "/bin/duplicity", line 1459, in with_tempdir
>     fn()
>   File "/bin/duplicity", line 1393, in main
>     restore(col_stats)
>   File "/bin/duplicity", line 687, in restore
>     restore_get_patched_rop_iter(col_stats)):
>   File "/bin/duplicity", line 709, in restore_get_patched_rop_iter
>     backup_chain = col_stats.get_backup_chain_at_time(time)
>   File "/usr/lib64/python2.7/site-packages/duplicity/collections.py",
> line 949, in get_backup_chain_at_time
>     raise CollectionsError("No backup chains found")
> CollectionsError: No backup chains found
>
> For the GnuPG I used my root pw.  No password was assigned to this back
> up in the first place.
>

Sorry, I found an error in my command
"...file:/// /run/media/wcase" had an unwanted space.  I removed that
and now my error returns is "Command line error: Expected 2 args, got 1"
again

--
Regards William Case,
Fedora 20, Gnome 3.10.1,
Evo 3.10.4, Emacs 24x.


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

reply via email to

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