Basic help with CLI

New to Duplicacy. I ran some tests using Web-UI. However, every command I run in CLI yields this:

$ duplicacy list -a
Repository has not been initialized

But wasn’t the repository already initialized by the Web-UI???

Specifically, I created some test backups in B2 using the Web-UI, and now need to clean them. Referring to this forum post, which says that prune has to be run using CLI.

So I removed the snapshot folders in B2, and am now trying to run duplicacy prune -a -exhaustive. But I can’t even get (simple?) list to work.

You need to run CLI commands in the initialized repository, for example, temporary repositories that web guides creates — you would cd there before running the CLI commands. Or you could init the same storage in a new temporary repository in a new folder somewhere, if you wanted to run commands other than backup.

But why do you want to use CLI if you already have everything setup in web gui?

Where does it say it? Do that in web ui. Create a prune “schedule” with all days ticked off, then edit its command arguments to what you need and run.

Under normal operation you never need to run exhaustive prune btw.

OK, successfully did that.

OK, well, that and a couple of other posts in response to deleting test backups point to using the CLI. Didn’t realize I could do it in the Web UI, and honestly, would not have thought to create a “schedule that never runs” in order to do this.

I have some other questions but want to keep this topic focused, so marking this as solved. Thanks for your help.

1 Like