From owner-freebsd-fs@freebsd.org Fri May 18 21:23:54 2018 Return-Path: Delivered-To: freebsd-fs@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 27CA1EDC9BB for ; Fri, 18 May 2018 21:23:54 +0000 (UTC) (envelope-from rainer@ultra-secure.de) Received: from connect.ultra-secure.de (connect.ultra-secure.de [88.198.71.201]) by mx1.freebsd.org (Postfix) with ESMTP id 776836A9DA for ; Fri, 18 May 2018 21:23:53 +0000 (UTC) (envelope-from rainer@ultra-secure.de) Received: (Haraka outbound); Fri, 18 May 2018 23:21:53 +0200 Authentication-Results: connect.ultra-secure.de; iprev=pass; auth=pass (plain); spf=none smtp.mailfrom=ultra-secure.de Received-SPF: None (connect.ultra-secure.de: domain of ultra-secure.de does not designate 217.71.83.52 as permitted sender) receiver=connect.ultra-secure.de; identity=mailfrom; client-ip=217.71.83.52; helo=[192.168.1.200]; envelope-from= Received: from [192.168.1.200] (217-071-083-052.ip-tech.ch [217.71.83.52]) by connect.ultra-secure.de (Haraka/2.6.2-toaster) with ESMTPSA id 9DF227E6-573B-4B7A-BF51-0AEC2FD27888.1 envelope-from (authenticated bits=0); Fri, 18 May 2018 23:21:46 +0200 Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 11.3 \(3445.6.18\)) Subject: Re: Can one remove a specific file from all snapshots? From: Rainer Duffner In-Reply-To: <38792b3b-04db-0c7f-c9a4-3f55b908a427@nber.org> Date: Fri, 18 May 2018 23:22:26 +0200 Cc: freebsd-fs@freebsd.org Content-Transfer-Encoding: quoted-printable Message-Id: <62BA102D-E58F-474D-A4DF-65D2020BEB80@ultra-secure.de> References: <38792b3b-04db-0c7f-c9a4-3f55b908a427@nber.org> To: Alex Aminoff X-Mailer: Apple Mail (2.3445.6.18) X-Haraka-GeoIP: EU, CH, 451km X-Haraka-ASN: 24951 X-Haraka-GeoIP-Received: X-Haraka-ASN: 24951 217.71.80.0/20 X-Haraka-ASN-CYMRU: asn=24951 net=217.71.80.0/20 country=CH assignor=ripencc date=2003-08-07 X-Haraka-FCrDNS: 217-071-083-052.ip-tech.ch X-Haraka-p0f: os="Mac OS X " link_type="DSL" distance=12 total_conn=1 shared_ip=N X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on spamassassin X-Spam-Level: X-Spam-Status: No, score=-2.9 required=5.0 tests=ALL_TRUSTED,BAYES_00, URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.1 X-Haraka-Karma: score: 6, good: 5682, bad: 3, connections: 6226, history: 5679, asn_score: 656, asn_connections: 721, asn_good: 657, asn_bad: 1, pass:asn, relaying X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.26 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 18 May 2018 21:23:54 -0000 > Am 18.05.2018 um 22:17 schrieb Alex Aminoff : >=20 >=20 > The use case here is that we have data sets of sensitive data that we = are contractually obligated to delete with no backups at a certain point = in time. The datasets are stored on a ZFS filesystem (on a truenas from = IxSystems as it happens). The snapshots are kept for 15 days, so at the = moment we have to rm the files 15 days before the deadline to be = compliant. Is there a way to delete a specific file from the live = filesystem as well as all the snapshots? >=20 > I did find a post to this list from 2014: >=20 > = https://lists.freebsd.org/pipermail/freebsd-fs/2014-October/020307.html >=20 > but I don't think it is relevant, and in any case it does not appear = that the feature that post describes was implemented. >=20 > Thanks, >=20 AFAIK, snapshots are still read-only. BTRFS seems to have writable snapshots - but I=E2=80=99ve no idea how it = actually works. I would suggest to change your contracts - that will be much easier than = changing ZFS.