Add S3 with working example.
diff --git a/README.rst b/README.rst
index d2d36a2..0ec286e 100644
--- a/README.rst
+++ b/README.rst
@@ -30,9 +30,11 @@
client:
enabled: true
target:
- engine: s3
- host: s3.domain.com
- bucket: bucketname
+ engine: dup
+ url: s3+http://bucket-name/folder-name
+ auth:
+ awsaccesskeyid: awsaccesskeyid
+ awssecretaccesskey: awssecretaccesskey
Backup client with webdav target
diff --git a/backupninja/files/dup.conf b/backupninja/files/dup.conf
index d922bd5..f7d2537 100644
--- a/backupninja/files/dup.conf
+++ b/backupninja/files/dup.conf
@@ -186,6 +186,13 @@
## Default:
desturl = {{ client.target.url }}
+{%- if client.target.auth is defined %}
+{%- if client.target.auth.awsaccesskeyid is defined %}
+awsaccesskeyid = {{ client.target.auth.awsaccesskeyid }}
+awssecretaccesskey = {{ client.target.auth.awssecretaccesskey }}
+{%- endif %}
+{%- endif %}
+
## Amazon Web Services Access Key ID and Secret Access Key, needed for backups
## to S3 buckets.
## awsaccesskeyid = YOUR_AWS_ACCESS_KEY_ID
diff --git a/backupninja/map.jinja b/backupninja/map.jinja
index 7ec451a..2a5db08 100644
--- a/backupninja/map.jinja
+++ b/backupninja/map.jinja
@@ -1,7 +1,7 @@
{% set client = salt['grains.filter_by']({
'Debian': {
- 'pkgs': ['backupninja', 'debconf-utils', 'bsd-mailx'],
+ 'pkgs': ['backupninja', 'debconf-utils', 'bsd-mailx', 'python-boto'],
'service': 'backupninja',
'report': {'email': 'root'},
'config': '/etc/default/backupninja',