Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


Help with duply / Duplicity
New on LowEndTalk? Please Register and read our Community Rules.

All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.

Help with duply / Duplicity

UmairUmair Member
edited December 2015 in Help

Hello,

I am hoping someone here can help me.
I setup my server to backup few directories to S3 using Duply/Duplicity (with the help of few articles). The backup profile created via Duply is not using any encryption.

So the backup to S3 are working fine.

I am having trouble restoring these backups to a new server. On new server, I created the exact backup profile. (No encryption, exact same config)
But when I run
duply myprofile status
or
duply myprofile restore /var/ww

I am getting error like

`Start duply v1.6.0, time is 2015-12-27 16:41:05.

Sorry. A fatal ERROR occured:

duplicity missing. installed und available in path?
PATH='/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin'
`

Which make no sense since duplicity is setup and working. What I am missing here??
Help please, I am having hard time with this.

PS. Both old and new server are running CentOS 6.7 (if that makes any difference)

Comments

  • Duplicity is missing

    yum -y install duplicity

  • @MarkTurner said:
    Duplicity is missing

    yum -y install duplicity

    Hello Mark,
    I wouldn't be asking for help if it was that kind of issue. Duplicity is there, but Duply is just not getting it for some reason.

    I used This tutorial to setup backups ... (A big thanks to the Author)
    I didn't setup encryption on the main server so "GPG_KEY=Disabled"

    On I am trying to restore these backup over to a new server. Where I am failing.
    On new server the steps are simply like

    yum install duplicity duply gpg python-boto
    duply mybackupprofile create
    nano /etc/duply/mybackupprofile/config (made it exact copy of main server)
    nano /etc/duply/mybackupprofile/exclude (again .. exact copy)
    

    There is no pre or post file. Now I am trying to restore from backup and that is where I am having issue. The restore on the same server is working fine. It's just not working on new server.

    This is my 1st attempt with Duply/Duplicity or S3 ...
    Before you ask, S3 user have full access and not restricted as in the article.

    Thanks again.

  • Where is duplicity installed?

    If you manually run duplicity does it run or is it missing some prerequisite?

  • @MarkTurner said:
    Where is duplicity installed?

    [root@mwp3 ~]# whereis duplicity
    duplicity: /usr/bin/duplicity /etc/duplicity /usr/share/man/man1/duplicity.1.gz
    [root@mwp3 ~]# duplicity -V
    duplicity 0.6.22
    

    And running duplicity directly to list files from S3 bucket

    [root@mwp3 ~]# duplicity --no-encryption list-current-files s3://s3.amazonaws.com/mymw-sitebackups/main/
    Import of duplicity.backends.dpbxbackend Failed: No module named dropbox
    Local and Remote metadata are synchronized, no sync needed.
    Last full backup date: none
    Traceback (most recent call last):
      File "/usr/bin/duplicity", line 1466, in <module>
        with_tempdir(main)
      File "/usr/bin/duplicity", line 1459, in with_tempdir
        fn()
      File "/usr/bin/duplicity", line 1397, in main
        list_current(col_stats)
      File "/usr/bin/duplicity", line 662, in list_current
        sig_chain = col_stats.get_signature_chain_at_time(time)
      File "/usr/lib64/python2.6/site-packages/duplicity/collections.py", line 974, in get_signature_chain_at_time
        raise CollectionsError("No signature chains found")
    CollectionsError: No signature chains found
    
  • Whats the name of the bucket you are restoring from?

  • @Umair try with "pip install dropbox2", because duplicity look for it.

  • ZEROF said: try with "pip install dropbox2", because duplicity look for it.

    This is not necessary unless you're using Dropbox.

    The issue is either a bad signature file, or bad bucket name.

  • @MarkTuner I agree with you, just he never said if he is using other modules or not.

Sign In or Register to comment.