-
-
Save oleynikd/0a2cf2952ed32bf1f899 to your computer and use it in GitHub Desktop.
| ### Installing on [Amazon Linux AMI](http://aws.amazon.com/amazon-linux-ami/) (release 2014.09) | |
| Installing using [yum](http://yum.baseurl.org). | |
| By default Amazon Linux AMI release has only AWS's yum repos, but it has EPEL (Extra Packages for Enterprise Linux) predefined but not enabled. To temporarily enable the EPEL 6 repository, use the yum command line option **--enablerepo=epel**. | |
| Run | |
| ``` | |
| sudo yum install duplicity rsync gpg python python-devel python-pip --enablerepo=epel | |
| ``` | |
| Insalling duply manually (latest version can be found [here](http://duply.net/wiki/index.php/Duply-downloads)) | |
| ``` | |
| cd ~ | |
| wget http://downloads.sourceforge.net/project/ftplicity/duply%20%28simple%20duplicity%29/1.9.x/duply_1.9.1.tgz | |
| tar -zxvf ./duply_1.9.1.tgz | |
| sudo cp ./duply_1.9.1/duply /usr/bin/ | |
| ``` | |
| Install boto for S3 support | |
| ``` | |
| sudo pip install boto | |
| ``` | |
| Test duply | |
| ``` | |
| duply -v | |
| ``` | |
| This command should output something like | |
| ``` | |
| duply version 1.9.1 | |
| (http://duply.net) | |
| Using installed duplicity version 0.6.22, python 2.6.9, gpg 2.0.25 (Home: ~/.gnupg), awk 'GNU Awk 3.1.7', bash '4.1.2(1)-release (x86_64-redhat-linux-gnu)'. | |
| ``` | |
| ### Configuring | |
| To create backup profile (ex. www) use | |
| ``` | |
| duply www create | |
| ``` | |
| Now edit default configuration (/home/ec2-user/.duply/www/conf) | |
| ``` | |
| vi /home/ec2-user/.duply/test/conf | |
| ``` | |
@felipecarballo
I had the same issue, my default version of python is 2.7 and the package require 2.6
install python26 and replace the first line in /usr/bin/duplicity:
#!/usr/bin/python
by
#!/usr/bin/python26
TARGET_USER and TARGET_PASS won't work since duply 1.10.x. Source. Use these in config:
export AWS_ACCESS_KEY_ID='XXXXXXXXXXXX'
export AWS_SECRET_ACCESS_KEY='XXXXXXXXXXXX'
I am getting "UnsupportedBackendScheme: scheme not supported in url: s3://". Though I have confirmed I have the URL format for my buckets region correct. Has anyone else seen that issue?
UnsupportedBackendScheme: scheme not supported in url: s3://s3-us-east-2.amazonaws.com/pinknose1/backup/www/
Update - I am very new to Linux so I wanted to update this in case any others run into the same issue. The workaround for me was to simply re-create the EC2 instance I was building this on. The url structure was actually fine, however at some point one or more of the fixes I had tried to apply had corrupted my duplicity install. A fresh install resolved this issue.
Hello friend! I don't know if you can help me. When try to run duplicity the following error occurs:
Traceback (most recent call last):
File "/usr/bin/duplicity", line 42, in
from duplicity import log
ImportError: No module named duplicity
Do you know what is going on?