Skip to content

B2: delete files during sync instead of marked hidden (necessitating separate cleanup) #1547

Closed

Description

@jpap

As discussed on the forum, it would be of benefit to have an opt-in for a rclone sync that permanently deletes files during a sync. Presently files are hidden, and require a separate cleanup run to be removed permanently (see #462).

This would have a number of benefits:

  • Minimized bucket disk space (and storage cost) if there are large additions to the bucket during sync because we don't have to wait until the sync completes to recover the space with a cleanup. This makes it more straightforward for a user implementing a backup system with quota, for example, by purging old backups stored locally prior to syncing. On sync with --delete-before, the remote B2 bucket is then kept within a given quota (storage cost), for example the 10GB free tier.
  • By leveraging --fast-list during during the sync these file deletions are unmetered (i.e. no additional Class C transactions as b2_delete_file_version are free Class A).
  • Users do not have to separately run a rclone cleanup.

Activity

  1. added this to the v1.38 milestone on Jul 22, 2017
  2. ncw commented on Jul 23, 2017

    @ncw
    Member
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions