Just getting started with duplicati. I’m trying to use the CLI on Ubuntu 18.04 LTS to box.com. Are there any example commands to help get me started?
Summary of the errors I am seeing:
The supplied option --auth-username is not supported and will be ignored
Fatal error => Error: SecureChannelFailure (The authentication or decryption has failed.)
command I am trying:
duplicati-cli backup box://box_folder_path local_directory_path --auth-username=“myemail@mydomain” --authid=“authid retrieved from https://duplicati-oauth-handler.appspot.com/”
Not much. There’s a bit in The BACKUP command, but beyond generalities, each command has its own syntax description, and each storage provider has its own options. box.com doesn’t use --auth-username.
Easy way to get started on backup, and get a working example, and also be GUI-compatible is to use GUI. Export As Command-line and run that if you like. It will also get quoting right, which is sometimes an issue.
You don’t HAVE to supply all the things the GUI gives. Some are just the default values, but they won’t hurt. duplicati-cli runs independently of GUI, so if you want GUI for restore or something, best to start there.
if you’re still on the standard Ubuntu 18.04 mono, which is also technically too old for current Duplicati, which requires mono --version of at least version 5 (and the newer Canary versions are up to 5.10).
You can upgrade here if your mono is too old, and I suggest mono-complete for least chance of issue.
Thanks. That helped a lot. I now have a successful back from the GUI (painful, as it is remote, headless server, browser over X-windows) and could export the command and duplicate via CLI. I’ll try to clean the command up and remove sensitive info and post here for anyone else looking for a sample command.