Created attachment 1174357 [details] /usr/share/backupninja/dup patch Description of problem: dup handler does not work properly with par2+s3+http:// AWS credentials, if present in the config, are NOT set in the environment unless it sees exactly "s3+http" - I have patched the source to include a less stringent regex search that allows the handler to operate properly. The error presents itself in the following manner because it is the wrapper that fails and as such looks to duplicity like a bad back-end: Error: UnsupportedBackendScheme: scheme not supported in url: par2+s3+http://bucket which occurs because this is actually failing inside the wrapper: NoAuthHandlerFound: No handler was ready to authenticate. 1 handlers were checked. ['HmacAuthV1Handler'] Check your credentials There's also a small annoyance/error fixed by this as well, which doesn't outright cause anything to fail, but is still an annoyance: /usr/share/backupninja/dup: line 119: [: : integer expression expected This part is fixed by the first half of the patch Version-Release number of selected component (if applicable): backupninja-1.0.1-5.el7.noarch How reproducible: Always Steps to Reproduce: 1. Create any.dup config with par2+s3+http://bucket as the backend (supported fine by duplicity) 2. Bash handler for .dup will NOT find AWS credentials inside the config file because the if statement skips over it due to not recognizing par2+s3+http 3. Backup fails because it doesn't not authenticate properly against AWS API
Another thing: I would have normally filed this somewhere with upstream, but 1. It seems locked/dead 2. There doesn't even seem to be a place to submit against. So this is my feeble attempt to get it fixed where I end up using it.
Thanks for the patch. Please test the latest updates from testing.
backupninja-1.0.1-8.fc24 has been submitted as an update to Fedora 24. https://bodhi.fedoraproject.org/updates/FEDORA-2016-81d724afa0
backupninja-1.0.1-8.fc23 has been submitted as an update to Fedora 23. https://bodhi.fedoraproject.org/updates/FEDORA-2016-e51c5c993b
backupninja-1.0.1-8.el5 has been submitted as an update to Fedora EPEL 5. https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2016-f636624c60
backupninja-1.0.1-8.fc22 has been submitted as an update to Fedora 22. https://bodhi.fedoraproject.org/updates/FEDORA-2016-d1e7b32673
backupninja-1.0.1-8.el6 has been submitted as an update to Fedora EPEL 6. https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2016-91941240b7
backupninja-1.0.1-8.el7 has been submitted as an update to Fedora EPEL 7. https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2016-0dc986334e
backupninja-1.0.1-8.el6 has been pushed to the Fedora EPEL 6 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2016-91941240b7
backupninja-1.0.1-8.el7 has been pushed to the Fedora EPEL 7 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2016-0dc986334e
backupninja-1.0.1-8.fc22 has been pushed to the Fedora 22 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2016-d1e7b32673
backupninja-1.0.1-8.fc23 has been pushed to the Fedora 23 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2016-e51c5c993b
backupninja-1.0.1-8.fc24 has been pushed to the Fedora 24 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2016-81d724afa0
backupninja-1.0.1-8.el5 has been pushed to the Fedora EPEL 5 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2016-f636624c60
backupninja-1.0.1-8.fc24 has been pushed to the Fedora 24 stable repository. If problems still persist, please make note of it in this bug report.
backupninja-1.0.1-8.fc23 has been pushed to the Fedora 23 stable repository. If problems still persist, please make note of it in this bug report.
backupninja-1.0.1-8.el7 has been pushed to the Fedora EPEL 7 stable repository. If problems still persist, please make note of it in this bug report.
backupninja-1.0.1-8.el5 has been pushed to the Fedora EPEL 5 stable repository. If problems still persist, please make note of it in this bug report.
backupninja-1.0.1-8.el6 has been pushed to the Fedora EPEL 6 stable repository. If problems still persist, please make note of it in this bug report.