From nobody Sat Apr 16 12:31:11 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 96BF35D67F9 for ; Sat, 16 Apr 2022 12:31:24 +0000 (UTC) (envelope-from sodynet1@gmail.com) Received: from mail-qv1-xf2c.google.com (mail-qv1-xf2c.google.com [IPv6:2607:f8b0:4864:20::f2c]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4KgXcW63Dmz4cts; Sat, 16 Apr 2022 12:31:23 +0000 (UTC) (envelope-from sodynet1@gmail.com) Received: by mail-qv1-xf2c.google.com with SMTP id a10so8018158qvm.8; Sat, 16 Apr 2022 05:31:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=TxpMKPDbzIQHO71KtHeTRUiwkb3TpWvuAfMRixmkrdI=; b=DhDm6wXNIo0zsK/Fot+x7UZwxaPUfNRMaz5j36NRRwMqX7SGee23UdLw+XrrogI338 3CtLaVQG/2glYYjS/fCKMpUwPNyX+6D4YITCbLxAMegCSrtbKRKG/l27GhL2T9t0vHLM 17N7cogRWGWqqbgZEZaVZ+iD4UFX6gh+VSvO7bKVOzARkIdk9QrN2VtOB71rgpFXIB7E 3WuZPoqROmgz6MgjCjBuF7istRaEc66dYwydf4ziYGB62cigwPU/QUv3z2/YiQqsnIZy jUbLtzghP9g2YS10Q2D20J43GKSGF7e+HWfe/hjrRZ+tyAsToXBRRRf2CeZwckBtXYsQ 8MzA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=TxpMKPDbzIQHO71KtHeTRUiwkb3TpWvuAfMRixmkrdI=; b=pvCWwIma1khQXLVzAcl4STJRgQYrh5yqEaGkn97r/1UPRFkKgnfVxMhsqZD4cWSgrV 7upqprCRdYuCtJx8ClfEf3YyUu8ni88VrwNvJ2qIcNz9EmoA9EIr8x+vSZNd/ptmSpaA GsosfiiKfBVWUr6BIcOD1/RzGp7eVmZHkPAckapav4EDRj0kvIIx/I8BQS8UdA9woOhH 3PNuJVRkex/Hn5VxFi0OIda9ZY+HT6pO+8HMFaq5iKWSHYUMiYydee2/WXSAN9xOpCwY swy5TQP4Hw6W3txyxQCJXao3izg8olMLtb6B82by0YqoDHbMcUif+GwJi2b5tAyR5Of3 /11Q== X-Gm-Message-State: AOAM532XqDpIBLrPbkNtRv3hZ+wEE6MrHPHReSynhOBoWUIEP7o2RmhA JaYLf7QjO46hW/PDeb9+OXavFIsKDzA4JwD++vMLxqlR X-Google-Smtp-Source: ABdhPJxvWczfonJNILZuyYbNkyhigntnbGAmZvzrMMKF4zpHYidTB+NqkUeGxPyfoBe+s8DFvc/E1hglWH5II2dErZA= X-Received: by 2002:a05:6214:4103:b0:440:e4d1:a2a0 with SMTP id kc3-20020a056214410300b00440e4d1a2a0mr2160930qvb.42.1650112283171; Sat, 16 Apr 2022 05:31:23 -0700 (PDT) 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 References: <70EA83C9-61AE-4256-9FF4-458197BA261D@freebsd.org> In-Reply-To: <70EA83C9-61AE-4256-9FF4-458197BA261D@freebsd.org> From: Sami Halabi Date: Sat, 16 Apr 2022 15:31:11 +0300 Message-ID: Subject: Re: recover deleted file To: grembo@freebsd.org Cc: Matthias Apitz , FreeBSD Current Content-Type: multipart/alternative; boundary="0000000000007a5d6005dcc4b4bc" X-Rspamd-Queue-Id: 4KgXcW63Dmz4cts X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20210112 header.b=DhDm6wXN; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of sodynet1@gmail.com designates 2607:f8b0:4864:20::f2c as permitted sender) smtp.mailfrom=sodynet1@gmail.com X-Spamd-Result: default: False [-2.00 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20210112]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36:c]; FREEMAIL_FROM(0.00)[gmail.com]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; NEURAL_SPAM_SHORT(1.00)[0.998]; NEURAL_HAM_LONG(-1.00)[-1.000]; TO_DN_SOME(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; MID_RHS_MATCH_FROMTLD(0.00)[]; DKIM_TRACE(0.00)[gmail.com:+]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::f2c:from]; MLMMJ_DEST(0.00)[freebsd-current]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim] X-ThisMailContainsUnwantedMimeParts: N --0000000000007a5d6005dcc4b4bc Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable how to do step 3 /? On Sat, Apr 16, 2022 at 2:59 PM Michael Gmelin wrote: > Depends on the kind of file. > > You can always: > 1. reboot the system into single user mode, mount the fs readonly > (important to not overwrite data you want to recover) > 2. dd the partition and into a file > 3. find the content of the deleted file in the dump > > I was able to recover a complete codebase i deleted accidentally that way > a long time ago. > > Good luck > Michael > > On 16. Apr 2022, at 13:52, Sami Halabi wrote: > > =EF=BB=BF > well.. thats the trivial answer.. the problem is backups is a day > before... if i can undelete it would save me loss of 1 day offset.. > > anyone? > > On Sat, Apr 16, 2022 at 2:49 PM Matthias Apitz wrote: > >> El d=C3=ADa s=C3=A1bado, abril 16, 2022 a las 02:23:25 +0300, Sami Halab= i escribi=C3=B3: >> >> > Hi, >> > is there anyway easy to restore deleted file by accident in UFS???? >> >> Yes, restore it from a backup media. >> >> matthias >> >> >> -- >> Matthias Apitz, =E2=9C=89 guru@unixarea.de, http://www.unixarea.de/ >> +49-176-38902045 >> Public GnuPG key: http://www.unixarea.de/key.pub >> >> Peace instead of NATO! =D0=9C=D0=B8=D1=80 =D0=B2=D0=BC=D0=B5=D1=81=D1= =82=D0=BE =D0=9D=D0=90=D0=A2=D0=9E! Frieden statt NATO! =C2=A1Paz en vez >> de OTAN! >> >> > > -- > Sami Halabi > Information Systems Engineer > NMS Projects Expert, FreeBSD SysAdmin Expert > Asterisk Expert > > --=20 Sami Halabi Information Systems Engineer NMS Projects Expert, FreeBSD SysAdmin Expert Asterisk Expert --0000000000007a5d6005dcc4b4bc Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
how to do step 3 /?

On Sat, Apr 16, 2022 at 2:59 PM Michael= Gmelin <grembo@freebsd.org>= ; wrote:
Depends on the kind of f= ile.

You can always:
=
1. reboot the system into single user mode, mount the fs r= eadonly (important to not overwrite data you want to recover)
2. dd the partition and into a file
3. find = the content of the deleted file in the dump

I was able to recover a complete codebase i deleted accid= entally that way a long time ago.

Good luck
Michael

=
On 16. Apr 2022, at 13:52, Sami Halabi <sodynet1@gmail.com>= ; wrote:

=EF=BB=BF
well.. thats the trivial answer.. the problem = is backups is a day before... if i can undelete it would save me loss of 1 = day offset..

anyone?

On Sat, Apr 16, 2022 at 2:49 P= M Matthias Apitz <= guru@unixarea.de> wrote:
El d=C3=ADa s=C3=A1bado, abril 16, 2022 a las 02:23:25 +030= 0, Sami Halabi escribi=C3=B3:

> Hi,
> is there anyway easy to restore deleted file by accident in UFS????
Yes, restore it from a backup media.

=C2=A0 =C2=A0 =C2=A0 =C2=A0 matthias


--
Matthias Apitz, =E2=9C=89 guru@unixarea.de, http://www.unixarea.de/ +49-176-38902045
Public GnuPG key: http://www.unixarea.de/key.pub

Peace instead of NATO!=C2=A0 =D0=9C=D0=B8=D1=80 =D0=B2=D0=BC=D0=B5=D1=81=D1= =82=D0=BE =D0=9D=D0=90=D0=A2=D0=9E!=C2=A0 Frieden statt NATO! =C2=A1Paz en = vez de OTAN!



--
Sami Halabi
Information Systems= Engineer
NMS Projects Expert,=C2=A0FreeBSD SysAdmin Expert
Asterisk Expert


--
<= div dir=3D"ltr">Sami Halabi
Information Systems Engineer
NMS = Projects Expert,=C2=A0FreeBSD SysAdmin Exp= ert
Asterisk Expert
--0000000000007a5d6005dcc4b4bc--