Dedicated Servers Turkey | GPU & Data Center | SistemDC

Veeam S3 Backup: Object Lock Setup Guide

Veeam S3 Backup: How to Build an Immutable Backup Repository with Object Lock, Step by Step (2026)

Veeam S3 Backup: How to Build an Immutable Backup Repository with Object Lock, Step by Step (2026)

Veeam S3 backup means sending the backups you create with Veeam Backup & Replication to an S3-compatible object storage bucket and using Object Lock to make them impossible to delete or modify for a set period. In a ransomware attack, backups are usually the first target: whoever reaches the backup server deletes the files on disk, and there is nothing left to restore from. With a properly built Veeam S3 repository, backups that are still inside their lock period cannot be deleted, even if the backup server's administrator password has been stolen. This guide walks through creating the bucket, choosing the right Veeam settings, avoiding the most common mistakes, sizing capacity and proving that the setup actually works.

What is Veeam S3 backup and why does everyone want it?

Veeam is widely used to back up virtual machines, physical Windows and Linux servers, file shares and databases. Older deployments typically wrote backups to the backup server's own disks or to a NAS. Recent versions make it standard to send backups to S3 object storage, either as the primary target or as a second copy.

Three things drive the interest:

  • Ransomware: attackers now hunt for backups and delete them before encrypting production systems. A backup protected by Object Lock defeats that playbook.
  • Off-site copies: a NAS in the same office as your servers suffers the same fire, flood or power failure. An object storage bucket in a data center keeps the backup physically elsewhere.
  • Scaling: as backup volume grows, raising a quota is far easier than buying disks and expanding RAID arrays.

We covered the concept of immutable backups and how Object Lock works in our guide to immutable backups with S3 Object Lock. This article focuses on the hands-on Veeam side.

Before you start: what a Veeam S3 repository needs

ComponentRequirementWhy it matters
Veeam backup serverWindows server running a current Veeam Backup & Replication releaseObject storage and immutability features are much more mature in recent versions
S3-compatible bucketObject Lock and versioning enabled, dedicated to VeeamLocks only work on a bucket with Object Lock enabled
Access keyAccess Key and Secret Key used only for this bucketA leaked key only exposes one bucket
EndpointS3 endpoint reachable over HTTPSBackup traffic must be encrypted in transit
Time syncReliable time service on the Veeam serverS3 requests are signed with a timestamp
Capacity planQuota sized including the lock periodLocked data cannot be deleted early

Where the Veeam server runs is a decision too. If the protected systems already live in a data center, running Veeam on a Windows VPS on the same network, or on a dedicated server for large data sets, shortens the backup window and keeps the load off your office uplink.

Step 1: Create the bucket with Object Lock enabled

This is the most important step and the hardest to fix later. Create the Veeam bucket with Object Lock enabled from the start. Enabling Object Lock also turns on versioning; the two features work together.

The classic mistake is adding a bucket-level default retention rule as well. Veeam's documentation asks for Object Lock to be enabled on the bucket with no default mode configured. Veeam writes the lock period onto each object itself, and a bucket-level rule can cause errors during repository registration or when Veeam updates its own metadata files.

The AWS CLI works with S3-compatible systems if you prefer the command line. Store your endpoint, taken from your service details, in an environment variable first:

# PowerShell
$env:S3_ENDPOINT = "https://your-s3-endpoint"

# Create a bucket with Object Lock enabled
aws s3api create-bucket --bucket veeam-backup-01 --object-lock-enabled-for-bucket --endpoint-url $env:S3_ENDPOINT

# Check versioning and Object Lock status
aws s3api get-bucket-versioning --bucket veeam-backup-01 --endpoint-url $env:S3_ENDPOINT
aws s3api get-object-lock-configuration --bucket veeam-backup-01 --endpoint-url $env:S3_ENDPOINT

Versioning should report Enabled and ObjectLockEnabled should be Enabled. If you see a DefaultRetention block, a bucket-level rule exists, which you do not want for Veeam.

On SistemDC S3 Object Storage, Object Lock runs in Compliance mode only. Veeam applies Compliance mode locks to each object by default, so the two match. A Compliance-locked object cannot be deleted, and its lock cannot be shortened, by anyone before it expires.

Step 2: A dedicated access key with least privilege

Never hand Veeam your account's main key. Create a separate access key for this bucket and use it nowhere else. A leak elsewhere then cannot touch the Veeam bucket, and a problem on the Veeam server cannot spread to your other buckets.

Store the keys in Veeam's credential manager, not in a text file, an email or a shared notes app. Object Lock does not stop someone with the key from writing junk data; it only stops locked data from being deleted. Key hygiene matters as much as the lock itself.

Step 3: Add the S3-compatible repository in Veeam

Menu labels vary slightly between versions, but the flow is broadly this:

  1. Under Backup Infrastructure, open Backup Repositories and choose Add Repository.
  2. Select Object Storage, then S3 Compatible.
  3. Give the repository a clear name such as "S3 Immutable Copy".
  4. On the Account page, enter the service point (endpoint), the region value from your service details and the access key you created.
  5. On the Bucket page, select the Veeam bucket and create a new folder inside it. Use a separate folder per repository.
  6. Tick Make recent backups immutable for and enter the number of days. This is the setting that turns immutability on.
  7. Optionally use Limit object storage consumption as a safety net so the quota never fills completely.
  8. Pick the mount server, review the summary and finish.

The usual culprits behind errors are a wrong endpoint, a wrong region value, a bucket without Object Lock or clock drift on the Veeam server.

Keep your backups locked and off-site

S3-compatible object storage with Compliance-mode Object Lock, versioning, TLS 1.2+ and a hard quota.

Plan your backup and recovery with SistemDC

Sizing the immutability period and capacity

Do not pick the lock period on a "longer is better" basis. In Compliance mode nothing can be deleted early, so a longer period directly means more storage. Decide based on how long an intruder might go unnoticed, how often your jobs run and how much data changes each day.

ItemExampleNote
Full backup size (after compression)2 TBInitial full
Daily change rate3%About 60 GB of incrementals per day
Immutability period14 daysAll blocks in this window are locked
Retention30 daysRestore points Veeam keeps
Estimated need2 TB + 30 x 60 GB, about 3.8 TBAdd at least 20% headroom

Treat this as a floor. To reduce cost and request counts, Veeam can extend locks by a few extra days automatically (block generation), so real lock periods run slightly longer than the value you enter. With a hard quota, a full bucket rejects new backups while old locked data still cannot be removed, so be generous with headroom. If your recovery targets are not yet defined, start with our guide on RTO and RPO.

The 8 most common Veeam S3 mistakes

  1. Setting a bucket-level default retention rule.
  2. Adding lifecycle rules; Veeam documents them as unsupported on its buckets.
  3. Letting other applications write to the same folder.
  4. Ignoring time synchronization on the Veeam server.
  5. Using the account's main access key.
  6. Sizing the quota for today's data only.
  7. Relying on a single copy.
  8. Never testing a restore.

Time sync and connectivity checks on Windows

# Time service status and last sync
w32tm /query /status

# Force a resync
w32tm /resync

# HTTPS (443) reachability of the S3 endpoint
Test-NetConnection your-s3-endpoint -Port 443

If the last successful sync is old or the source shows the local clock, point the server at a reliable time source. Test-NetConnection should return TcpTestSucceeded : True; if not, a firewall rule is likely blocking outbound HTTPS. For general hardening, see our list of the first 15 settings after installing a Windows server.

Proving immutability works: the delete test

Do not stop at "the lock looks enabled". Prove it with a separate test prefix outside Veeam's folder and a short lock:

# Upload a test file with a one-day Compliance lock
aws s3api put-object --bucket veeam-backup-01 --key lock-test/sample.txt --body .\sample.txt --object-lock-mode COMPLIANCE --object-lock-retain-until-date 2026-12-03T12:00:00Z --endpoint-url $env:S3_ENDPOINT

# Find the version ID
aws s3api list-object-versions --bucket veeam-backup-01 --prefix lock-test/ --endpoint-url $env:S3_ENDPOINT

# Try to delete that version (AccessDenied expected)
aws s3api delete-object --bucket veeam-backup-01 --key lock-test/sample.txt --version-id VERSION_ID --endpoint-url $env:S3_ENDPOINT

The last command must fail with access denied. A delete without a version ID only adds a delete marker while the real version stays in place, which shows versioning and locking are working together.

Restore testing and the recommended architecture

The final "0" in the 3-2-1-1-0 rule means zero errors on verified restores. Restore a single file from the S3 repository every month, restore a full machine into an isolated network every quarter, record how long each restore takes and repeat a test after every Veeam upgrade or key rotation.

LayerLocationPurpose
Primary backupLocal disk or a nearby repositoryFast restores of recent days
Secondary copyS3-compatible object storage with Object LockOff-site, immutable copy
VerificationScheduled restore testsProof that backups actually work

In Veeam you can build this with a Backup Copy job to the S3 repository, or by using S3 as the capacity tier of a Scale-Out Backup Repository. For small and mid-sized setups a separate Backup Copy job is easier to understand and monitor. On SistemDC S3 Object Storage, data is stored in a data center in Turkey, which helps when data residency matters; whether it meets your regulatory obligations is for your organization to assess, and this is not legal advice. Check the current Veeam S3-compatible storage limitations for your version before deploying.

Post-setup checklist

  • Bucket created with Object Lock enabled; versioning on.
  • No bucket-level default retention and no lifecycle rules.
  • Dedicated access key stored only in Veeam.
  • Immutability ticked in the repository with a period that matches your RPO.
  • Quota sized for lock period and incrementals with at least 20% headroom.
  • Time sync verified on the Veeam server.
  • Delete test performed and rejected.
  • First restore test completed and timed.
  • Job notifications routed to email so failures are never silent.

Run your Veeam server in the data center

Windows Server VPS or high-capacity dedicated servers in Istanbul to shorten your backup window.

Explore Windows VPS plans

Related Guides

Frequently Asked Questions

Which S3 Object Lock mode does Veeam use?

When immutability is enabled, Veeam Backup & Replication applies Compliance mode locks to every object it uploads by default. Object Lock must be enabled on the bucket, but no default retention rule should be set at bucket level.

Can I enable Object Lock after creating the bucket?

The safe path is to create the bucket with Object Lock enabled from the start. Enabling it later is not supported everywhere, so creating a dedicated Veeam bucket with the correct settings on day one avoids trouble.

Can I delete a backup before the immutability period ends?

In Compliance mode nobody, including the account owner, can delete a locked object or shorten its lock before it expires. Choose the period carefully and size your quota so it can hold that much data.

Can I add lifecycle rules to a Veeam bucket?

No. Veeam expects to be the only thing managing objects in its bucket. Lifecycle rules or another application writing to the same folder can break the backup chain and cause restore failures.

Is an S3 copy enough on its own?

No. The recommended model is the 3-2-1-1-0 rule: at least three copies, two media types, one copy off-site, one copy immutable or offline, and zero errors on verified restores. An S3 repository covers the immutable, off-site part of that model.

Why does clock drift break Veeam S3 backups?

S3 requests are signed with a timestamp. If the Veeam server clock drifts by more than a few minutes, requests are rejected and jobs fail. Checking time synchronization on the Windows server regularly prevents this.

Server packages covered in this article

+902243340242