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.
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:
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.
| Component | Requirement | Why it matters |
|---|---|---|
| Veeam backup server | Windows server running a current Veeam Backup & Replication release | Object storage and immutability features are much more mature in recent versions |
| S3-compatible bucket | Object Lock and versioning enabled, dedicated to Veeam | Locks only work on a bucket with Object Lock enabled |
| Access key | Access Key and Secret Key used only for this bucket | A leaked key only exposes one bucket |
| Endpoint | S3 endpoint reachable over HTTPS | Backup traffic must be encrypted in transit |
| Time sync | Reliable time service on the Veeam server | S3 requests are signed with a timestamp |
| Capacity plan | Quota sized including the lock period | Locked 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.
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.
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.
Menu labels vary slightly between versions, but the flow is broadly this:
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 SistemDCDo 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.
| Item | Example | Note |
|---|---|---|
| Full backup size (after compression) | 2 TB | Initial full |
| Daily change rate | 3% | About 60 GB of incrementals per day |
| Immutability period | 14 days | All blocks in this window are locked |
| Retention | 30 days | Restore points Veeam keeps |
| Estimated need | 2 TB + 30 x 60 GB, about 3.8 TB | Add 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.
# 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.
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.
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.
| Layer | Location | Purpose |
|---|---|---|
| Primary backup | Local disk or a nearby repository | Fast restores of recent days |
| Secondary copy | S3-compatible object storage with Object Lock | Off-site, immutable copy |
| Verification | Scheduled restore tests | Proof 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.
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 plansWhich 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.