← Knowledge Base
Ubuntu ServerReference note1 min read · updated 2026-11-27

Take a safe snapshot before risky changes

The habit and the options: provider snapshot, LVM snapshot, or a quick copy of the files you will change.

snapshotbackupchange-management

Before a kernel upgrade, a release upgrade or a big configuration change, take something you can go back to:

  1. Cloud or hypervisor snapshot of the disk (a boot-volume backup on a cloud provider, a snapshot in Proxmox). The easiest and the most complete.
  2. LVM snapshot if the root is on LVM: sudo lvcreate -L 5G -s -n pre-upgrade /dev/vg0/root, and remove it afterwards with sudo lvremove vg0/pre-upgrade (a full snapshot slows the disk and fills up).
  3. File-level: sudo tar czf ~/etc-backup-$(date +%F).tar.gz /etc and a copy of the application data.

Write down how to roll back before you start, and test that the backup can be restored. A snapshot is not a backup: it usually lives on the same storage.