Howto Recover data from lost + found

We have a redhat 8 machine that seems to have crashed and put about 6 gigs of data that was pretty important into the lost + found directory. Is anyone aware of means to recover this files, meaning rename them correctly and places them into their proper locations in the file system. We are still about to mount the raid array (so far read only) and access the data. Note some of these are PostgreSQL database files.

A system crash that results in recovered data being placed in lost+found leaves you with no option but to determine the original file name from the content of the files. Frequently this isn't too difficult with text file, but in the case of binary files it may be nearly impossible.

The easiest solution is usually to just recover the data from the last backup.

I agree with jlevie. Don't bother to recover 2GB data in lost+found directory.
Those filenames in lost+found are the inode numbers. Unless you know the inode numbers of the files before
crash, otherwise you need to go through every content of files to determine the filename by yourself.

Restore from the last backup and recover lastest change from the archives of database.

Well the issue is that the server was being backed up to a NAS with no tape librabry (yes, lame I know). And it seemed to have failed during during the last transfer backing up only some of the data but as mentioned most is in the form of a lost + found folder, so I didn't know if something could be done, and yes some of the object are going to be binary making this that much more fun.

Veeam Explorer for Microsoft Active Directory provides fast and reliable object-level recovery for Active Directory from a single-pass, agentless backup or storage snapshot — without the need to restore an entire virtual machine or use third-party tools.

Postgres database files are binary. And give the way things are laid out in the Postgres data dir I don't see how you'd figure out what file from lost+found corresponds to what in the data dir. It might be possible to gain some inside from the postmaster code, or perhaps by asking on the Postgres mailing list or on IRC (see http://www.postgresql.org/).

Little introduction about CP:
CP is a command on linux that use to copy files and folder from one location to another location. Example usage of CP as follow:
cp /myfoder /pathto/destination/folder/
cp abc.tar.gz /pathto/destination/folder/ab…

Setting up Secure Ubuntu server on VMware
1. Insert the Ubuntu Server distribution CD or attach the ISO of the CD which is in the “Datastore”. Note that it is important to install the x64 edition on servers, not the X86 editions.
2. Power on th…

Learn several ways to interact with files and get file information from the bash shell.
ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…