Data residency in Azerbaijan: find where every copy really lives

Data residency means knowing in which country every copy of your data is stored, including backups, mail, logs and the services your site calls. Renting a server in Baku answers one line of that list. This page helps you fill in the rest.

Updated:

Three questions that get mixed up

  • Where is it stored? The country of the disks. This is residency.
  • Who can reach it? A support engineer, contractor or parent company abroad may open data that never leaves a local disk. This is access.
  • Whose rules apply to the provider? The company's place of registration and the contract decide it. This is jurisdiction.

A project can pass the first and fail the second, so write down all three.

Where copies usually hide

PlaceWhat ends up thereHow to find out
Server diskDatabase, uploads, sessionsProvider contract; ask for the city
BackupsA full copy of everythingRead the backup job's destination
EmailOrders, scans of IDs, CVsMX record; mail provider's terms
CDN and proxyCached pages, visitor IPs, sometimes decrypted trafficNS and response headers
Error tracking and monitoringStack traces with user dataSearch config files for DSN and API keys
Analytics, chat, pixelsBehaviour, IPs, phone numbersBrowser developer tools, Network tab
SaaS (CRM, helpdesk, forms)Customer listsAdmin settings, data processing terms
SMS and messenger botsPhone numbers, message textInvoices from the gateway
AI toolsWhatever staff paste inAsk staff, without blame
Laptops and test serversLast year's dumpAsk developers

The last two lines are where most surprises come from. Nobody planned those copies, and no contract covers them.

Trace the outgoing connections

You can find half of the list in a few minutes. Replace the domain with your own; the first commands show who hosts mail and DNS, the last one which outside hosts a page loads:

dig +short MX example.az
dig +short NS example.az
dig +short TXT example.az | grep -i spf
curl -s https://example.az/ | grep -oE 'https?://[^/"'"'"' ]+' | sort | uniq -c | sort -rn

On the server, see which programs talk to which addresses right now, and which endpoints are written in the configuration:

sudo ss -tnp state established
sudo grep -rhoE 'https?://[a-zA-Z0-9.-]+' /etc /srv /var/www --include='*.env' --include='*.yml' --include='*.conf' --include='.env' | sort | uniq -c | sort -rn | head -40

Scripts that load other scripts appear only in the browser, so also open a page with the Network tab and sort by domain. An IP lookup tells you the owner of an address, not reliably the country of the disk; for that you need the provider's word in writing.

The inventory worksheet

One row per copy, not per system. Copy this into a spreadsheet; the rows are invented examples:

data_set,personal_data,system,provider,country_stored,who_has_access,encrypted,retention,contract_ref,owner,next_review
orders,yes,shop database,hosting company,Azerbaijan,2 admins,disk: no / transit: yes,5 years,A-12,IT lead,2027-03
orders,yes,nightly backup,S3 storage,Azerbaijan,1 admin,yes (restic),6 months,A-12,IT lead,2027-03
orders,yes,order emails,mail provider,unknown,sales team,transit only,no limit,none,sales lead,now
visitors,yes,web analytics,SaaS,unknown,marketing,vendor,vendor default,online terms,marketing,now

Any "unknown" is a task, and any "no limit" is a decision somebody should make. Review it when a tool is added, not once a year.

Questions to put into the contract

  1. In which country and city are the disks that hold our data? And the backups and the recovery site?
  2. Can you move the data elsewhere without asking us? How much notice do you give?
  3. Which of your employees and subcontractors can reach the data, from which countries, and is each access logged?
  4. Who are your subprocessors, and how do we learn about new ones?
  5. What happens on termination: in what format do we export, and when are the copies deleted?
  6. How quickly do you report an incident, and to whom?
  7. What do you do if an authority requests our data?

Ask for answers in the agreement or an annex. A sentence on a website, including ours, is not a contract.

For Cloudraft the short version is: VPS disks and the S3-compatible storage are in Baku, the company is Cloudraft LLC, Baku, and data on these servers stays in the country. A separate disaster-recovery site exists, with plans arranged individually, so put its location in your question list. The software you install and the services it calls are outside our view: that part of the inventory is yours.

Technical measures that make the paper true

Encrypt copies that travel. Backups should be encrypted before upload, with the key kept elsewhere; the backup guide does this with restic. Use TLS for every database connection that leaves the machine.

Encrypt the sensitive fields. Full-disk encryption on a virtual server protects a discarded disk, yet a running machine is always unlocked. For identity numbers and scans, encrypt in the application and keep the key outside the database.

Keep databases without a public address. Place them on a private network that only the application and staff VPN can reach.

Log access to files that matter. A simple watch on Ubuntu or Debian:

sudo apt install -y auditd
echo '-w /srv/clients -p rwa -k clients' | sudo tee /etc/audit/rules.d/clients.rules
sudo augenrules --load
sudo ausearch -k clients --start today -i

Give each administrator a personal account with sudo, because a shared root login makes logs useless.

Expire data. Logs, carts, CVs and old dumps that no longer exist cannot leak. Check that logrotate matches the retention column.

Anonymise test data. Developers rarely need real phone numbers.

When local storage is not the main question

Public marketing pages, open documentation and product photos gain little from residency rules; choose their location by speed for visitors. And a server in Baku with an old CMS and a shared password is worse protected than a well-run one anywhere. Residency is one property of a system, alongside security, recovery and access.

Data residency questions

Must personal data of Azerbaijani customers be stored in Azerbaijan?

Ask a lawyer who knows your sector. The law "On Personal Data" is the starting point, and the answer may differ for a bank, a clinic and an online shop.

Does a VPS in Baku make my company compliant?

No. It settles where the server disk is. Email, backups, analytics, access rights and contracts have to be checked separately.

Does using a CDN move my data abroad?

It can. A proxying CDN sees visitor IPs and often decrypts traffic at its own locations. Serve only static files through it, or ask the provider where requests are processed.

How do I prove where my data is stored?

Keep the contract or annex naming the location, the inventory with review dates, and copies of provider answers. Screenshots of a lookup by IP are weak evidence.

Who should own the data inventory?

One named person, usually the IT lead, with a lawyer or compliance officer reviewing it. Shared ownership normally means the sheet is never updated.

Read next

All VPS pages

This page in other languages: Azərbaycanca · Русский

Servers in Baku, prices in manat

Create an account, top up your balance and order the plan you need.