# Duplicati shows 0 bytes, 0 versions despite successful backup and restore

**URL:** <https://forum.duplicati.com/t/duplicati-shows-0-bytes-0-versions-despite-successful-backup-and-restore/13254>\
**Category:** Support\
**Created:** [October 18, 2021, 6:20pm UTC](https://forum.duplicati.com/t/duplicati-shows-0-bytes-0-versions-despite-successful-backup-and-restore/13254 "2021-10-18T18:20:57Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![haus](https://forum.duplicati.com/letter_avatar_proxy/v4/letter/h/5f8ce5/32.png) [@haus](https://forum.duplicati.com/u/haus)\
**Post date:** [October 18, 2021, 8:16pm UTC](https://forum.duplicati.com/t/duplicati-shows-0-bytes-0-versions-despite-successful-backup-and-restore/13254/5 "2021-10-18T20:16:37Z")

</div>

Actually I just found it on Github (I had only searched here before posting).

> <https://github.com/duplicati/duplicati/issues/4344>
>
> \- \[x\] I have searched open and closed issues for duplicates.
> 
> \----------------…------------------------
> 
> \## Environment info
> 
> 
> \- \*\*Duplicati version\*\*: 2.0.5.1\_beta\_2020-01-18
> \- \*\*Operating system\*\*: Windows 10
> \- \*\*Backend\*\*: Local SATA Harddrive, USB Harddrive, USB Stick
> 
> \## Description
> 
> I set up a \`--run-script-before\` batch script to return \`exit 1\` when my drive is not attached so that I will not get warnings. The backup information in the home tab of the web server does however change to a 'zero state' after silently aborting the backup due to exit 1 code.
> 
> On the forum I made a thread where the problem is discussed: \[https://forum.duplicati.com/t/warning-folder-x-does-not-exist/10894/2\](https://forum.duplicati.com/t/warning-folder-x-does-not-exist/10894/2) .
> 
> Another issue on Github is: \[https://github.com/duplicati/duplicati/issues/4222\](https://github.com/duplicati/duplicati/issues/4222) which is about a fatal error, also the \`--run-script-after\` command is also invoked. My issue is about the zero job statistics. When solving one might want to tackle both issues at the same time since there is a good chance the same parts of the code are involved. 
> 
> \## Steps to reproduce
> 
> 1. Create new backup, as basic as possible
> 2. Run the new backup in order to fill the current backup state information
> 2. Add run-script-before as advanced step, point it to \`C:\\Duplicati\\check\_if\_X\_exists.bat\`: 
> \`\`\`
> exit 1
> \`\`\`
> 3. Run backup again.
> 
> 
> 
> \- \*\*Actual result\*\*:
> The backup information which contained the size, date of last backup and versions changes to all zeros:
> \`\`\`
> Last successful backup:
> Today at 12:45 PM (took 00:00:00)
> Run now 
> Next scheduled run:
> Tomorrow at 12:45 PM
> Source:
> 0 bytes
> Backup:
> 0 bytes / 0 Versions
> \`\`\`
> \- \*\*Expected result\*\*:
> I expect that the information of the last 'successful' / 'not aborted' backup will be displayed.
> 
> \## Screenshots
> 
> 
> A screenshot of an empty backup state 'Backup\_Noord' and a backup with information 'Test\_backup'
> !\[image\](https://user-images.githubusercontent.com/62965899/96013867-089df000-0e46-11eb-9c98-e5121ab981b6.png)
> 
> \## Debug log
> 
> 
> This is the log from About -\> Show log -\> Live. I think my log looks normal.
> \`\`\`
> Oct 14, 2020 5:55 PM: Aborting operation by request, requested result: Normal
> Oct 14, 2020 5:54 PM: Cannot open WMI provider \\\\localhost\\root\\virtualization\\v2. Hyper-V is probably not installed.
> Oct 14, 2020 5:54 PM: Cannot find any MS SQL Server instance. MS SQL Server is probably not installed.
> Oct 14, 2020 5:54 PM: Using WMI provider \\\\localhost\\root\\virtualization\\v2 
> \`\`\`
> 
> Many thanks for reading this issue. I am happy to assist in any way.

And that referred me to this thread:

> [@Warning Folder X:/ Does Not Exist](https://forum.duplicati.com/t/warning-folder-x-does-not-exist/10894/16):
>
> FYI I did a test to see if I could persuade it to record empty statistics in a job log or email report. It wouldn’t. Maybe if you get a feel for how results flow, failed jobs can someday go into the job logs not the server log.

which I didn’t find either.

I’m going to change my job back to run-script-before-required, which seems to still work correctly.

---

_[View the full topic](https://forum.duplicati.com/t/duplicati-shows-0-bytes-0-versions-despite-successful-backup-and-restore/13254)._
