{"action":"created","issue":{"url":"https://api.github.com/repos/gdha/rear-automated-testing/issues/48","repository_url":"https://api.github.com/repos/gdha/rear-automated-testing","labels_url":"https://api.github.com/repos/gdha/rear-automated-testing/issues/48/labels{/name}","comments_url":"https://api.github.com/repos/gdha/rear-automated-testing/issues/48/comments","events_url":"https://api.github.com/repos/gdha/rear-automated-testing/issues/48/events","html_url":"https://github.com/gdha/rear-automated-testing/issues/48","id":281148094,"number":48,"title":"add duplicity/duply","user":{"login":"gdha","id":888633,"avatar_url":"https://avatars2.githubusercontent.com/u/888633?v=4","gravatar_id":"","url":"https://api.github.com/users/gdha","html_url":"https://github.com/gdha","followers_url":"https://api.github.com/users/gdha/followers","following_url":"https://api.github.com/users/gdha/following{/other_user}","gists_url":"https://api.github.com/users/gdha/gists{/gist_id}","starred_url":"https://api.github.com/users/gdha/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gdha/subscriptions","organizations_url":"https://api.github.com/users/gdha/orgs","repos_url":"https://api.github.com/users/gdha/repos","events_url":"https://api.github.com/users/gdha/events{/privacy}","received_events_url":"https://api.github.com/users/gdha/received_events","type":"User","site_admin":false},"labels":[{"id":476998835,"url":"https://api.github.com/repos/gdha/rear-automated-testing/labels/enhancement","name":"enhancement","color":"84b6eb","default":true}],"state":"open","locked":false,"assignee":{"login":"gdha","id":888633,"avatar_url":"https://avatars2.githubusercontent.com/u/888633?v=4","gravatar_id":"","url":"https://api.github.com/users/gdha","html_url":"https://github.com/gdha","followers_url":"https://api.github.com/users/gdha/followers","following_url":"https://api.github.com/users/gdha/following{/other_user}","gists_url":"https://api.github.com/users/gdha/gists{/gist_id}","starred_url":"https://api.github.com/users/gdha/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gdha/subscriptions","organizations_url":"https://api.github.com/users/gdha/orgs","repos_url":"https://api.github.com/users/gdha/repos","events_url":"https://api.github.com/users/gdha/events{/privacy}","received_events_url":"https://api.github.com/users/gdha/received_events","type":"User","site_admin":false},"assignees":[{"login":"gdha","id":888633,"avatar_url":"https://avatars2.githubusercontent.com/u/888633?v=4","gravatar_id":"","url":"https://api.github.com/users/gdha","html_url":"https://github.com/gdha","followers_url":"https://api.github.com/users/gdha/followers","following_url":"https://api.github.com/users/gdha/following{/other_user}","gists_url":"https://api.github.com/users/gdha/gists{/gist_id}","starred_url":"https://api.github.com/users/gdha/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gdha/subscriptions","organizations_url":"https://api.github.com/users/gdha/orgs","repos_url":"https://api.github.com/users/gdha/repos","events_url":"https://api.github.com/users/gdha/events{/privacy}","received_events_url":"https://api.github.com/users/gdha/received_events","type":"User","site_admin":false}],"milestone":null,"comments":0,"created_at":"2017-12-11T19:59:20Z","updated_at":"2018-01-01T11:37:28Z","closed_at":null,"author_association":"OWNER","body":"On the client first create directories `/root/.duply/duply-client`\r\n````\r\n# grep -v \\# conf \r\nGPG_KEY=\"$(cat /root/root.gpgkey)\"\r\nGPG_PW='vagrant'\r\nGPG_OPTS='--trust-model always'\r\nTARGET='sftp://root@server//root/backup'\r\nSOURCE='/'\r\nMAX_AGE=1\r\nMAX_FULL_BACKUPS=1\r\nMAX_FULLS_WITH_INCRS=1\r\nVERBOSITY=5\r\nTEMP_DIR=/tmp\r\n\r\n# cat exclude\r\n/sys\r\n/proc\r\n````\r\nAnd, on the server create directory `/root/backup`. Run a check:\r\n````\r\n[root@client duply-client]# echo yes | duply duply-client status\r\nStart duply v1.11.3, time is 2017-12-11 20:53:01.\r\nUsing profile '/root/.duply/duply-client'.\r\nUsing installed duplicity version 0.7.13.1, python 2.7.5, gpg 2.0.22 (Home: ~/.gnupg), awk 'GNU Awk 4.0.2', grep 'grep (GNU grep) 2.20', bash '4.2.46(2)-release (x86_64-redhat-linux-gnu)'.\r\nAutoset found secret key of first GPG_KEY entry '07CE8E6D' for signing.\r\nChecking TEMP_DIR '/tmp' is a folder and writable (OK)\r\nTest - Encrypt to '07CE8E6D' & Sign with '07CE8E6D' (OK)\r\nTest - Decrypt (OK)\r\nTest - Compare (OK)\r\nCleanup - Delete '/tmp/duply.11990.1513021981_*'(OK)\r\n\r\n--- Start running command STATUS at 20:53:01.939 ---\r\nUsing archive dir: /root/.cache/duplicity/duply_duply-client\r\nUsing backup name: duply_duply-client\r\nImport of duplicity.backends.acdclibackend Succeeded\r\nImport of duplicity.backends.azurebackend Succeeded\r\nImport of duplicity.backends.b2backend Succeeded\r\nImport of duplicity.backends.botobackend Succeeded\r\nImport of duplicity.backends.cfbackend Succeeded\r\nImport of duplicity.backends.dpbxbackend Failed: No module named dropbox\r\nImport of duplicity.backends.gdocsbackend Succeeded\r\nImport of duplicity.backends.giobackend Succeeded\r\nImport of duplicity.backends.hsibackend Succeeded\r\nImport of duplicity.backends.hubicbackend Succeeded\r\nImport of duplicity.backends.imapbackend Succeeded\r\nImport of duplicity.backends.lftpbackend Succeeded\r\nImport of duplicity.backends.localbackend Succeeded\r\nImport of duplicity.backends.mediafirebackend Succeeded\r\nImport of duplicity.backends.megabackend Succeeded\r\nImport of duplicity.backends.multibackend Succeeded\r\nImport of duplicity.backends.ncftpbackend Succeeded\r\nImport of duplicity.backends.onedrivebackend Succeeded\r\nImport of duplicity.backends.par2backend Succeeded\r\nImport of duplicity.backends.pydrivebackend Succeeded\r\nImport of duplicity.backends.rsyncbackend Succeeded\r\nImport of duplicity.backends.ssh_paramiko_backend Succeeded\r\nImport of duplicity.backends.ssh_pexpect_backend Succeeded\r\nImport of duplicity.backends.swiftbackend Succeeded\r\nImport of duplicity.backends.sxbackend Succeeded\r\nImport of duplicity.backends.tahoebackend Succeeded\r\nImport of duplicity.backends.webdavbackend Succeeded\r\nssh: Connected (version 2.0, client OpenSSH_7.4)\r\nssh: Authentication (publickey) successful!\r\nssh: [chan 0] Opened sftp connection (server version 3)\r\nMain action: collection-status\r\n================================================================================\r\nduplicity 0.7.13.1 (June 18, 2017)\r\nArgs: /bin/duplicity collection-status --name duply_duply-client --encrypt-key 07CE8E6D --sign-key 07CE8E6D --verbosity 5 --gpg-options --trust-model always sftp://root@server//root/backup\r\nLinux client.box 3.10.0-693.11.1.el7.x86_64 #1 SMP Mon Dec 4 23:52:40 UTC 2017 x86_64 x86_64\r\n/bin/python2 2.7.5 (default, Aug  4 2017, 00:39:18) \r\n[GCC 4.8.5 20150623 (Red Hat 4.8.5-16)]\r\n================================================================================\r\nLocal and Remote metadata are synchronized, no sync needed.\r\nLast full backup date: none\r\nCollection Status\r\n-----------------\r\nConnecting with backend: BackendWrapper\r\nArchive dir: /root/.cache/duplicity/duply_duply-client\r\n\r\nFound 0 secondary backup chains.\r\nNo backup chains with active signatures found\r\nNo orphaned or incomplete backup sets found.\r\nUsing temporary directory /tmp/duplicity-IMxnCl-tempdir\r\n--- Finished state OK at 20:53:02.601 - Runtime 00:00:00.662 ---\r\n````"},"comment":{"url":"https://api.github.com/repos/gdha/rear-automated-testing/issues/comments/354648924","html_url":"https://github.com/gdha/rear-automated-testing/issues/48#issuecomment-354648924","issue_url":"https://api.github.com/repos/gdha/rear-automated-testing/issues/48","id":354648924,"user":{"login":"gdha","id":888633,"avatar_url":"https://avatars2.githubusercontent.com/u/888633?v=4","gravatar_id":"","url":"https://api.github.com/users/gdha","html_url":"https://github.com/gdha","followers_url":"https://api.github.com/users/gdha/followers","following_url":"https://api.github.com/users/gdha/following{/other_user}","gists_url":"https://api.github.com/users/gdha/gists{/gist_id}","starred_url":"https://api.github.com/users/gdha/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gdha/subscriptions","organizations_url":"https://api.github.com/users/gdha/orgs","repos_url":"https://api.github.com/users/gdha/repos","events_url":"https://api.github.com/users/gdha/events{/privacy}","received_events_url":"https://api.github.com/users/gdha/received_events","type":"User","site_admin":false},"created_at":"2018-01-01T11:37:28Z","updated_at":"2018-01-01T11:37:28Z","author_association":"OWNER","body":"The recover part fails with duply:\r\n````\r\n++ PASSPHRASE=vagrant\r\n++ duplicity --name duply_duply-client --encrypt-key A1A86DCB --sign-key A1A86DCB --verbosity 5 --gpg-options '--trust-model always' -t now sftp://root@server//root/backup /mnt/local/restore\r\n...\r\nAdded incremental Backupset (start_time: Fri Dec 29 10:14:47 2017 / end_time: Fri Dec 29 10:46:53 2017)\r\nAdded incremental Backupset (start_time: Fri Dec 29 10:46:53 2017 / end_time: Fri Dec 29 12:02:03 2017)\r\nAdded incremental Backupset (start_time: Fri Dec 29 12:02:03 2017 / end_time: Fri Dec 29 14:12:33 2017)\r\nAdded incremental Backupset (start_time: Fri Dec 29 14:12:33 2017 / end_time: Fri Dec 29 14:21:09 2017)\r\nAdded incremental Backupset (start_time: Fri Dec 29 14:21:09 2017 / end_time: Fri Dec 29 14:28:33 2017)\r\nAdded incremental Backupset (start_time: Fri Dec 29 14:28:33 2017 / end_time: Fri Dec 29 14:34:21 2017)\r\nAdded incremental Backupset (start_time: Fri Dec 29 14:34:21 2017 / end_time: Fri Dec 29 14:37:12 2017)\r\nAdded incremental Backupset (start_time: Fri Dec 29 14:37:12 2017 / end_time: Fri Dec 29 19:06:21 2017)\r\nAdded incremental Backupset (start_time: Fri Dec 29 19:06:21 2017 / end_time: Mon Jan  1 07:27:57 2018)\r\nAdded incremental Backupset (start_time: Mon Jan  1 07:27:57 2018 / end_time: Mon Jan  1 08:31:23 2018)\r\nLast full backup date: Fri Dec 29 10:14:47 2017\r\nProcessing local manifest /root/.cache/duplicity/duply_duply-client/duplicity-full.20171229T101447Z.manifest (3680117)\r\nFound 4 volumes in manifest\r\nProcessing local manifest /root/.cache/duplicity/duply_duply-client/duplicity-inc.20171229T101447Z.to.20171229T104653Z.manifest (2164)\r\nFound 1 volumes in manifest\r\nProcessing local manifest /root/.cache/duplicity/duply_duply-client/duplicity-inc.20171229T104653Z.to.20171229T120203Z.manifest (3482)\r\nFound 1 volumes in manifest\r\nProcessing local manifest /root/.cache/duplicity/duply_duply-client/duplicity-inc.20171229T120203Z.to.20171229T141233Z.manifest (2387)\r\nFound 1 volumes in manifest\r\nProcessing local manifest /root/.cache/duplicity/duply_duply-client/duplicity-inc.20171229T141233Z.to.20171229T142109Z.manifest (2243)\r\nFound 1 volumes in manifest\r\nGPG error detail: Traceback (most recent call last):\r\n  File \"/bin/duplicity\", line 1540, in <module>\r\n    with_tempdir(main)\r\n  File \"/bin/duplicity\", line 1534, in with_tempdir\r\n    fn()\r\n  File \"/bin/duplicity\", line 1385, in main\r\n    do_backup(action)\r\n  File \"/bin/duplicity\", line 1462, in do_backup\r\n    restore(col_stats)\r\n  File \"/bin/duplicity\", line 728, in restore\r\n    restore_get_patched_rop_iter(col_stats)):\r\n  File \"/usr/lib64/python2.7/site-packages/duplicity/patchdir.py\", line 558, in Write_ROPaths\r\n    for ropath in rop_iter:\r\n  File \"/usr/lib64/python2.7/site-packages/duplicity/patchdir.py\", line 521, in integrate_patch_iters\r\n    for patch_seq in collated:\r\n  File \"/usr/lib64/python2.7/site-packages/duplicity/patchdir.py\", line 389, in yield_tuples\r\n    setrorps(overflow, elems)\r\n  File \"/usr/lib64/python2.7/site-packages/duplicity/patchdir.py\", line 378, in setrorps\r\n    elems[i] = iter_list[i].next()\r\n  File \"/usr/lib64/python2.7/site-packages/duplicity/patchdir.py\", line 121, in difftar2path_iter\r\n    tarinfo_list = [tar_iter.next()]\r\n  File \"/usr/lib64/python2.7/site-packages/duplicity/patchdir.py\", line 344, in next\r\n    self.set_tarfile()\r\n  File \"/usr/lib64/python2.7/site-packages/duplicity/patchdir.py\", line 332, in set_tarfile\r\n    assert not self.current_fp.close()\r\n  File \"/usr/lib64/python2.7/site-packages/duplicity/dup_temp.py\", line 227, in close\r\n    assert not self.fileobj.close()\r\n  File \"/usr/lib64/python2.7/site-packages/duplicity/gpg.py\", line 297, in close\r\n    self.gpg_failed()\r\n  File \"/usr/lib64/python2.7/site-packages/duplicity/gpg.py\", line 264, in gpg_failed\r\n    raise GPGError(msg)\r\nGPGError: GPG Failed, see log below:\r\n===== Begin GnuPG log =====\r\n===== End GnuPG log =====\r\n\r\n\r\nGPGError: GPG Failed, see log below:\r\n===== Begin GnuPG log =====\r\n===== End GnuPG log =====\r\n````\r\nthen it hangs forever... try the same on the command line:\r\n````\r\n# /sbin/duplicity --name duply_duply-client --encrypt-key A1A86DCB --sign-k\r\ney A1A86DCB --verbosity 5 --gpg-options \"--trust-model always\" -t now sftp://root@server//root/backup /mnt/local/restore\r\nUsing archive dir: /root/.cache/duplicity/duply_duply-client\r\nUsing backup name: duply_duply-client\r\n...\r\nAdded incremental Backupset (start_time: Fri Dec 29 19:06:21 2017 / end_time: Mon Jan  1 07:27:57 2018)\r\nAdded incremental Backupset (start_time: Mon Jan  1 07:27:57 2018 / end_time: Mon Jan  1 08:31:23 2018)\r\nLast full backup date: Fri Dec 29 10:14:47 2017\r\nPASSPHRASE variable not set, asking user.\r\nGnuPG passphrase: \r\nProcessing local manifest /root/.cache/duplicity/duply_duply-client/duplicity-full.20171229T101447Z.manifest (3680117)\r\nFound 4 volumes in manifest\r\nProcessing local manifest /root/.cache/duplicity/duply_duply-client/duplicity-inc.20171229T101447Z.to.20171229T104653Z.manifest (2164)\r\nFound 1 volumes in manifest\r\nProcessing local manifest /root/.cache/duplicity/duply_duply-client/duplicity-inc.20171229T104653Z.to.20171229T120203Z.manifest (3482)\r\nFound 1 volumes in manifest\r\nProcessing local manifest /root/.cache/duplicity/duply_duply-client/duplicity-inc.20171229T120203Z.to.20171229T141233Z.manifest (2387)\r\nFound 1 volumes in manifest\r\nProcessing local manifest /root/.cache/duplicity/duply_duply-client/duplicity-inc.20171229T141233Z.to.20171229T142109Z.manifest (2243)\r\nFound 1 volumes in manifest\r\nKilled\r\n\r\n````\r\n-> suspect it waits on the pass-phrase entry, however, the **killed** is not very promising.\r\n-> conclusion: using **duply** is **not** working properly anymore IMHO"}}
{"actor":{"display_login":"gdha"}}