Skip to content

Bucket versioning

Versioning decides whether a bucket keeps the earlier version of a file when the file is changed or deleted. Open it with Connection Actions → Versioning… while the remote pane is inside the bucket (on a connection to a single bucket, anywhere). See S3 connection actions and buckets for when the row is live.

Saving a file’s metadata in a bucket that keeps versions adds a new version of that file.

The sheet is titled with the bucket’s name, reads the bucket’s current state, and offers the one change that makes sense from there.

A bucket is in one of three states, and it is not a simple on/off switch. A bucket that was never versioned and one where versioning is suspended look alike from the outside, but they are not the same.

StateWhat the sheet tells youWhat it means for your filesChange on offer
Never switched on”Versioning has never been switched on for this bucket, so only the current version of each file is kept.”A changed or deleted file is gone; nothing earlier is kept.Turn On Versioning
On”Versioning is on. Every time a file is changed or deleted, the earlier version is kept.”Every earlier version stays, and counts toward your storage costs.Suspend Versioning (not for a bucket with Object Lock, see below)
Suspended”Versioning is suspended. Changes no longer keep earlier versions, but the versions stored before stay.”New changes keep no earlier version again, but everything stored while versioning was on is still there.Turn On Versioning

Once versioning has been switched on it can be suspended later but not removed. A bucket never goes back to “never switched on”. Next to the button the sheet says: “Once switched on, versioning can be suspended later but not removed. While it is on, every earlier version of a file is kept and counts toward your storage costs.”

Suspend Versioning stops new versions from being kept. It does not remove any version that is already stored: “every earlier version stays, and keeps counting toward your storage costs until it is deleted.” This sheet has no way to delete versions. To look at, restore or delete the earlier versions of one file, see Version history and deleted files.

Turning versioning back on from the suspended state keeps earlier versions again every time a file is changed or deleted, and those count toward your storage costs, too.

A bucket that uses Object Lock needs versioning, so its versioning cannot be switched off. For such a bucket the sheet offers no Suspend Versioning button at all and says: “This bucket uses Object Lock, so its versioning cannot be switched off.”

The same holds from the start: when you create a bucket with Object Lock, Versioning is ticked with it and cannot be cleared.

If macSCP cannot find out whether a versioned bucket uses Object Lock, it does not guess. The sheet says so (“Whether this bucket uses Object Lock could not be read, so its versioning cannot be changed here.”) and offers no suspension. Open the sheet again later.

  • “The versioning of this bucket could not be read.” or “…could not be changed.” — the request failed, and the sheet says so in red. Try again, or check the connection.
  • “Your access key is not allowed to read or change the versioning of this bucket.” — the access key lacks the permission. Use a key that has it.

Every change, including a refused one, is written to the audit log as Versioning changed.