Skip to content

[Bug]: Incorrect backup errors counts #2061

Description

@AndrePons-Git

Describe the bug

This sounds similar issue as #2006. reproduced on Windows 2022 and 2019, when the user doing the backup is not part of the Administrator group.

D:\Program Files\PlakarWin110-Beta7>plakar at @bkpstore backup d:\tobackup
60137e69: OK ✓ /d:/tobackup
60137e69: OK ✓ /d:/
60137e69: OK ✓ /
60137e69: KO ✘ d:\tobackup\Admin: open d:\tobackup\Admin: Accès refusé.
60137e69: OK ✓ /d:/tobackup/Admin
60137e69: OK ✓ /d:/tobackup/INC1
60137e69: KO ✘ /d:/tobackup/inc3NoUsers.txt: open d:\tobackup\inc3NoUsers.txt: Accès refusé.
60137e69: KO ✘ /d:/tobackup/INC2 NoUsers.txt: open d:\tobackup\INC2 NoUsers.txt: Accès refusé.
60137e69: KO ✘ d:\tobackup\subdir1\susubdir2AdminOnly: open d:\tobackup\subdir1\susubdir2AdminOnly: Accès refusé.
60137e69: OK ✓ /d:/tobackup/subdir1
60137e69: OK ✓ /d:/tobackup/subdir1/fic-subdir1
60137e69: OK ✓ /d:/tobackup/subdir1/New1.bmp
60137e69: OK ✓ /d:/tobackup/subdir1/susubdir1
60137e69: OK ✓ /d:/tobackup/subdir1/fic1-subdir1
60137e69: OK ✓ /d:/tobackup/subdir1/susubdir1/fic-susubdir1
60137e69: OK ✓ /d:/tobackup/subdir1/susubdir1/img1.bmp
60137e69: OK ✓ /d:/tobackup/inc5.txt
60137e69: OK ✓ /d:/tobackup/subdir1/susubdir1/sususubdir1/fic-sususubdir1
60137e69: OK ✓ /d:/tobackup/subdir1/susubdir2AdminOnly
60137e69: backup completed with 2 errors in 109.8235ms (in: 5.2 KiB, out: 2.4 MiB)

D:\Program Files\PlakarWin110-Beta7>plakar at @bkpstore info -errors 60137e69
/d:/tobackup/INC2 NoUsers.txt: open d:\tobackup\INC2 NoUsers.txt: Accès refusé.
/d:/tobackup/inc3NoUsers.txt: open d:\tobackup\inc3NoUsers.txt: Accès refusé.

We see 4 access refused errors during the backup. But 2 only errors are counted at the end.
Also 2 directories are once KO first, and then OK + See the syntax difference with / and
60137e69: KO ✘ d:\tobackup\Admin: open d:\tobackup\Admin: Accès refusé.
60137e69: OK ✓ /d:/tobackup/Admin

Steps to reproduce

run local FS source backup to local FS store.
The backup has to generate errors on files and directories.

Expected behavior

Correct log & status infos on errors

Actual behavior

incorrect logging and error info

Plakar version

1.10 Beta 7

Plugin versions

default beta7

OS, version and architecture

windows server 2022FR and 2019US

Store location

local FS

Backup source location

local FS

Restore destination (if applicable)

No response

Debug output

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions