CommandLineError: argument --gpg-options: expected one argument
I have:
- ([x] when completed)
-
searched https://gitlab.com/duplicity/duplicity/-/issues for similar issues. If you find a similar issue and the issue is still open, add a comment to the existing issue instead of opening a new one. If you find a Closed issue that seems like it is the same thing that you're experiencing, open a new issue and include a link to the original issue in the body of your new one. -
tested that this issue still occurs on the latest stable snap (install instructions: https://snapcraft.io/duplicity), please include the snap version ( snap info duplicity | grep installed
) output:installed: x.xx.xx (xx)
- [] ideally, tested that this issue still occurs on the latest edge snap, if you can test without risking your data. Please include the snap version output:
installed: x.xx.xx (xx)
Summary
I am running a backup command trying to use gpg-options and it fails with the error message
CommandLineError: argument --gpg-options: expected one argument
This worked without problems in version 0.8.12
Environment
Ubuntu 24.04LTS
(duplicity --version) duplicity 2.2.3
(command line used) /snap/bin/duplicity full --allow-source-mismatch --volsize 1000 --name ${FTP_PREFIX}etc_daily --encrypt-key $BACKUP_GPG_KEY_ID --gpg-options "--homedir=/root/.gnupg" --include /etc --exclude '**' / ${BACKUPTARGETSTRING/etc_full
Steps to reproducee
Run a command using --gpg-options
What is the current bug behaviour?
CommandLineError: argument --gpg-options: expected one argument
What is the expected correct behaviour?
Back up data...
Edited by Cronos Titan