# Restore Problem

**URL:** https://forum.duplicati.com/t/restore-problem/12977
**Category:** Uncategorized
**Created:** [September 1, 2021, 8:34am UTC](https://forum.duplicati.com/t/restore-problem/12977 "2021-09-01T08:34:09Z")
**Posts on this page:** 6
**Page:** 2

<div class="post-metadata">

### Author: ![PeteM](https://forum.duplicati.com/letter_avatar_proxy/v4/letter/p/9e8a1a/32.png) [@PeteM](https://forum.duplicati.com/u/PeteM)
#### Post date: [September 4, 2021, 8:07am UTC](https://forum.duplicati.com/t/restore-problem/12977/21 "2021-09-04T08:07:26Z")

</div>

> [@drwtsn32](#):
>
> Try putting a backslash in front of the quote and see if that helps:
> 
> ```plaintext
> --password="asdf\"yxcv"
> 
> ```

This works when using Duplicati.CommandLine.RecoveryTool.exe  
Thanks

---

<div class="post-metadata">

### Author: ![Tapio](https://forum.duplicati.com/user_avatar/forum.duplicati.com/tapio/32/3371_2.png) [@Tapio](https://forum.duplicati.com/u/Tapio)
#### Post date: [September 4, 2021, 10:49am UTC](https://forum.duplicati.com/t/restore-problem/12977/22 "2021-09-04T10:49:32Z")

</div>

> [@PeteM](#):
>
> Btw.: did you tell your relatives the passphrase of your encryption? In a written form?

They aren’t informed yet - but: yes. It’s all well planned. I think 🙂 Multiple media (USB, HDD and M-Disk) unencrypted in bank safe. In case of all media failure, or if most recent data are needed, all necessary instructions to get encrypted data from a 2 TB cloud service.

A lot has to be kept in mind in order to keep it simple. Even unencrypted data can be a difficulty (e.g., NTFS ownership, if NTFS… etc…) And difficulties easily lead to: “Aghh, let’s just dump it”.

---

<div class="post-metadata">

### Author: ![drwtsn32](https://forum.duplicati.com/user_avatar/forum.duplicati.com/drwtsn32/32/2591_2.png) [@drwtsn32](https://forum.duplicati.com/u/drwtsn32)
#### Post date: [September 4, 2021, 1:29pm UTC](https://forum.duplicati.com/t/restore-problem/12977/23 "2021-09-04T13:29:15Z")

</div>

> [@PeteM](#):
>
> I changed this to _Keep all backups_ on PC2 only.  
> Now database Repair on PC2 worked without any problem.

If you are only using PC2 for restores then you shouldn’t have it scheduled to do backups at all, and I agree its retention should be set to unlimited (although if you aren’t running backups it technically shouldn’t matter). If PC2 has done any changes to the back end, you’ll need to then do a database recreation on PC1! So having PC2 not modify the back end keeps PC1 happy.

---

<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: [September 4, 2021, 2:21pm UTC](https://forum.duplicati.com/t/restore-problem/12977/24 "2021-09-04T14:21:29Z")

</div>

> [@drwtsn32](#):
>
> So having PC2 not modify the back end keeps PC1 happy.

> [@PeteM](#):
>
> Now database Repair on PC2 worked without any problem.

Don’t ever set up two computers doing operations on same destination that could change it.  
Repair can change the destination to match the database, thus destroying some of the data.

Database on a given computer must match the destination. Two computers, two databases.  
Nothing keeps them in sync, so this risks getting complaints about missing and extra files…  
Message may ask you to run repair, but that’s the wrong thing to do with invalid configuration.

> [@PeteM](#):
>
> Besides the scheduled backup at 17:04 I created a duplicati.cmd file, which is envoked when the computer is shut down. All other programs are shut down when Duplicati starts. This might explain the different times of backups.

This is a similar but different risk of conflict. If you shut down while the scheduled backup is running, you would have two Duplicati running at the same time to the same destination. Difference is DB is the same one, so maybe DB access error would error out the whole backup before damage is done. You can test.

Safer plan would be to not have this setup. Less safe might be a [run-script-before](https://duplicati.readthedocs.io/en/latest/06-advanced-options/#run-script-before) that checks somehow for another Duplicati backup in progress (or maybe guesses based on times), and stops the backup run.

> <https://github.com/duplicati/duplicati/blob/b9aad24deb4a4c88bb284bce3a6ee64e1939ce9e/Duplicati/Library/Modules/Builtin/run-script-example.bat#L15-L27>

---

<div class="post-metadata">

### Author: ![PeteM](https://forum.duplicati.com/letter_avatar_proxy/v4/letter/p/9e8a1a/32.png) [@PeteM](https://forum.duplicati.com/u/PeteM)
#### Post date: [September 5, 2021, 5:06am UTC](https://forum.duplicati.com/t/restore-problem/12977/25 "2021-09-05T05:06:05Z")

</div>

@drwtsn32 and @ ts678

Thank you for your long and detailed explanation.

I will have to think over the way Duplicati is setup right now.

Let me explain the situation in more detail.

Programs used on PC1 are Microsoft Word and Excel as well as a CAD program and a special calculation program.

Results of work from Microsoft Word or Excel are synchronized to Microsoft OneDrive cloud automatically, this is not purpose of Duplicati.

Purpose of Duplicati is to save the work results from the CAD program and the calculation program.

This can be done manually by starting Duplicati every 1 or 2 hours for example.

Just in case that this is forgotten Duplicati should do backups automatically at a certain time (now set to 17:00 o´clock) and latest at shutdown of PC1.

PC2 is used only to check from time to time, whether it is possible to restore data in case of a fault of PC1. It is possible to assure, that PC2 runs Duplicati only if PC1 is shut down.

> [@ts678](#):
>
> If you shut down while the scheduled backup is running, you would have two Duplicati running at the same time to the same destination.

Is there a way to prevent PC1 shut down while scheduled or Duplicati manually started is backing up files?

---

<div class="post-metadata">

### Author: ![PeteM](https://forum.duplicati.com/letter_avatar_proxy/v4/letter/p/9e8a1a/32.png) [@PeteM](https://forum.duplicati.com/u/PeteM)
#### Post date: [September 7, 2021, 3:22am UTC](https://forum.duplicati.com/t/restore-problem/12977/26 "2021-09-07T03:22:10Z")

</div>

> [@PeteM](#):
>
> Is there a way to prevent PC1 shut down while scheduled or Duplicati manually started is backing up files?

This question is not relevant in the moment. I´m going to do some more tests to see, how Duplicati behaves in my environment.

[Previous page](https://forum.duplicati.com/t/restore-problem/12977.md?page=1)
