[prev in list] [next in list] [prev in thread] [next in thread] 

List:       freebsd-questions
Subject:    Re: Resetting zfs snapshots
From:       Steve O'Hara-Smith <steve () sohara ! org>
Date:       2018-02-23 7:52:09
Message-ID: 20180223075209.5dd437a91cd3429b3604de0d () sohara ! org
[Download RAW message or body]

On Thu, 22 Feb 2018 16:29:58 -0500
"James B. Byrne via freebsd-questions" <freebsd-questions@freebsd.org>
wrote:

> I am in the process of setting up a new FreeBSD server which involves
> transferring a large amount of data onto.  The system was installed
> with root zfs and snapshots were initialised immediately.
> 
> Several iterations of test data transfer and deletes has now resulted
> in snapshots exceeding 64 Gb.  I wish to effectively restart/rebase
> snapshots following the final transfer and eliminate all previous
> ones.

	I use this to delete all snapshots when I want to clean them up.

zfs list -H -o name -t snapshot | xargs -n1 zfs destroy

-- 
Steve O'Hara-Smith <steve@sohara.org>
_______________________________________________
freebsd-questions@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic