To upload and encrypt a folder:
$ duplicity /path/to/folder/ sftp://username@example.com/folder
To download and decrypt:
$ duplicity sftp://username@example.com/folder /path/to/folder/