From nobody Mon Mar 06 05:39:13 2023 X-Original-To: dev-commits-src-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4PVS7P5Gqkz3wRp5; Mon, 6 Mar 2023 05:39:13 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4PVS7P4CjRz3j91; Mon, 6 Mar 2023 05:39:13 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1678081153; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=yLMAIIsvh8VV279ArjYV65vgBx5tcsXOFjUdSuEEGh8=; b=c38Q9jBKxDoZaezump9bNidzSJfuFVp1PLS9t6HytZ12u6+5DRkhb7HrCjKHo+3IRQnrib f7b+9GgMcnyUgjNvuyjKX9FcvsHoP1IaJ2M1+evLpMSpoylK6DNMN8NjnHhwqH2fqdePC+ zFd/bDBlmZBoIqcGCKRHJ9OW6Knrp5awZnaUTwqbdHstfYDy2jWrEveKL3BGj+b5LSh/8J umRieSM9cgFTUmPSY8b9FpvPK5RdDl8oM8Efgt+WM8zEhZeP5IeRBUowKPuMUYyy45Xooq aTN5veGe1VcdQcv8fexui/9SGuputyretHm0Z7Ai9YGZYzSYyEppSB0pE9HaoA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1678081153; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=yLMAIIsvh8VV279ArjYV65vgBx5tcsXOFjUdSuEEGh8=; b=ck2ILXTuf1BpigAlxrudVSUQGaTtr6SQFUmkZiD5jbaahuNg1Piz2J/xRaAqPG/yogJImR /1teImR9iGJhb2X+yfMbQlgaaLsusZXRGtz5p3I2ibO30tWDYL0OGCvQnyEc8NZ5NyVczC coRfBpxBV70mUDmP2Fc246VAQoNEs872Ezwt3mHqQ+xavl6bIL/AJwvb/vBIdy2OQSCSp+ vSZEV5RgCB96MrOEOMagd0BAyXun8lOO5yKXiztWXaaS+hH+gDO0YKNOd87dNOX/RPL7Xz NbJgrBk3mhh1/iX0ZbNTBpBKiC7a+LhOh+U5uHQ2sKu2kZmsId6qKk8tbhx5Mw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1678081153; a=rsa-sha256; cv=none; b=xn7+r8uwDsvFCY/Ha9uvRkKd0VcO6hfbBQcYT5+WuTcn+iJYhIf+1PE+2HUBCnja6AIVxY K83sRj6/t7nLG10azm+zhd2goRfgi4EHInr0SZg+ddpJ05CORytnCe4FBhZbMcSNrYA/QA +RtzL1UpzDMH8t3r0GVXo618ftTJOpCPJDn0ZCbf0mnRqnAstPvR5wYGgXSe2SM3+bs9cM rOoctD3M6KJI6i0C0cXcOfLhwMIQUVbds+iL1blH+4wLdyFqBXlCnwzk0djm3SkeyraqGZ yj9K5Ypd1piBnL1LW7yOMEyYhpyr/RPaQXb8nmX8mLMmOoW71ni9T73qanl8Hg== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4PVS7P39jHzqNZ; Mon, 6 Mar 2023 05:39:13 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 3265dDl7040982; Mon, 6 Mar 2023 05:39:13 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 3265dDx9040981; Mon, 6 Mar 2023 05:39:13 GMT (envelope-from git) Date: Mon, 6 Mar 2023 05:39:13 GMT Message-Id: <202303060539.3265dDx9040981@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Kirk McKusick Subject: git: 528d8e55c8d3 - main - FFS/UFS snapshots: improve documentation. List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: dev-commits-src-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: mckusick X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 528d8e55c8d338e78fa4e6c9f182e8975f75199a Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by mckusick: URL: https://cgit.FreeBSD.org/src/commit/?id=528d8e55c8d338e78fa4e6c9f182e8975f75199a commit 528d8e55c8d338e78fa4e6c9f182e8975f75199a Author: Kirk McKusick AuthorDate: 2023-03-06 05:37:23 +0000 Commit: Kirk McKusick CommitDate: 2023-03-06 05:38:57 +0000 FFS/UFS snapshots: improve documentation. This update provides a more detailed description of FFS/UFS snapshots and adds links to useful man pages. Requested by: Graham Perrin Submitted by: darius-dons.net.au Reviewed by: Ravi Pokala PR: 266358 MFC after: 2 weeks Differential Revision: https://reviews.freebsd.org/D38817 --- sbin/mksnap_ffs/mksnap_ffs.8 | 29 +++++++++++++++++++++++------ 1 file changed, 23 insertions(+), 6 deletions(-) diff --git a/sbin/mksnap_ffs/mksnap_ffs.8 b/sbin/mksnap_ffs/mksnap_ffs.8 index 201014522721..658502cffdcb 100644 --- a/sbin/mksnap_ffs/mksnap_ffs.8 +++ b/sbin/mksnap_ffs/mksnap_ffs.8 @@ -32,9 +32,7 @@ .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF .\" SUCH DAMAGE. .\" -.\" $FreeBSD$ -.\" -.Dd October 3, 2016 +.Dd March 5, 2023 .Dt MKSNAP_FFS 8 .Os .Sh NAME @@ -48,6 +46,18 @@ The .Nm utility creates a snapshot named .Ar snapshot_name . +This name is a path in the file system being snapshotted. +Typically this is under the +.Pa .snap +directory in the root of the file system, but it can +be anywhere. +Snapshots can be listed using the +.Xr snapinfo 8 +command. +.Pp +After a snapshot is taken it appears as a file. +The file is the size of the file system from which it was taken. +It can be moved, renamed or deleted (which removes the snapshot). .Pp The group ownership of the file is set to .Dq Li operator ; @@ -62,15 +72,22 @@ Create a snapshot of .Pa /usr/home file system and mount the snapshot elsewhere: .Bd -literal -offset indent -mksnap_ffs /usr/home/snapshot -mdconfig -a -t vnode -o readonly -f /usr/home/snapshot +mksnap_ffs /usr/home/.snap/snap1 +mdconfig -a -t vnode -o readonly -f /usr/home/.snap/snap1 mount -o ro /dev/md0 /mnt/ .Ed +.Pp +Delete a snapshot: +.Bd -literal -offset indent +rm /usr/home/.snap/snap1 +.Ed .Sh SEE ALSO +.Xr rm 1 , .Xr chmod 2 , .Xr chown 8 , .Xr mdconfig 8 , -.Xr mount 8 +.Xr mount 8 , +.Xr snapinfo 8 .Sh HISTORY The .Nm