Is there a way to remove hide flags in Backblaze (B2)?

What is the problem you are having with rclone?

I have accidentally 'deleted' every folder & files within my bucket via my web application, luckily Backblaze just sets a most recent version of the file to 0kb with a hide file marker. I have tried so many different ways to try and remove these specific files to restore all of the content but to no avail. In all instances, 0 files would be deleted if not a dry run.

Run the command 'rclone version' and share the full output of the command.

rclone v1.65.1

  • os/version: darwin 14.2.1 (64 bit)

  • os/kernel: 23.2.0 (arm64)

  • os/type: darwin

  • os/arch: arm64 (ARMv8 compatible)

  • go/version: go1.21.5

  • go/linking: dynamic

  • go/tags: none

Which cloud storage system are you using? (eg Google Drive)


The command you were trying to run (eg rclone copy /tmp remote:tmp)

rclone --dry-run --delete-excluded --metadata-include "kind=application/x-bz-hide-marker"  delete remote:bucket-name -P -v
rclone --dry-run --delete-excluded --metadata-include "kind=application/x-bz-hide-marker"  delete remote:bucket-name -P -v --b2-versions
rclone --dry-run --max-size 1K delete remote:bucket-name -P  --delete-excluded

Please run 'rclone config redacted' and share the full output. If you get command not found, please make sure to update rclone.

type = b2
account = XXX
key = XXX

As I understand B2 versioning what you can do is to list old versions:

rclone ls Searches: --b2-version-at "2024-01-04T11:10:00.000Z"

and restore them to another destination:

rclone copy Searches: NewDestination: --b2-version-at "2024-01-04T11:10:00.000Z"

but I am not aware of any method using rclone to restore old versions "in place"

The way how you approach it is not going to work.

Use --b2-version-at to operate on past state of your bucket.

And investigate what B2 console has to offer - maybe they have some tools to restore bucket state using past versions.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.