MKSNAP_FFS(8)
β¨ mksnap_ffs(8) β System Managerβs Manual, but make it group chat β¨
π NAME π
mksnap_ffs β take a file system snapshot. Thatβs the whole name vibe, bestie.
π¦ SYNOPSIS π¦
mksnap_ffs snapshot_name
π DESCRIPTION π
Okay so the mksnap_ffs utility creates a snapshot named snapshot_name. That name is a path in the file system you want to snapshot. Typically it lives under the .snap directory in the root of the file system, but honestly it can be anywhere in the filesystem being snapshotted. You can list snapshots with the snapinfo(8) command.
After a snapshot is taken, it appears as a file. The size of the snapshot file is equal to the size of the file system from which it was taken. It can be moved, renamed, or deleted β and deleting it removes the snapshot. Slay, cleanup queen.
The group ownership of the file is set to βoperatorβ; the owner of the file remains βrootβ. The mode of the snapshot is set to be readable by the owner or members of the βoperatorβ group.
π EXAMPLES π
Create a snapshot of /home file system and mount the snapshot elsewhere:
mksnap_ffs /home/.snap/snap1
mdconfig -a -t vnode -o readonly -f /home/.snap/snap1
mount -o ro /dev/md0 /mnt/
Delete a snapshot:
rm /home/.snap/snap1
π SEE ALSO π
rm(1), chmod(2), chown(8), mdconfig(8), mount(8), snapinfo(8) β go read those too, bestie.
π§ HISTORY π§
The mksnap_ffs utility first appeared in FreeBSD 5.1. Iconic behavior, honestly.
π CAVEATS π
The disk full situation is not handled gracefully and may lead to a system panic when no free blocks are found. Yeah⦠not cute.
Every filesystem can have only up to 20 active snapshots. When this limit is reached, attempting to create more snapshots fails with ENOSPC, and mksnap_ffs reports that it is βout of spaceβ. So like, donβt spam snapshots, okay?
Source/version/date moment: Debian, May 22, 2023, MKSNAP_FFS(8) β thatβs the page, bestie! Go snapshot responsibly πβ¨
π¦ where this page comes from
- freebsd 14.5: base 14.5
- freebsd 15.1: base 15.1
- Copyright (c) 2003 Networks Associates Technology, Inc
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms