Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 16 Apr 2022 23:05:14 +0200
From:      =?utf-8?Q?S=C3=B8ren_Schmidt?= <soren.schmidt@gmail.com>
To:        Weldon Godfrey <weldon@excelsus.com>
Cc:        "Julian H. Stacey" <jhs@berklix.com>, Sami Halabi <sodynet1@gmail.com>, FreeBSD Current <freebsd-current@freebsd.org>
Subject:   Re: recover deleted file
Message-ID:  <C836B8C6-1664-41B4-801F-3B4B2216D2C8@gmail.com>
In-Reply-To: <E0F1A11A-4A97-47E7-98FC-515900FEBA22@excelsus.com>
References:  <E0F1A11A-4A97-47E7-98FC-515900FEBA22@excelsus.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Just replace rm with a script that moves files to a trash folder, then eithe=
r clean that automagically after some period of time or handle it manually.
Doesn=E2=80=99t have to be complicated=E2=80=A6

-S=C3=B8ren


> On 16 Apr 2022, at 21.08, Weldon Godfrey <weldon@excelsus.com> wrote:
>=20
> =EF=BB=BF
>=20
>> On Apr 16, 2022, at 12:27 PM, Julian H. Stacey <jhs@berklix.com> 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 rememb=
er
>> (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 s=
ay
>>> 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=
 in
>>> a "recycle bin" (maybe with a sysctl or whatever) for say one day (or an=
y
>>> 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
>=20
> or just use ZFS filesystem and leverage regular snapshots.   I wrote a scr=
ipt that manages snapshots (moves to weekly, monthly and deletes snaps) but i=
 believe there is a utility in the ports collection that will do the automat=
ed management.=20
>=20
>=20
>>=20
>=20



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?C836B8C6-1664-41B4-801F-3B4B2216D2C8>