From nobody Sat Apr 16 19:07:42 2022 X-Original-To: freebsd-current@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 64D9EEAB169 for ; Sat, 16 Apr 2022 19:08:00 +0000 (UTC) (envelope-from weldon@excelsus.com) Received: from senna.excelsus.com (senna.excelsus.com [96.79.137.12]) (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 mx1.freebsd.org (Postfix) with ESMTPS id 4KgjQ66xtzz3CWW for ; Sat, 16 Apr 2022 19:07:58 +0000 (UTC) (envelope-from weldon@excelsus.com) Received: from localhost (localhost [127.0.0.1]) by senna.excelsus.com (Postfix) with ESMTP id F246CEAD6 for ; Sat, 16 Apr 2022 14:07:51 -0500 (CDT) Received: from senna.excelsus.com ([127.0.0.1]) by localhost (host.domain.tld [127.0.0.1]) (maiad, port 10024) with ESMTP id 78153-03 for ; Sat, 16 Apr 2022 14:07:44 -0500 (CDT) Received: from smtpclient.apple (249.sub-174-212-160.myvzw.com [174.212.160.249]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: weldon@excelsusphoto.com) by senna.excelsus.com (Postfix) with ESMTPSA id 8E3F3EA63; Sat, 16 Apr 2022 14:07:44 -0500 (CDT) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable From: Weldon Godfrey List-Id: Discussions about the use of FreeBSD-current List-Archive: https://lists.freebsd.org/archives/freebsd-current List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-current@freebsd.org Mime-Version: 1.0 (1.0) Subject: Re: recover deleted file Date: Sat, 16 Apr 2022 15:07:42 -0400 Message-Id: References: <202204161625.23GGPn6j049380@fire.js.berklix.net> Cc: Sami Halabi , FreeBSD Current In-Reply-To: <202204161625.23GGPn6j049380@fire.js.berklix.net> To: "Julian H. Stacey" X-Mailer: iPhone Mail (19D52) X-Virus-Scanned: Maia Mailguard 1.0.4 X-Rspamd-Queue-Id: 4KgjQ66xtzz3CWW X-Spamd-Bar: ++ Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=none (mx1.freebsd.org: domain of weldon@excelsus.com has no SPF policy when checking 96.79.137.12) smtp.mailfrom=weldon@excelsus.com X-Spamd-Result: default: False [2.31 / 15.00]; RCVD_TLS_LAST(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; ARC_NA(0.00)[]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; MV_CASE(0.50)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-current@freebsd.org]; DMARC_NA(0.00)[excelsus.com]; AUTH_NA(1.00)[]; NEURAL_SPAM_MEDIUM(1.00)[1.000]; RCVD_COUNT_THREE(0.00)[4]; TO_MATCH_ENVRCPT_SOME(0.00)[]; TO_DN_ALL(0.00)[]; NEURAL_SPAM_SHORT(0.91)[0.908]; MLMMJ_DEST(0.00)[freebsd-current]; R_SPF_NA(0.00)[no SPF record]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:7922, ipnet:96.64.0.0/11, country:US]; FREEMAIL_CC(0.00)[gmail.com,freebsd.org]; MID_RHS_MATCH_FROM(0.00)[]; RECEIVED_SPAMHAUS_PBL(0.00)[174.212.160.249:received] X-ThisMailContainsUnwantedMimeParts: N > On Apr 16, 2022, at 12:27 PM, Julian H. Stacey wrote: >=20 > =EF=BB=BF >>=20 >> okay... >> all seems very time consuming operations!! >=20 > Yes >=20 >> There should be an os "undelete" as happens in NTFS for example.. which i= s >> very fast and can be done also with extra tools without a hassle. >=20 > A WIBNI (Wouldnt It Be Nice If) for Unix FS's for as long as I can remembe= r > (decades) but no one's ever done it.=20 >=20 > Ways to get it done: > Get it listed as a Google Summer Of Code project for FreeBSD, Or >=20 > Get your employer to help pay for it, eg chip in with other BSD > user companies to pay some money to FreeBSD Foundation, & get > them to pay for it to be developed. >=20 > Or hire are an individual freelance BSD Consultant to do it, > There's a global index here http://berklix.com/consultants/ >=20 > & a mail list that's moderated jobs@freebsd >=20 > Some author(s) of BSD FFS are on list fs@, Kirk is one name springs > to mind ? Some freelancers on fs@ I recall. >=20 > IMO Would be a fun job if funded :-) >=20 >>=20 >> for now I got backup from last day .. caused me a lot of troubles, not sa= y >> legal ones, but I passed the point to hold the machine down. >>=20 >> any advice? >>=20 >> Maybe UFS developer would do a rework so latest deleted inodes would put i= n >> a "recycle bin" (maybe with a sysctl or whatever) for say one day (or any= >> other configurable sysctl) and allow to recover quickly or "force delete /= >> empty recycle bin" , rather than delete and give back space immediately f= or >> use and destroy possibility to restore. >>=20 >> my 2 cents. >>=20 >> Sami >=20 >=20 or just use ZFS filesystem and leverage regular snapshots. I wrote a scrip= t that manages snapshots (moves to weekly, monthly and deletes snaps) but i b= elieve there is a utility in the ports collection that will do the automated= management.=20 >=20