Insights

Old Server Retired but Backups Still Hold Personal Data? UU PDP Deletion Duties

November 18, 2026
0:00
Migration is done, DNS points to the new platform, and the old server is powered off or cancelled. The data on it is often still there, though. Snapshots, nightly backups, a DR replica, and maybe a tape set at the previous provider can all still hold customer names, emails, phone numbers, and order history. Under Indonesia's Personal Data Protection Law (UU PDP, Law No. 27 of 2022), those copies are still personal data you are responsible for. Shutting down the server that created them does not change that. This article walks through why the copies survive, layer by layer, and what you can do to find them, erase them, and prove it.
The law gives data subjects a right to have their personal data deleted or destroyed. It also expects the data controller (the organisation that decides why and how data is processed) to stop keeping data once the retention purpose is over. The ASEAN Briefing guide to the law summarises the erasure right. The AHP practical guide points out that old, retired data, legacy systems, and their backups are a common and complicated compliance bottleneck. Two points matter for infrastructure teams. First, the duty applies to every copy, not just the production database. A snapshot is a copy. A replica is a copy. A tape is a copy. Second, a provider that stores your data on your behalf acts as your processor, and the controller stays accountable for what the processor keeps. If your contract with the old provider never said what happens to backups at termination, there is a gap. How to Check If Your Data Processing Agreement Actually Meets UU PDP Requirements covers what that contract should contain. Retention can also pull the other way. Tax, finance, or sector rules may require you to keep certain records for a set period. In that case the answer is not "delete everything." You keep only the records you have a legal basis for, document why, and delete the rest when that basis expires.
Most confusion starts here, so it helps to follow a delete through the stack. When an application or rm deletes a file, it calls the unlink() syscall. This removes the directory entry and decrements the inode's link count. The inode is the filesystem record that points to the file's data blocks. When the link count reaches zero and no process still holds the file open, the filesystem marks the inode and its blocks as free in its allocation bitmaps. The data in those blocks is not overwritten. It stays on disk until something else is written there. Databases behave similarly. A DELETE in MySQL marks rows as deleted. InnoDB purges them later and reuses the space, but the old bytes can sit in data files, undo logs, and binary logs for a while. The next layer down is the block device. On SSDs and thin-provisioned storage, the filesystem can send a discard (TRIM) command to say these blocks are no longer used. Discard only happens if the filesystem is mounted with discard, or if fstrim runs periodically. On an SSD, TRIM tells the drive's flash translation layer the blocks are unused, and the firmware erases them during garbage collection on its own schedule. On thin LVM, ZFS, or Ceph, discard lets the host reclaim space, but only if the hypervisor passes discard through from the guest's virtual disk. You can check whether a device advertises discard support with a read-only command:
BASH
# Non-zero DISC-GRAN and DISC-MAX mean the device accepts discard
lsblk -D

# Show mount options; look for 'discard' on the filesystems that held personal data
findmnt -o TARGET,SOURCE,OPTIONS
The practical result is that deleting data inside a VM does not guarantee anything was erased on the physical storage under it. When you cancel a VM at a provider, the provider usually releases or deletes the volume at its own storage layer. Whether that volume is wiped, zeroed on next allocation, or simply unmapped depends on the provider. You cannot see this from your side, so you have to ask, and ask in writing.
Snapshots are where most leftover data lives, because they are designed to preserve old blocks. ZFS, thin LVM, Ceph RBD, and qcow2 snapshots all use copy-on-write (CoW). When you take a snapshot, the storage freezes the current set of block references. New writes to the live volume go to new blocks, and the snapshot keeps pointing to the old ones. A block is freed only when nothing references it anymore: not the live volume and not any snapshot. That is why deleting a customer table on the live system does nothing to a snapshot taken last month. The snapshot still references the blocks that held the table. On ZFS, the used value of a snapshot shows roughly how much data only that snapshot is keeping alive. Destroying the VM in some setups removes its snapshots too, but orphaned snapshots and cloned volumes are common after migrations. This happens especially when someone cloned a disk "just in case" before cutover. Replication adds more copies. Asynchronous replication (ZFS send/receive, Ceph mirroring, database replicas, rsync to a DR box) creates a full, independent copy on another machine. Shutting down the primary does not touch the replica. If the DR target was at the old provider or in a second region, it is often the copy everyone forgets. Object storage has its own version of this. With bucket versioning enabled on S3-compatible storage, a delete request usually adds a delete marker. Earlier object versions stay stored until you delete them by version ID or a lifecycle rule expires them. A backup bucket that looks empty in a normal listing can still hold every old dump.
BASH
# Lists all versions and delete markers under a prefix (read-only)
aws s3api list-object-versions --bucket old-backups-bucket --prefix db/
Other S3-compatible providers support similar API calls, but bucket names, endpoints, and flags depend on your setup.
Tape and other append-only or immutable backups work differently. You cannot reach into a tape and remove one person's rows. Retention on tape is usually handled by media rotation: a set is kept for its retention period, then overwritten or physically destroyed. Immutable object storage with retention locks behaves similarly, because it is built to refuse early deletion. For these copies, three approaches are common:
  1. Let the copy expire on its documented retention schedule, and keep that schedule short and justified.
  2. Destroy the media at end of life and get a destruction record from whoever holds it.
  3. Use crypto-shredding. If the backup was encrypted with a key you control, securely destroying every copy of that key makes the backup unreadable without touching the media.
Crypto-shredding only works if the backups were encrypted from the start and you know exactly where every copy of the key lives, including escrowed or exported copies. Whether your auditor or regulator accepts it as destruction is worth confirming before you rely on it. For individual erasure requests against backups you cannot edit, a widely used pattern is to delete the data from live systems and record the request. If an old backup is ever restored, you then re-apply the deletion before the restored data goes back into use.
Start with an inventory of every place data from the old platform may still exist. That means every hypervisor, storage pool, backup target, bucket, and media set, plus anything the old provider runs on your behalf. If you still have access to the old environment, these read-only commands list snapshots and volumes on common stacks:
BASH
# Proxmox: snapshots of one VM, and every volume on a storage
qm listsnapshot 101
pvesm list local-lvm

# LVM: all logical volumes, including thin snapshots and their origins
lvs -a -o lv_name,vg_name,origin,pool_lv,lv_size

# ZFS: every snapshot and the space it holds
zfs list -t snapshot -o name,used,referenced

# Ceph RBD: snapshots of one image
rbd snap ls rbd/vm-101-disk-0
Replace the VM ID, storage name, pool, and image with your own. Look for volumes with no matching live VM, snapshot names from migration day, and clones. Warning: Removing snapshots, volumes, or bucket versions cannot be undone. Before you delete anything:
  • Confirm the new platform has a verified, restorable copy of everything you still need.
  • Confirm which records a retention obligation requires you to keep.
  • Get sign-off from whoever owns the data.
The commands above are read-only. Treat the matching destroy commands as a separate, approved change. For anything held by the old provider, send a written request that lists the specific assets: VMs, volumes, snapshots, backup jobs, buckets, and tapes. Ask the provider to delete them and confirm the method and date in writing. Some providers issue a deletion or destruction certificate. If yours does not, a dated written confirmation from the provider is still better than nothing. Keep a simple record for each copy: what it was, where it lived, what personal data it held, the legal basis for keeping or deleting it, the method used, the date, and the evidence. This record is what you show when someone asks how you know the data is gone. Cek Apakah Penyimpanan Data Pribadi Sudah Sesuai UU PDP dengan Audit Sendiri has a broader self-audit approach if you want to extend this beyond the migration. On the support side, the question that usually surfaces this problem is a simple one: "we cancelled the old server, so the data is gone, right?" The honest answer is that cancellation only ends the service. It does not prove deletion. If you take one habit from this, make decommissioning a checklist item with its own sign-off, separate from cutover. List every snapshot, replica, bucket version, and tape set before you migrate. Decide for each one whether it is kept and why, or erased and how. Get written confirmation for anything you cannot erase yourself.

Join My Newsletter & Get Updates!

Get notified whenever a new technical guide, server infrastructure breakdown, or personal reflection goes live, plus a curated weekly digest.