# Testing backup configuration and "clean" backups

**URL:** <https://forum.duplicati.com/t/testing-backup-configuration-and-clean-backups/12602>\
**Category:** Support\
**Created:** [June 22, 2021, 6:59pm UTC](https://forum.duplicati.com/t/testing-backup-configuration-and-clean-backups/12602 "2021-06-22T18:59:32Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![ts678](https://forum.duplicati.com/letter_avatar_proxy/v4/letter/t/8491ac/32.png) [@ts678](https://forum.duplicati.com/u/ts678)\
**Post date:** [June 24, 2021, 2:29am UTC](https://forum.duplicati.com/t/testing-backup-configuration-and-clean-backups/12602/2 "2021-06-24T02:29:59Z")

</div>

Welcome to the forum @unplugged216

> [@unplugged216](#):
>
> I do not use the GUI. I am trying to automate this as much as possible.

Using the GUI then doing [Export As Command-line](https://duplicati.readthedocs.io/en/latest/03-using-the-graphical-user-interface/#exporting-a-backup-job-configuration) is a good way to set up options for CLI automation.  
This also gives you the option of using the GUI when you like, e.g. sometimes GUI restore is preferred.  
Note that CLI doesn’t directly interconnect with GUI, but sharing the database is enough to do restores.

What Duplicati version is this? From testing, I wonder if you’re trying to put new options into an old one.

[Release: 2.0.6.1 (beta) 2021-05-03](https://forum.duplicati.com/t/release-2-0-6-1-beta-2021-05-03/12311)

> S3 and Sharepoint option names on commandline now uses `-` for consistency (previously used `_`)

but if that’s the problem, get [Release: 2.0.6.3 (beta) 2021-06-17](https://forum.duplicati.com/t/release-2-0-6-3-beta-2021-06-17/12579) for an underscore-versus-dash bug fix.

[S3 Compatible](https://duplicati.readthedocs.io/en/latest/05-storage-providers/#s3-compatible) looks like it’s showing the new dash options without noting pre-2.0.6.x need underscore.

> [@unplugged216](#):
>
> How can I do a “clean” backup so I can ensure I am testing a fresh backup every time?

For a CLI backup, you delete the S3 data with some tool, then delete the local database that caches info.  
If you did the GUI export, the local DB would be at [dbpath](https://duplicati.readthedocs.io/en/latest/06-advanced-options/#dbpath). If not, a DB path is made for you and stored in  
C:\Users\you\AppData\Local\Duplicati\dbconfig.json (just a text file) based on the destination URL in use.

---

_[View the full topic](https://forum.duplicati.com/t/testing-backup-configuration-and-clean-backups/12602)._
