Where Does snapd Store Snap Data on Linux?
snapd keeps system data in /var/snap and /var/lib/snapd, with per-user data kept under ~/snap home folders.
Last updated
snapd splits snap data four ways. System data lives under /var/snap with common plus revision dirs. User data lives under ~/snap the same way. Binaries and caches sit under /var/lib/snapd with mounts at /snap.
Snapshots capture both trees for easy moves. Revisions keep old data beside new until cleanup. Current symlinks mark the live one. Removing a snap deletes live data but keeps a 30-day snapshot.
Where snapd stores this, by platform
/var/snap/<name> and ~/snap/<name> (binaries in /var/lib/snapd)
System data in /var/snap, user data in ~/snap, binaries and snapshots in /var/lib/snapd. Use snap save and restore for moves.
Frequently asked questions
How do I back up snap app data?
Use snap save to snapshot one or all snaps, then snap restore on the new machine. Snapshots bundle system plus user data. Auto snapshots on remove last 30 days as a safety net.
System or user data: which is which?
Look under /var/snap for system data and ~/snap for user data, each with common plus revision folders. The current symlink points at the live revision. Cache and snaps binaries live under /var/lib/snapd.
Notice an outdated path? Let us know.