Skip to content

Win 11: os error 32 when doing a backup of a user folder #147

@goebbe

Description

@goebbe

Testing vykar 0.16.1 on Windows 11

First, I created an initial backup for a testfolder, using the vykar-gui.
Since everything worked fine, I changed the source folder to make a backup of the whole user folder.

The following error: "os error 32" indicates errors that are due to the fact that other processes lock/ block the access to a file.
Unfortunately, in Windows, locked user files are pretty common, when doing backups of a user folder.

Probably Vykar should skip/ log/ warn and continue the backup, when stumbling over blocked files.

The info about the invalid cache is probably unrelated and due to the fact, that I changed the source/ path.

This is the output of .\vykar.exe -v in the Windows Power Shell:

=== Summary ===
  backup       FAILED: I/O error: Der Prozess kann nicht auf die Datei zugreifen, da sie von einem anderen Prozess verwendet wird. (os error 32)
  prune        skipped (backup failed)
  compact      skipped (backup failed)
  check        ok
  Duration:    1s
Error: one or more steps failed
PS C:\Program Files\Vykar> .\vykar.exe -v
 INFO Using config: C:\Users\mares\AppData\Roaming\vykar\config.yaml (user)
==> Starting backup
 WARN xattrs requested but not supported on this platform; continuing without xattrs
 INFO file cache loaded from disk sections=1 entries=0
 INFO file cache section key="\\\\?\\C:\\Users\\mares\\Documents\\testfolder" anchor=693cd9c1bc7b7cc7 entries=0
 INFO file cache: section invalid, cold start source_label="T14_Win11" reason=no section for paths ["\\\\?\\C:\\Users\\mares"] (available sections: 1)
 INFO no parent snapshot found for cold-start fallback source_label="T14_Win11"
 WARN Repository dropped with active write session
Error: I/O error: Der Prozess kann nicht auf die Datei zugreifen, da sie von einem anderen Prozess verwendet wird. (os error 32)
==> Starting prune
==> Starting compact
==> Starting check

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions