Getting this error

Questions about Cobian Reflector
cobhc82
Posts: 3
Joined: 17 Dec 2022, 01:55

Re: Getting this error

Post by cobhc82 »

Installed 2.1.0 and no errors anymore. Thank you
User avatar
cobian
Site Admin
Posts: 4608
Joined: 31 Oct 2020, 01:25
Location: Sweden
Contact:

Re: Getting this error

Post by cobian »

:OK
--
Luis Cobian
Cobian Backup's creator
sba923
Posts: 12
Joined: 16 Jul 2023, 22:48

Re: Getting this error

Post by sba923 »

I'm evaluating Cobian Reflector 2.4.00 as a potential replacement for the File History feature in Windows, that Microsoft has badly broken with Windows 11 22H2.

I'm getting "ERR 2023-07-16 21:29:05 An error occurred while copying [...]: The media is write protected" for each and every file in the OneDrive sync folder that is marked "online-only" (attributes = 0x00501620).

It's OK that the files don't get backed up, since I don't want the backup to pull everything from the OneDrive cloud, which would most likely cause a "disk full" error.

It's just weird that those skipped files are reported as errors, furthermore with that inappropriate error message.
User avatar
cobian
Site Admin
Posts: 4608
Joined: 31 Oct 2020, 01:25
Location: Sweden
Contact:

Re: Getting this error

Post by cobian »

This "error" is repported by the OS and forwarded by the program.
--
Luis Cobian
Cobian Backup's creator
sba923
Posts: 12
Joined: 16 Jul 2023, 22:48

Re: Getting this error

Post by sba923 »

How can you possibly get this error from a Windows system call?

Can you elaborate on how to access the file so that it prevents the Files on Demand mechanism from pulling the file from the cloud?
User avatar
cobian
Site Admin
Posts: 4608
Joined: 31 Oct 2020, 01:25
Location: Sweden
Contact:

Re: Getting this error

Post by cobian »

The CopyFileExW that I am using (an API Windows call) just will try to copy the files but because they don't physically exist then the OS resports that error.
--
Luis Cobian
Cobian Backup's creator
sba923
Posts: 12
Joined: 16 Jul 2023, 22:48

Re: Getting this error

Post by sba923 »

What value are you using for dwCopyFlags?

If that value is 0, copying an "online-only" file will not fail, but will pull the file from the cloud via the OneDrive sync client.

Obviously that's not what happens, so you're probably using some non-zero flag combination.

I have a C++ test program ready to check what happens in that case...
User avatar
cobian
Site Admin
Posts: 4608
Joined: 31 Oct 2020, 01:25
Location: Sweden
Contact:

Re: Getting this error

Post by cobian »

Yes, I'm using another combination of flags, but I've been doing that sicnce the days before the cloud so I'll re-visit this part of the code.
--
Luis Cobian
Cobian Backup's creator
sba923
Posts: 12
Joined: 16 Jul 2023, 22:48

Re: Getting this error

Post by sba923 »

Great! So we can expect an update where a backup of the OneDrive sync folder will backup what's "available on this device" and silently skip what's "online only"!

That's a must for me switching from Windows' File History to Cobian Reflector!

If you need testers for a preview build, you can count me in!

Stéphane BARIZIEN
Charenton-le-Pont, France
www.linkedin.com/in/sbarizien
Twitter: @SBarizien
GitHub: sba923
User avatar
cobian
Site Admin
Posts: 4608
Joined: 31 Oct 2020, 01:25
Location: Sweden
Contact:

Re: Getting this error

Post by cobian »

:OK
--
Luis Cobian
Cobian Backup's creator
Post Reply