Object Lock renewals and a lock that is off
How Tenvara keeps Object Lock renewed only where it is due, on copy locations too, warns before locks lapse, and shows a lock that was switched off or weakened on every page whose backups are kept there until someone acknowledges it.
Object Lock keeps each piece of a backup undeletable for a set number of days after it is written (see Storage locations and immutable backups). Backups live longer than the lock period, so the locks of the data still in use have to be renewed. This guide covers how that works, what Tenvara tells you when renewals fail, and what happens when someone switches a lock off.
Renewals
Locks are renewed as part of a repository's weekly full maintenance, and on a copy location after each copy and each full maintenance.
- Only what is due. A piece is renewed when its lock is close to its end: about the last quarter of the lock period, and always with at least ten days to spare. With a 30-day lock each piece is renewed about once every three weeks, not on every run, and a missed week still leaves time.
- Copy locations too. The locked copy of each repository at its second location is renewed with that location's own lock mode and period, so the offsite copy stays as protected as the primary.
- Gentle with the store. Renewals run at a pace each provider accepts (slower on Backblaze B2) and wait when the store asks them to. Backups do not wait for renewals.
The maintenance job says what it did, for example "Object Lock: Renewed 1,240 locks, 52,553 not due".
When renewals fail
If a renewal fails, the rest of the maintenance is still kept and the renewal gets its own next try: an hour later, then four hours, then once a day in the repository's quiet hours. A renewal that succeeds clears it.
When renewals keep failing (twice in a row, or once while the oldest lock not renewed ends within 7 days), the repository raises one warning alert: "Object Lock renewal failing (
A lock switched off or weakened
Switching a location's lock off, from compliance to governance, or to fewer days, can be deliberate, for example for a testing period. Tenvara never repairs or re-locks anything by itself. What it does is make sure it is never silent.
The warning
Every S3 location that holds backups and has no Object Lock, or whose lock was weakened, carries one warning:
- on its card in Settings > Backup, Storage tab: "Object Lock is off at Offsite. Off since 10 Nov, switched off by Sam Carter (it was Compliance for 30 days). New backups kept there can be deleted or changed." with how many stored pieces lose their lock from when, and "Nothing is renewed while the lock is off.";
- on each repository's panel in Backup > Repositories;
- on the backup page of every Microsoft 365 or Google Workspace tenant, customer and device whose backups are kept there ("These backups are kept there.") or whose second copy is ("The second copy of these backups is kept there.").
The count of pieces losing their lock falls as the old locks lapse, so you can see how much time is left before the data that was protected stops being protected.
A bucket that never had a lock shows the plain form, "This bucket has no Object Lock. New backups kept there can be deleted or changed.", with no date, no person and no alert. A folder on the backup server cannot be locked and keeps its No Object Lock badge.
The alert
Weakening or switching off a lock raises one warning alert for the location, once. It resolves when the lock is set back at least as strong as it was, or when the location holds nothing any more.
Acknowledging it as deliberate
If the change was meant:
- On the location's card, press This is deliberate....
- Under Why it is deliberate, write the reason, for example "off for the testing period, back on by the end of the month". A note is required.
- Press Acknowledge.
The alert is resolved and does not come back. The warnings stay everywhere, quieter (blue rather than amber), with "Acknowledged as deliberate by
Warning: While a lock is off, nothing is renewed and new backups there are not protected. Set it back as soon as the reason is over, then check the warning has gone.
Second-person approval off
Weakening a lock normally waits for a second administrator. If second-person approval is off, Settings > Backup, Protection tab says so with since when and by whom: "Second-person approval is off since
Related
Was this page helpful?
Thanks for the feedback.