Version history and deleted files
A bucket that keeps versions remembers every change to a file, and remembers a deletion too. This page covers the two ways macSCP shows you that memory: the version history of one file, and deleted files in the remote pane. Both work only on S3 connections, and only for a bucket whose versioning is on or was on at some point.
The history of one file
Section titled “The history of one file”Right-click a file in the remote pane and choose Show Versions…. The sheet is titled “Versions of “…”” with the file’s name.
| Column | What it shows |
|---|---|
| Modified | When this entry was written. The newest is first; click a header to sort by it. |
| Size | The size of that version. A deletion has none. |
| State | What the entry is, see below. |
| Version ID | The bucket’s own identifier for the entry. |
Above the table, Show narrows the list to All, Versions, Delete markers or Locked, and the search field filters the rows by text, with a switch for regular expressions. Under the table a footer counts the entries, or “n of m” while a filter is on.
What the State column says
Section titled “What the State column says”| State | Meaning |
|---|---|
| Current | The version you get when you open or download the file today. |
| Earlier version | Kept from before a later change. |
| Delete marker | The entry the bucket writes when a file is deleted. It stores no content; it hides the file from the plain listing while every earlier version stays. A file whose newest entry is a delete marker is a deleted file, see below. |
| Same content as the version before | A change that did not alter the bytes, for example one that only changed the file’s description. It explains why two rows look alike. |
| Locked until date (mode) | The version is under a retention. |
| Legal hold | The version is under a legal hold. |
| Checking lock… | macSCP is still reading the lock of this row. |
| Lock could not be confirmed | macSCP could not read the lock. The version may well be locked; read the sentence as “not known”, not as “not locked”. |
Locks are read only for a bucket that has Object Lock, row by row for the rows the list draws, a few at a time. A listing that worked is never held back by a lock that could not be read.
If the file has no history the sheet says “No versions were found for this file.” If your access key may not read it, it says so: “Your access key is not allowed to read this file’s version history.”
What you can do with a version
Section titled “What you can do with a version”Right-click a row. Each action works on that one version.
| Action | What it does |
|---|---|
| Open (Read-Only) | Downloads the version into a folder of its own and opens it in the application that would open the file. The copy is read-only, so an application that tries to save in place says so. Saving can never write an earlier version over the current file. The name carries the version’s ID, so two versions of one file can be open together. |
| Compare with Current Version | Opens the comparison window with the earlier version as one side and the current file as the other. |
| Download… | Asks where to save the version, proposing the file’s name with the version’s ID in brackets before the extension, and downloads it like any other download, in the transfer bar. A download of a version cannot be resumed: if the connection drops, start it again from the beginning. |
| Restore as Current… | Writes a new version with the content of the one you chose. Nothing is erased: every version stays in the history, and the restore is one more entry at the top. |
| Delete This Version… | Removes that one version for good. |
Restore and delete each ask first. The restore question reads ““file” gets a new version with the content of the version from date. Every version in the history is kept.” The delete question reads “The version of “file” from date (version ID id) is deleted for good. This cannot be undone.” Deleting one version leaves no delete marker and nothing in the history. Nothing can bring it back. If you delete the current version, the one before it becomes current.
When an action is greyed out
Section titled “When an action is greyed out”macSCP does not offer an action that cannot work. These are its reasons for greying one out:
| Reason | When |
|---|---|
| ”A delete marker has no content.” | Open, compare, download and restore need content. |
| ”This is the current version already.” | Compare and restore, on the current row. |
| ”The file is deleted at the moment, so there is no current content to compare with.” | Compare, while the newest entry is a delete marker. |
| ”Restoring needs versioning to be turned on for this bucket. While it is off or suspended, a restore would replace the current content instead of adding a version.” | Restore on a bucket whose versioning is suspended. |
| ”Restoring needs versioning to be turned on for this bucket, and macSCP could not confirm whether it is. Open the history again to retry.” | The bucket’s versioning could not be read. |
| ”This version is locked, so it cannot be deleted.” | A retention or a legal hold is on it. |
| ”The lock on this version has not been confirmed, so it cannot be deleted.” | The lock could not be read. |
| ”A delete marker is not a version with content, so it is not deleted here. To bring the file back, turn on “Show deleted files” and restore it from its row.” | Delete This Version on a delete marker. |
| ”Another change to this file’s history is still running.” | One change at a time per file. |
macSCP never asks the bucket to override a lock. A version under a retention stays where it is until the retention’s date, whoever asks; see Object Lock.
How an action ends
Section titled “How an action ends”The sheet says how each action ended, and says “could not be confirmed” instead of “failed” wherever it cannot tell. After any change it reads the history again, and you can check the answer there.
| Message | What it means |
|---|---|
| ”Restored. The file has a new current version.” | The history shows a new top entry. |
| ”The version was deleted.” | The history no longer lists it. |
| ”The restore could not be confirmed. The history was read again: check it before trying again.” | The history does not show the restore. Look before you repeat it, or you may make a second copy. |
| ”The deletion could not be confirmed. The history was read again: check whether the version is still listed.” | The version may or may not be gone. |
| ”The store refused: this version is locked. Nothing was changed.” | A lock was set after the sheet read the history. |
| ”This version is no longer in the history. Nothing was changed.” | Someone else removed it first. |
| ”Your access key is not allowed to do this. Nothing was changed.” | The key lacks the permission. |
| ”This store does not support that. Nothing was changed.” | The service does not offer it. |
Deleted files
Section titled “Deleted files”A file deleted from a bucket that keeps versions is not gone: the plain listing stops showing it, but its content is still there. The remote pane does not show such files unless you ask.
Turn on Settings → General → Show deleted files, or choose View → Show/Hide Deleted Files (it has no keyboard shortcut). The pane then lists the files of the open folder that are deleted, beside the ones that are there. A deleted file is marked in the list so that it stands apart from the ones that are there, and the help text attached to its row reads “Deleted file. Restore brings it back.”
To bring a file back, select it, right-click and choose Restore. macSCP removes the delete marker, and the file is current again with the content it had when it was deleted. You can restore several deleted files at once, but only if everything you selected is deleted: a selection that mixes deleted and present files offers Copy Path and nothing else. A deleted file cannot be opened, renamed, moved or deleted; the only thing to do with one is restore it.
What the switch costs and where it applies
Section titled “What the switch costs and where it applies”- It lists one folder level: the deleted files directly in the open folder. A file deleted from a sub-folder shows when you open that sub-folder.
- A file that was deleted and then written again is not deleted, and is not listed as such.
- Reading the deleted files is a second look at the bucket. With the switch on, each time a folder in a bucket that keeps versions is read, including the refresh macSCP does by itself, it asks the store twice instead of once.
- Where it cannot apply, the switch does nothing: a local pane, an SFTP or WebDAV connection, the list of buckets, and a bucket that never had versioning turned on.
- A deleted file whose name is also the name of a folder that still holds files is not listed, because the pane tells rows apart by name and the folder wins. It is still in the bucket.
If macSCP cannot tell whether a bucket keeps versions, it says so under the pane’s header and shows the files that are there: “Deleted files are not shown: macSCP could not confirm whether this bucket keeps versions.” Other lines you may see there:
| Line | Meaning |
|---|---|
| ”The deleted files could not be listed. The files that are there are shown.” | The second look failed; the ordinary listing is intact. |
| ”The deleted files shown could not be refreshed, so they may be out of date. Refresh to try again.” | A refresh could not re-read them. Restore only what you can check. |
| ”The restore could not be confirmed. The listing was read again: check whether the file is back before trying again.” | The same rule as in the version sheet. |
| ”This file is not deleted any more. The listing was read again.” | Someone restored it, or wrote it again, first. |
The audit log
Section titled “The audit log”Each restore, version delete and marker removal leaves an entry in the audit log, refused ones included. The detail names the bucket, the file and the version’s ID.