# Duplicati-cli backup error

**URL:** https://forum.duplicati.com/t/duplicati-cli-backup-error/480
**Category:** Support
**Created:** [September 7, 2017, 2:18pm UTC](https://forum.duplicati.com/t/duplicati-cli-backup-error/480 "2017-09-07T14:18:09Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![jl\_678](https://forum.duplicati.com/user_avatar/forum.duplicati.com/jl_678/32/130_2.png) [@jl\_678](https://forum.duplicati.com/u/jl_678)
#### Post date: [September 7, 2017, 2:18pm UTC](https://forum.duplicati.com/t/duplicati-cli-backup-error/480/1 "2017-09-07T14:18:09Z")

</div>

Hi,

I am not sure if this is a bug or user error because I am new to Duplicati. I am running a backup with the following command using version 2.0.2.1\_beta\_2017-08-01. (On another note, is this a solid version or should I be testing with another one?)

`duplicati-cli backup b2://<bucketName> '/path-to-directory/' --b2-accountid '<acctID>' --b2-applicationkey '<appKey>'`

When I run this I get the following error:

```
System.IO.IOException: The source folder /path-to-directory/<acctID> does not exist, aborting backup
  at Duplicati.Library.Main.Controller+<>c __DisplayClass16_0.<Backup>b__ 0 (Duplicati.Library.Main.BackupResults result) <0x7fa8a37178 + 0x00b6c> in <filename unknown>:0 
  at Duplicati.Library.Main.Controller.RunAction[T] (Duplicati.Library.Main.T result, System.String[]& paths, IFilter& filter, System.Action`1 method) <0x7fa9edd000 + 0x00173> in <filename unknown>:0 

```

So why is it adding the accountID to the path? Something seems very odd. Is this a bug or did I do something wrong?

TIA!

---

<div class="post-metadata">

### Author: ![jl\_678](https://forum.duplicati.com/user_avatar/forum.duplicati.com/jl_678/32/130_2.png) [@jl\_678](https://forum.duplicati.com/u/jl_678)
#### Post date: [September 7, 2017, 8:57pm UTC](https://forum.duplicati.com/t/duplicati-cli-backup-error/480/2 "2017-09-07T20:57:03Z")

</div>

In case it is not clear from my post, all of the data encapsulated in ‘\<\>’ are actual information from B2. I removed them from the post for security purposes, but you should assume that all of those include correct information from B2.

---

<div class="post-metadata">

### Author: ![kenkendk](https://forum.duplicati.com/user_avatar/forum.duplicati.com/kenkendk/32/5305_2.png) [@kenkendk](https://forum.duplicati.com/u/kenkendk)
#### Post date: [September 11, 2017, 11:16am UTC](https://forum.duplicati.com/t/duplicati-cli-backup-error/480/3 "2017-09-11T11:16:05Z")

</div>

> [@jl\_678](#):
>
> So why is it adding the accountID to the path? Something seems very odd. Is this a bug or did I do something wrong?

Duplicati uses `--option=value` , so you need to replace some spaces with `=` marks. Also, depending on your shell, you need to use double quotes instead of single quotes:

```plaintext
duplicati-cli backup "b2://<bucketName>" "/path-to-directory/" --b2-accountid="<acctID>" --b2-applicationkey="<appKey>"

```

---

<div class="post-metadata">

### Author: ![jl\_678](https://forum.duplicati.com/user_avatar/forum.duplicati.com/jl_678/32/130_2.png) [@jl\_678](https://forum.duplicati.com/u/jl_678)
#### Post date: [September 11, 2017, 12:08pm UTC](https://forum.duplicati.com/t/duplicati-cli-backup-error/480/4 "2017-09-11T12:08:57Z")

</div>

Hi,

These instructions solved it and it is now working properly.

Thank you!
