Re: recover deleted file

2022-04-17 Thread Michael Gmelin
> On 17. Apr 2022, at 06:20, Peter Jeremy wrote: > > On 2022-Apr-17 01:13:02 +0300, Sami Halabi wrote: >> I understand its hard to undelete since no one designed UFS/ZFS to do so.. >> that why I asked in later replies to see if someone would step in and >> implement such a "feature" and I

Re: recover deleted file

2022-04-17 Thread Piotr P. Stefaniak
On 2022-04-17 14:13:07, Peter Jeremy wrote: If the information is very critical (you mentioned legal consequences) then you might like to consider real-time replication of the MySQL redo logs to another systems - though that won't necessarily protect you from someone accidently doing a "DELETE

Re: recover deleted file

2022-04-16 Thread Peter Jeremy
On 2022-Apr-17 01:13:02 +0300, Sami Halabi wrote: >I understand its hard to undelete since no one designed UFS/ZFS to do so.. >that why I asked in later replies to see if someone would step in and >implement such a "feature" and I suggested some directions/thoughts. As you point out, neither UFS

Re: recover deleted file

2022-04-16 Thread Jamie Landeg-Jones
Sami Halabi wrote: > Hi, > thanks for your response. > > Would someone from the foundation step in and put it in GSOC ideas? > > kirk@ - would it be possible for you to do it ? :) > How would you handle file modifications? Backup every original too, or just deal with literal deletions? If you

Re: recover deleted file

2022-04-16 Thread Sami Halabi
Hi warner, Thanks for trying :) Actually my use case was (if you read later replies, i gave up since the downtime was too long and couldn't wait more) a VM in ESXi. so all the underlying stuff of the disks/TRIM.. is hidden an inaccessible for me (hosting provider). In my case I tried to recover

Re: recover deleted file

2022-04-16 Thread Warner Losh
On Sat, Apr 16, 2022 at 5:24 AM Sami Halabi wrote: > Hi, > is there anyway easy to restore deleted file by accident in UFS > Do you know what the contents of the file is? At least the first, say, ~32k? The problem with unrm for ufs is that the directory entry has the inode number stored in

Re: recover deleted file

2022-04-16 Thread Søren Schmidt
Just replace rm with a script that moves files to a trash folder, then either clean that automagically after some period of time or handle it manually. Doesn’t have to be complicated… -Søren > On 16 Apr 2022, at 21.08, Weldon Godfrey wrote: > >  > >> On Apr 16, 2022, at 12:27 PM, Julian H.

Re: recover deleted file

2022-04-16 Thread Weldon Godfrey
> On Apr 16, 2022, at 12:27 PM, Julian H. Stacey wrote: > >  >> >> okay... >> all seems very time consuming operations!! > > Yes > >> There should be an os "undelete" as happens in NTFS for example.. which is >> very fast and can be done also with extra tools without a hassle. > > A

Re: recover deleted file

2022-04-16 Thread Kyle Evans
On Sat, Apr 16, 2022 at 12:36 PM Sami Halabi wrote: > > Hi, > thanks for your response. > > Would someone from the foundation step in and put it in GSOC ideas? > > kirk@ - would it be possible for you to do it ? :) > Anyone with wiki access is able to add ideas, any student eligible for GSoC is

Re: recover deleted file

2022-04-16 Thread Sami Halabi
Hi, thanks for your response. Would someone from the foundation step in and put it in GSOC ideas? kirk@ - would it be possible for you to do it ? :) Sami On Sat, Apr 16, 2022 at 7:26 PM Julian H. Stacey wrote: > > okay... > > all seems very time consuming operations!! > > Yes > > > There

Re: recover deleted file

2022-04-16 Thread olli hauer
Hi, is there anyway easy to restore deleted file by accident in UFS depends, years ago i had to use sysutils/testdisk to restore files from UFS after a HD crash. Using the tools was easy but finding the right data in all the files the tool restored can be time consuming. -- Good luck

Re: recover deleted file

2022-04-16 Thread Julian H. Stacey
> okay... > all seems very time consuming operations!! Yes > There should be an os "undelete" as happens in NTFS for example.. which is > very fast and can be done also with extra tools without a hassle. A WIBNI (Wouldnt It Be Nice If) for Unix FS's for as long as I can remember (decades) but

Re: recover deleted file

2022-04-16 Thread Bakul Shah
This may help? I’ve no experience with it, I just googled it for you. The comp.sources.misc usenet group in volume 17 issue 23 (in 1991) has an undelete program that supposedly works with 4.3BSD — probably won’t work with FreeBSD’s version but if you’re desperate it could be a starting point.

Re: recover deleted file

2022-04-16 Thread Kurt Jaeger
Hi! > Maybe UFS developer would do a rework so latest deleted inodes would put in > a "recycle bin" Use ZFS and snapshots, that should help your use-case. -- p...@opsec.eu+49 171 3101372Now what ?

Re: recover deleted file

2022-04-16 Thread Sami Halabi
okay... all seems very time consuming operations!! There should be an os "undelete" as happens in NTFS for example.. which is very fast and can be done also with extra tools without a hassle. for now I got backup from last day .. caused me a lot of troubles, not say legal ones, but I passed the

Re: recover deleted file

2022-04-16 Thread Julian H. Stacey
> 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

Re: recover deleted file

2022-04-16 Thread Michael Gmelin
> On 16. Apr 2022, at 14:32, Sami Halabi wrote: > >  > how to do step 3 /? E.g., grep for something you know (like a phrase, unique name etc) from the file, then dump N times the expected file size from that position into another file, open the result in a “robust” text editor and stitch

Re: recover deleted file

2022-04-16 Thread Alexandre Biancalana
On Sat, 16 Apr 2022 at 09:33 Sami Halabi wrote: > 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

Re: recover deleted file

2022-04-16 Thread Sami Halabi
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.

Re: recover deleted file

2022-04-16 Thread Michael Gmelin
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

Re: recover deleted file

2022-04-16 Thread Michael Schuster
On Sat, Apr 16, 2022, 13:24 Sami Halabi wrote: > Hi, > is there anyway easy to restore deleted file by accident in UFS > If you used "rm" and didn't take the media offline immediately after, then no, not only not easy but probably impossible (depending on how active the FS is) > Sami > >

Re: recover deleted file

2022-04-16 Thread Sami Halabi
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ía sábado, abril 16, 2022 a las 02:23:25 +0300, Sami Halabi escribió: > > > Hi, > > is there

Re: recover deleted file

2022-04-16 Thread Matthias Apitz
El día sábado, abril 16, 2022 a las 02:23:25 +0300, Sami Halabi escribió: > Hi, > is there anyway easy to restore deleted file by accident in UFS Yes, restore it from a backup media. matthias -- Matthias Apitz, ✉ g...@unixarea.de, http://www.unixarea.de/ +49-176-38902045 Public

recover deleted file

2022-04-16 Thread Sami Halabi
Hi, is there anyway easy to restore deleted file by accident in UFS Sami -- Sami Halabi Information Systems Engineer NMS Projects Expert, FreeBSD SysAdmin Expert Asterisk Expert