How to Run DuplicatiVerify.ps1?

Hi all,

can’t find how i can run DuplicatiVerify.ps1 in “utility-scripts” folder.

Anyone can help me?

Many thanks
Paolo

What exactly are you trying to do?

I have not run this script myself, but the python version has a bit of a description as to its purpose:

If Duplicati is producing a backup with the option --upload-verification-file,
it will produce a *-verification.json file on the backend, which can be verified
by this script. Simply run this script with the path to the backup
folder as input, and it will verify all *-verification.json files in the folder.

1 Like

Hi and thanks for reply.
I’ve a issue with duplicati. I get “hash mismatch” error after a backup and i can’t solve (tried with repair, verify with no goods).
I read about run this script to verify which files has this mistake so to delete them and retry to backup.
I don’t know how can i run.

If you weren’t using the --upload-verification-file option, then these scripts will not work. Plus, I’m guessing they would just confirm what Duplicati is telling you: that there’s a hash mismatch on one of your files.

What back end are you using (where are you storing your backup files)? One possibility is the file was not saved properly, and another is that the file was corrupted some time after being saved.

1 Like

I’m using Onedrive for business to store files. Probably (or for sure) there’s a file with this mistake. But i don’t know which one, and i don’t know how i can know that. Reading on forum i found something about DuplicatiVerify.ps1 to find the file, but i don’t understand how i can run it.
Alternatively, there’s another way to solve “Hash Mismatch”?

Many thanks

You should be able to see the name of the problematic file in the has mismatch error message. What does it show you? Depending on what type of file it is (dindex, dlist, or dblock) there may be different ways to solve the issue.

1 Like

Hi drwtsn32 and thank you very much for your interest.
Here the message i receive when lunch backup.

"
Mancata corrispondenza hash nel file “C:\Users\zwadmin\AppData\Local\Temp\dup-b9ee2213-b7d8-4278-9f9d-c75a8dcd0b6a”, hash registrato: KnPxWmTqxeLUImhL3ECpjxAqv4XfOCCzc4iIkBF+WCk=, hash effettivo YKs7YvixYYhipFjWigSmMQmOcBMWF7rCZU80prEEZCs=
"

I Can’t see any guilty files, so i don’t know who give me the error.

Thanks

Ok I wonder if this is in the testing phase. Can you confirm? Click on your backup job in the web UI, then click Show Logs. Do they show up with a Warning? Click on it to expand, do you see a Warning in Test Phase?

1

Don’t see any warning in log.
here what i see.

News Today!

Today (after 4 tentative failed to backup), all goes well.
It did a correct backup without problems (non hash mismatch error).

do i ignore hash mismatch error and hope in future backup goes well?

However i’ve read this in forum:
"I run DuplicatiVerify.ps1 from C:\Program Files\Duplicati 2\utility-scripts
And after couple minutes I saw:
**** Hash check failed for file: duplicati-20180221T192419Z.dlist.zip.aes*
So I renamed that file. Run backup. Duplicati told me to run repair so I did. And after that error message was gone."

The problem is: how can i run cripts file?

The PowerShell (.ps1) script needs local file access. I’m not sure you have that, but you can tell us.

If you don’t have files, you can use Duplicati’s usual messages, or use test from GUI Commandline.

PowerShell scripts can be trouble to start, but if they’re refused, they’ll at least tell you how to fix that.
Below is from a PowerShell window, available from Start menu (type to search) or maybe right-click.
Your system might have right-click start configured to Command Prompt, but it can start powershell.

PS C:\Program Files\Duplicati 2\utility-scripts> .\DuplicatiVerify.ps1
.\DuplicatiVerify.ps1 : File C:\Program Files\Duplicati 2\utility-scripts\DuplicatiVerify.ps1 cannot be loaded because running scripts is disabled on this system. For more information, see about_Execution_Policies at https:/go.microsoft.com/fwlink/?LinkID=135170

How do I manually run a ps1 file? has an alternative to doing a longer-term change to execution policy.
Its formatter might have swallowed a backslash. That was probably trying to say .\somescript.ps1
You see this a lot on command lines where you need to explicitly give the directory. Dot is current one.
You can alternatively use a full path starting from drive letter, or use cd command to change directory.

If you’re able to access your destination files directly, e.g. from a Command Prompt, then you can run PowerShell script (most likely) to do so as well, and files will be streamed to your system on demand.
You do have to set up the upload-verification-file beforehand, so the script will know what it should see.

If you’re not able to access files, then you can let Duplicati read the files via its test as described at top.

thanks ts678

i’ll try with Duplicati test.
By the way: error “hash mismatch” appears again. :cry: