Dear Uttam, before you touch anything, before you fix anything, before you break anything… run this. Your future self, three months from now, desperately trying to remember “what was mounted where?” will send you virtual high-fives.
| |
What gets captured
| Command | Why you’ll need this later |
|---|---|
mount | “Wait, what was the NFS mount point again?” |
df -h | “How much disk space did I have initially?” |
free -m | “Did this server always have 2GB RAM or 4GB?” |
ps -aux | “What processes were running before I touched it?” |
dpkg -l | “Was nginx installed when I got here?” |
uname -a | “Which kernel version was this running?” |
id | “What groups was I in before sudo shenanigans?” |
/proc/cmdline | “What boot parameters were set?” |
/etc/ backup | “What did the original config look like?” |
When this saves you
- Client: “You broke the firewall!” You: pulls out baseline “Actually…”
- Boss: “Did you install that?” You: checks dpkg baseline “Nope, inherited.”
- You: “Why is this mounted here?” You: checks mount baseline “Ah, right.”
Pro tips
- Run immediately - Before
apt update, before config changes, before everything - Keep baselines - Don’t overwrite. Each takeover gets its own timestamp
- Store safely - Copy
bak/folder off-server (S3, local backup) - Add to docs - Include in handover documentation
The baseline that saved my career count: Lost track after 50.